adding support for hibernation to xfce4-sessions's exit dialog
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Thu Jul 13 11:59:51 CEST 2006
Andre Puschmann wrote:
> ok, so just a toggle button under "Logout settings" which decides
> whether do display the buttons or not would be ok?
> i figured out how to check for hibernation using hal but even that says
> only that there is suspend/suspend2 support in /proc .. but nothing
> about if it really works (maybe other problems e.g. bios, needed
> workarounds like vbesave/vbepost).
> on the other hand, hal says nothing about which hibernate-script to use
> .. what is your desired method?
> all at all i must say it is very difficult to just provide a simple and
> easy to use solution that just works.
If you add a toggle button to "Logout settings", then that's no
different than adding the buttons to the logout dialog: The user is
still the one to figure out.
Nobody said it'd be easy to do it right. But it's way better if the
developers spend a day or two figuring out, than having each user spend
atleast one day to figure out.
>From my POV, this should all be handled through a generic scripting
interface, which gets implemented by the vendor. For example, an
xfsm-powermgt script in a well defined place, -> $(libexecdir).
Invoking that script with "status" or "caps" will return the
capabilities of the system (as XML, plain text, dunno), i.e. extracting
from /proc or using a system interface, that's up to the vendor. The
command will fail if no powermgt. is available, or the system is not a
laptop, etc.
Invoking with "hibernate" or "hibernate-ram" performs the action, etc.
That way, minimal changes will have to be made to xfce4-session, but
basicly everything is possible, in a cross-platform way. We can even
setup a central repository for these system-dependent xfsm-powermgt scripts.
> regards
> andre
Benedikt
More information about the Xfce4-dev
mailing list