adding support for hibernation to xfce4-sessions's exit dialog

Andre Puschmann andre.puschmann at
Thu Jul 13 17:18:48 CEST 2006

i did some searching in g-p-m's faqs and code and here is my conclusion:
- g-p-m decides whether to show buttons to enable hibernate/suspend or
not using hal
- so if you have suspend-support in your kernel (suspend1 or suspend2)
you will be able to select it in g-p-m (except you *disable* explicit it
in gnome's gconf)
- the scripts that will be called are those
/prefix/share/hal/scripts/system/hal-system-power-hibernate and

so doing it the same way is not too bad, isn't it?



Benedikt Meurer wrote:
> Jani Monoses wrote:
>>> Hm, but why do both Windows and OSX work out of the box here then? (yes,
>>> not a very qualified statement)
>> As you probably guessed, because of actual interaction between hw
>> manufacturers and Microsoft, and very close interaction between apple
>> systems software and apple hardware developers ;)
> As said, the statement was rather unqualified, but I think it highlights
> the point...
>>> IMHO, the whole power management stuff (including the battery plugin)
>>> should be done in a sane and well-integrated way, w/o any unnecessary
>>> action on the users side. I'm not sure, but maybe GNOME's power manager
>>> is worth a look? Dunno how messed up it is, but maybe we can convince
>>> them to clean it up, so we can use it in Xfce as well? That'd probably
>>> reduce the additional overhead.
>> G-p-m has user interaction for the same reasons.
>> Investigating g-p-m is one of the xubuntu edgy goals.
> IMHO, we should cooperate here. It'd be definitely nice for all Xfce
> users if xfce4-session and the battery plugin (and probably other
> relevant parts), would support proper power management, combined with a
> settings dialog (yes, I'm convinced).
>> Apparently as for
>> many other useful gnome apps the only thing tying it to the extra ~30
>> gnome lib dependencies is GnomeClient used by the libgnomeui library.
>> If they'd use exo they'd be set ;)
> exo doesn't provide an XSM session client, but only a X11R5 session
> client, but that should do the job here as well. GnomeSession is totally
> overloaded. You can write a simple session client class for you
> application in 15-30mins, without adding dependency on another 10
> libraries, see ThunarSessionClient.
>> Which brings me to something I wanted to ask you anyway: it seems to me
>> that if single-instance-apps API as used by thunar and xfce4-terminal
>> woudl be available in exo, it would be another good reason for gnome to
>> use it. They need such a thing and AFAIK evince is the only one that
>> does it reasonably well.
>> Of course I did not talk to gnome devels about this, but how does this
>> look to you? It'd be a good step in helping reducing bloat in gnome and
>> helping cross-(GTK)-desktop stuff while project ridley is shaping up.
> You don't any kind of special API here. Just use D-BUS to register your
> application as service, then on startup, try to invoke the method on an
> already running service, and if no service is available, continue to launch.
>> Anyway I'll keep you updated wrt gnome-power-manager.
> Yep.
>> Jani
> Benedikt

More information about the Xfce4-dev mailing list