Skip navigation.

GNOME Power Manager - 0.0.3

GNOME System Tools
GNOME System Tools

GNOME Power Manager is a GNOME session daemon that acts as a policy agent on top of the Project Utopia stack. GNOME Power Manager listens for HAL events and responds with user-configurable reactions.

Today I released a GNOME Power Manager 0.0.3 with lots of bugfixes, new features, a new preferences program and lots more. This new version supports wireless mice and keyboards, pda's and the usual laptop batteries...

The website has been greatly updated and contains lots of new screenshots.

There is a source tarball and Fedora RPM's available here.

Please send comments/patches/questions to the mailing list at gnome-power-devel@lists.sourceforge.net - archives are available here.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Dependencies

Having flirted with GNOME Power Manager I have following question:

How do you handle conflicting dependencies?

Specifically, G-P-M requires HAL 0.5.0+, which in turn needs D-BUS 0.30+. Every single HAL-aware application I have, including gnome-vfs 2.10.x is stuck with HAL 0.4.x API. HAL 0.5.x API is different and incompatibile of course.
HAL 0.4.7 won't work with D-BUS 0.3x. Beagle also specifically checks for d-bus == 0.23 (or < 0.30, I don't remember correctly).
So, in order to use g-p-m, one have to break most of his applications, including core parts like GNOME-VFS. Insane?

Besides, GNOME Power Preferences don't work for me. Shows actions for Power Button only. I choosed "Send Alert" as action, pressed Power button and my computer gracefully shutdown :-/
I guess I would have to massage acpid and it's scripts, but it wasn't mentioned in documentation.
--
:wq

Reason for dependencies...

GNOME Power Manager is being designed for inclusion with GNOME 2.12 or even 2.14 - i.e. some distance away. I'm sure in a year or more time nobody will be using HAL 0.4.X or DBUS 0.30 - the distros just need time to catch up. Fedora Core Rawhide is the only distro (I know...) that has the current CVS packages of dbus and HAL to satisfy dependencies.
If you are not using something insanely up to date, e.g. gentoo on CVS, or FC-Rawhide then it won't even build.

The reason for the extreme CVS nature of the dependencies, is that DBUS 0.30 does not support the glib bindings that the utopia people want to use, and what will be used in the future versions of GNOME. HAL 0.40 has no idea about any ACPI/APM/PMU devices as the support just wasn’t added then; further more, the current CVS HAL does not support device actions yet, e.g. “Hibernate” – yet. This is all to come, and is slowly being put together piece by piece in a logical and ordered fashion. GPM is not a bit of software that edits /etc/acpid.conf and writes some magic values, it is a session daemon that uses HAL for all properties and actions to maintain a high level approach to power management. The idea is by utilising HAL, we can write the support for say ACPI once, and then use different front-ends/configuration/settings without re-writing the support all over again.

As I mentioned above, HAL 0.4 does not support power-management devices, and so the preference dialogue (I’m surprised you got it to compile…) wouldn’t have shown any options, by design. If you haven’t got the hardware (i.e. it wasn’t detected) then the options to configure it are hidden.

The principle reason for releasing early is to get feedback on the initial design and UI, which people have been very helpful with. I’ve already massively redesigned the UI to be more in line with the GNOME HIG, and the gpm backend daemon is currently being overhauled with the new functionality.

Sorry for the long post, but I hope it clears up your frustrations and any questions. Please be sure to email me with any more comments or suggestions. Thanks, Richard.

thanks

Thank you very much for reply. Just one clarification:

As I mentioned above, HAL 0.4 does not support power-management devices, and so the preference dialogue (I’m surprised you got it to compile…)

To compile GPM I have upgraded to DBUS-0.33 and HAL to 0.5.0. GPM worked, but rest of my desktop broke. So after looking at GPM, I downgraded to previous versions of both DBUS and HAL.
I'm impressed that you apparently have recent version and simultanously you have working GNOME desktop (gnome-vfs part mainly), as there are no released version of GNOME components with support to newer DBUS and HAL API. I think I saw Luis Villa's patch for gfloppy, but not for other GNOME Desktop elements.

As for acpid: acpid intercepted power button event at the same time as hald. GPM maybe reacted to this event, but acpid was faster in running shutdown -h now ;)

I will certainly mail you when I'll have further question. Cheers:)

--
:wq

Gotcha. I use Fedora Core Raw

Gotcha. I use Fedora Core Rawhide which seems to be very up to date with DBUS and HAL. I guess the fedora guys patch enough to have a working desktop! acpid needs to be disabled for gnome-power-manager (in the future) - the same as pmud and any other daemon for powermanagement - HAL will take care of it all with g-p-m (or KDE equiv) handling the configuration.

Please join the mailing list (https://lists.sourceforge.net/lists/listinfo/gnome-power-devel), and it'll keep you up to date with the UI and backend changes. Thanks, Richard.

Looking good guys, can't wait

Looking good guys, can't wait.. Linux/Gnome is really getting nice now...

*dup*


I just want my laptop to suspend by Anonymous George
One way to do this would be t by Anonymous George
Not for Real People. by Anonymous George
swsusp2 by Anonymous George

Suspend

In the future, you would install gnome-power, and then go to Preferences, Power Manager, click on the Buttons tab and select the action "Suspend" for the Lid event.

I say in the future (you can do all that now...) because we are waiting for HAL to have "methods" added, so you could do a DBUS ../Computer:Shutdown or ../{disk}:unmount which will give GNOME Power Manager a simple way to perform platform neutral power management events.

See here for an example.

Thanks! by Anonymous George

Hmm

I know the screenshots shows what you can do. However i think some of these tabs belong in the the corresponding hardware capplet. Ie, the mouse settings should be in the mouse capplet. Display in display settings.

I wonder if the user think "power option -> hardware" or "hardware -> power options"?. Ofcourse, it could only be power users who might bother changing anything.

power hardware by Anonymous George

I wanted to keep all the "pow

I wanted to keep all the "power" options together, ala Windows XP and OSX. By default everything should "Just Work" and you would only have to change something if you wanted the power management to do something different. Point taken tho.

I wonder.. by Anonymous George

gconf

gconf is the standard GNOME configuration system. Using anything else is not an ideal solution.

gconf stands for Generic Conf by Anonymous George
gconf is a mistake. by Anonymous George

At the moment you are right,

At the moment you are right, outside of a session the manager would not be loaded. Myself and David Zeuthen have got an idea where we could use system level (as opposed to session level) gconf for the policy, and keep the session specific options session only. Unfortunatly this requires us to wait for system gconf to be included in distos - but we can work on g-p-m until then as session level and switch to system when the time is right - or use Elektra if that is deemed more suitable - I admit I haven't read much into this.

technically

A shell script can easily manipulate gconf as well, using gconftool.

same with gconf

Gconf stores settings in XML files. You don't need Gconf to edit them, it just simplifies it.

mkdir -p NameSpace/attribute by Anonymous George
gconf doesn't have to use XML by Anonymous George