signalling suspend/resume events (deviceKit-power)

Richard Hughes hughsient at
Tue Dec 8 14:51:02 GMT 2009

2009/12/8 Dario Freddi <drf54321 at>:
> But I think a better idea would be having the signal being streamed from
> upower (since if the aim is providing an unique and future-proof system),
> triggered from an hook in pm-utils. I think such a solution would be the best
> of both worlds.

You have to be careful with signals, as they are not blocking, I mean:

user clicks suspend
upower sends Suspending()

pc is sleeping

pc awakes
upower sends Awakening()

Applications get time to process the Suspending signal call.
Applications get time to process the Awakening signal call.

So you get a nice race.


More information about the kde-core-devel mailing list