hibernate/suspend + reboot/halt

Andre Puschmann andre.puschmann at stud.tu-ilmenau.de
Tue Aug 15 13:59:28 CEST 2006


Benedikt Meurer wrote:
> Jani Monoses wrote:
>>> As said earlier, using g-p-m should be the way to go. That way we don't
>>> duplicate effort with the nasty pm stuff.
>> Indeed that would be nice, but it has some disadvantages as well.
>>
>> It is yet another daemon using up a few megs, especially since upstream
>> is not interested in making it work w/o gnome libraries. There was a
>> thread on gnome-desktop about getting rid of gnomeui deps from various
>> apps but too many things seem to depend on that and none of the app
>> maintainers seem to care and eliminate the reliance of APIs which have
>> Gtk equivalents.
>>
>> The patch in xubuntu is not related to PM only. By using HAL it does
>> shutdown/reboot as well so that's the orthogonal issue of being able to
>> do that without sudo password dialog popping up or needing to tweak
>> config files to avoid that. The PM stuff while way less featureful (and
>> buggy) than g-p-m it's done with probably a few tens of Kb of overhead
>> since it's part of session and relies on already running dbus and hal,
>> no other daemon being involved.
>>
>> Still I am interested in g-p-m since it replaces the very buggy battery
>> applet as well, but I want to make sure that if slimming it down cannot
>> be worked out with upstream there's at least semi-decent fallback in place.
> 
> It's sad that GNOME developers are unable to drop the dependency on
> libgnome* (or atleast make it optional), but still I think that we
> should go for g-p-m, or have someone to come up with a replacement for
> g-p-m (must be willing to actively maintain that!).

my idea was to create a "libpm" which acts as a wrapper for hal, which
does afaik all the related stuff. just like g-p-m but more lightweight.
even the battery plugin and other applications can take advantage from
such a library ..
if one goes that way it should even be possible to get rid of that
distro dependent shutdown-helper stuff, at least partly.
in the end this is a merge of my and Jani's xubuntu patches.

> 
> In the meantime, we can use bug #2034 as a collector bug for ideas,
> patches, etc. regarding pm/hibernate stuff:
> 
>  http://bugzilla.xfce.org/show_bug.cgi?id=2034
> 
> Andre feel free to attach your patch to the bug.
> 
i'll do this.

>> Jani
> 
> Benedikt

andre




More information about the Xfce4-dev mailing list