Re: UPower signals

2012-12-04 Thread Peter Weilbacher

On 2012-11-30 09:45, Peter Weilbacher wrote:

I am trying to detect suspend / hibernation cycles using UPower. But
I don't see any of the signals documented on
. I tried a test
program written by myself but also dbus-monitor and upower -m without
success. In the archives I found a message from July 18th about the
same issue (title: Why are UPower "Sleeping" and "Resuming" signals
not generated?), which unfortunately didn't receive any replies... Is
there a different method to access these properties that I should
prefer over UPower?


Is this not the correct list to get help about UPower? Any hints where
else I should send help requests?
   Peter.
___
devkit-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/devkit-devel


Re: UPower signals

2012-12-04 Thread Matthias Clasen
On Tue, Dec 4, 2012 at 4:48 AM, Peter Weilbacher
 wrote:
> On 2012-11-30 09:45, Peter Weilbacher wrote:
>>
>> I am trying to detect suspend / hibernation cycles using UPower. But
>> I don't see any of the signals documented on
>> . I tried a test
>> program written by myself but also dbus-monitor and upower -m without
>> success. In the archives I found a message from July 18th about the
>> same issue (title: Why are UPower "Sleeping" and "Resuming" signals
>> not generated?), which unfortunately didn't receive any replies... Is
>> there a different method to access these properties that I should
>> prefer over UPower?
>
>
> Is this not the correct list to get help about UPower? Any hints where
> else I should send help requests?

Hey Peter,

Richard is on vacation currently. As for your question, the basic
problem is that the kernel doesn't have any way to signal
suspend/resume to observers. Until that is fixed, userspace signals
such as the upower ones (or the pm-utils ones, or the systemd
ones,...) can only be hacks that don't work 100% reliably :-(
___
devkit-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/devkit-devel


Re: UPower signals

2012-12-04 Thread Peter Weilbacher

Hi Matthias,

thanks for the reply!

On 2012-12-04 12:43, Matthias Clasen wrote:


Richard is on vacation currently. As for your question, the basic
problem is that the kernel doesn't have any way to signal
suspend/resume to observers. Until that is fixed, userspace signals
such as the upower ones (or the pm-utils ones, or the systemd
ones,...) can only be hacks that don't work 100% reliably :-(


Something that works 90% would be much better than something that
never works... But I don't fully understand what determines, if it
works or not. I am pretty sure that in the past I could use
dbus-monitor on my laptop to detect suspend/resume cycles.

In the meantime I definitely updated the kernel (currently have 3.5.7),
and probably also several low-level user-space tools. But I have no 
idea

what was the factor that made the UPower signals disappear.

Cheers,
   Peter.
___
devkit-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/devkit-devel