[Pm-utils] [PATCH] userspace suspend (s2disk/s2ram) support

Richard Hughes hughsient at gmail.com
Tue Oct 31 10:09:01 PST 2006


On Tue, 2006-10-31 at 18:04 +0100, Stefan Seyfried wrote:
> 
> Maybe we can even get gnome-power-manager and kpowersave or whatever
> to
> look if there is a $INHIBIT file after a suspend attempt and present
> its
> content to the user? But that is something for "later", and maybe
> there are
> better ways to communicate this error up the caller chain. 

Yes, I think for the gnome-power-manager use case it should go back up
through HAL (which then gives a nice DBUS message) to g-p-m.

All hal-system-power-suspend has to do is check the return val of
pm-suspend and cat an error file to stderr for HAL, or return true for
success.

Richard.



More information about the Pm-utils mailing list