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.

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to