GNOME Bugzilla – Bug 337116
UPS battery critical -> no shutdown
Last modified: 2010-03-12 22:22:27 UTC
I connected a UPS via USB, which was properly recognised and the gnome-power-manager icon came up on the system tray. I configured gnome-power-manager to shut down when battery power was critical, then unplugged the PC to test this. When the UPS's battery was running out, I got notifications on-screen that battery power was critical. However no shutdown was ever initiated, and finally the battery run out without my PC shutting down properly. Version is 2.13.93-0ubuntu4. UPS (from kernel) is: [4294690.873000] hiddev96: USB HID v1.00 Device [American Power Conversion Back-UPS ES/CyberFort 500 FW: 4.1.I USB FW: d1] on usb-0000:00:10.2-1
Yes, agreed, thanks for filing the bug. I'll work on a solution later tonight.
I've added this to CVS HEAD: 2006-04-04 Richard Hughes <richard@hughsie.com> * data/gpm-prefs.glade: Delete the brightness change for UPS, and make the UPS widgets have sensible names. * data/gnome-power-manager.schemas.in: Add a new GConf key /apps/gnome-power-manager/action_ups_critical for the ups critical action. Default to shutdown, but allow hibernate and nothing. * src/gpm-prefs.h: Add GPM_PREF_UPS_CRITICAL. * src/gpm-manager.c: (battery_status_changed_ups): Do the action when the UPS is critical. Should fix #337116. * src/gpm-prefs-core.c: (setup_ups_actions, gpm_prefs_init): Setup the UPS action combobox. Can you have a look at CVS HEAD and see if this works for you? I'll backport it to gnome-2-14 when it's been tested.
Richard: I'm sorry, I tried to compile from CVS but I cannot satisfy these dependencies autogen is asking for with my Ubuntu Dapper: checking for DBUS... configure: error: Package requirements ( dbus-glib-1 >= 0.61 dbus-1 >= 0.61 gthread-2.0) were not met: Is there any way to work around this without my having to change my libs?
You need to update DBUS to 0.61 -- frankly I'm surprised that dapper is shipping 0.60... I'll try to backport this feature today at some point and I'll get you to try the 2.14 branch.
Created attachment 62811 [details] ./autogen.sh --with-gconf-source=xml::/home/vyruss/.gconf --enable-libnotify
Created attachment 62812 [details] make
Created attachment 62813 [details] sudo checkinstall
I updated dbus and all related libraries with 0.61 from Debian. However, be aware that Dapper is unlikely to switch to dbus 0.61 so I don't think the changes you are making now will make it to Dapper :( I have trouble trying out the CVS version; I am attaching three logs: (1) ./autogen.sh --with-gconf-source=xml::/home/vyruss/.gconf --enable-libnotify (2) make (3) sudo checkinstall
I've asked, and due to UI and string change this isn't going into 2-14, sorry. You probably need a "make install" as make checkinstall isn't recognised on my system.
I just upgraded to Ubuntu 6.10 (Gnome Power Manager 2.16.1) and, due to a power failure, I can finally confirm that it now works perfectly. Many thanks!
In Ubuntu 9.10 this problem is still exists. The UPS is APC Back-UPS ES 525. I still haven't find any solution.