After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337116 - UPS battery critical -> no shutdown
UPS battery critical -> no shutdown
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
2.13.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-04-04 00:00 UTC by Jimmy Angelakos
Modified: 2010-03-12 22:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
./autogen.sh --with-gconf-source=xml::/home/vyruss/.gconf --enable-libnotify (9.70 KB, text/plain)
2006-04-05 18:15 UTC, Jimmy Angelakos
Details
make (61.98 KB, text/plain)
2006-04-05 18:16 UTC, Jimmy Angelakos
Details
sudo checkinstall (641 bytes, text/plain)
2006-04-05 18:16 UTC, Jimmy Angelakos
Details

Description Jimmy Angelakos 2006-04-04 00:00:36 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
Comment 1 Richard Hughes 2006-04-04 08:02:34 UTC
Yes, agreed, thanks for filing the bug. I'll work on a solution later tonight.
Comment 2 Richard Hughes 2006-04-04 09:30:25 UTC
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.
Comment 3 Jimmy Angelakos 2006-04-05 01:08:29 UTC
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?
Comment 4 Richard Hughes 2006-04-05 12:24:46 UTC
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.
Comment 5 Jimmy Angelakos 2006-04-05 18:15:41 UTC
Created attachment 62811 [details]
./autogen.sh --with-gconf-source=xml::/home/vyruss/.gconf --enable-libnotify
Comment 6 Jimmy Angelakos 2006-04-05 18:16:06 UTC
Created attachment 62812 [details]
make
Comment 7 Jimmy Angelakos 2006-04-05 18:16:27 UTC
Created attachment 62813 [details]
sudo checkinstall
Comment 8 Jimmy Angelakos 2006-04-05 18:18:06 UTC
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
Comment 9 Richard Hughes 2006-04-18 09:16:02 UTC
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.
Comment 10 Jimmy Angelakos 2006-11-10 05:45:34 UTC
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!
Comment 11 Rulet 2010-03-12 22:22:27 UTC
In Ubuntu 9.10 this problem is still exists.
The UPS is APC Back-UPS ES 525. I still haven't find any solution.