Is there anythins about resume?

Andrey Borzenkov arvidjaar at mail.ru
Wed Sep 9 19:47:55 PDT 2009


On Thursday 10 of September 2009 05:19:18 Luna Luan wrote:
> Hi all,
> 
> I want to be notified when the system get hibernate or resume.
> since the Hal doesn't emit any hibernate/suspend signals
> so i modified the "/usr/lib/hal/scripts/hal-system-power-*" to make
>  it send a signal to dbus when hibernate/suspend
> 
> but what about the  "resume" event,because i didn't find any script
>  related to the resume event, and neither in the hal interface api.
> 
> how can i be notified when the system get resume from
>  hinernate/suspend? any solutions?
> 

Today most systems are probably using pm-tools, so the most obvious 
place would be to add it there. pm-tools support initscript-like 
extensions to execute arbitrary actions on suspend/resume.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20090910/1ed96370/attachment.pgp 


More information about the hal mailing list