GNOME Bugzilla – Bug 579855
gnome-power-manager 2.26 does not detect UPS
Last modified: 2009-07-02 12:57:00 UTC
Please describe the problem: After upgrading from Gnome 2.24 to 2.26 g-p-m not detect my UPS more. Steps to reproduce: 1. Got working gnome 2.24 with installed g-p-m and UPS :) 2. Upgrade to 2.26 3. Restart Actual results: g-p-m does not show UPS status Expected results: g-p-m must show UPS status Does this happen every time? yes Other information: Distributive: Up-to-date Arch Linux x86_64. UPS model: APC Back-UPS ES 700. gnome-power-bugreport.sh output (similar in 2.24 and 2.26): Distro version: Kernel version: 2.6.29-ARCH g-p-m version: 2.24.4 HAL version: 0.5.12 System manufacturer: missing System version: missing System product: missing AC adapter present: no Battery present: yes Laptop panel present: no CPU scaling present: no Battery Information: battery.charge_level.current = 100 (0x64) (int) battery.charge_level.design = 100 (0x64) (int) battery.charge_level.last_full = 100 (0x64) (int) battery.charge_level.percentage = 100 (0x64) (int) battery.charge_level.unit = 'percent' (string) battery.is_rechargeable = true (bool) battery.model = '829.D2 .I' (string) battery.present = true (bool) battery.rechargeable.is_charging = false (bool) battery.rechargeable.is_discharging = false (bool) battery.remaining_time = 600 (0x258) (int) battery.reporting.current = 100 (0x64) (int) battery.reporting.design = 100 (0x64) (int) battery.reporting.last_full = 100 (0x64) (int) battery.reporting.percentage = 100 (0x64) (int) battery.reporting.technology = 'PbAc' (string) battery.reporting.unit = 'percent' (string) battery.serial = '5B0728U16761 ' (string) battery.technology = 'lead-acid' (string) battery.type = 'ups' (string) battery.vendor = 'APC' (string) GNOME Power Manager Process Information: artem 9287 0.0 0.5 267052 23812 ? S 20:42 0:00 \_ gnome-power-manager HAL Process Information: hal 6132 0.0 0.1 28072 5224 ? Ss 20:27 0:00 /usr/sbin/hald root 6136 0.0 0.0 15796 1292 ? S 20:27 0:00 \_ hald-runner root 6227 0.0 0.0 17776 1136 ? S 20:27 0:00 \_ hald-addon-input: Listening on /dev/input/event1 /dev/input/event3 /dev/input/event2 root 6271 0.0 0.0 13272 852 ? S 20:27 0:00 \_ hald-addon-hid-ups: listening on /dev/usb/hiddev0 root 6273 0.0 0.0 17780 1128 ? S 20:27 0:00 \_ hald-addon-storage: polling /dev/sdc (every 2 sec) root 6276 0.0 0.0 17780 1140 ? S 20:27 0:00 \_ hald-addon-storage: polling /dev/sr0 (every 2 sec) hal 6296 0.0 0.0 15372 1008 ? S 20:27 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
After downgrading to 2.24 all OK.
I can confirm the same behavior. My UPS is APC Back-UPS ES 650Y-IN
Same with g-p-m 2.26.1
Any updates on this? It STILL doesnt detect my UPS :(
I am seeing this problem on Fedora 11 with 2.26.2. HAL seems to detect the UPS, however gnome-power-manager does not, even though it used to in the past. Distro version: Fedora release 11 (Leonidas) Kernel version: 2.6.29.5-191.fc11.x86_64 g-p-m version: 2.26.2 HAL version: 0.5.12 System manufacturer: missing System version: missing System product: missing AC adapter present: no Battery present: yes Laptop panel present: no CPU scaling present: yes Battery Information: battery.charge_level.current = 100 (0x64) (int) battery.charge_level.design = 100 (0x64) (int) battery.charge_level.last_full = 100 (0x64) (int) battery.charge_level.percentage = 100 (0x64) (int) battery.charge_level.unit = 'percent' (string) battery.is_rechargeable = true (bool) battery.model = 'Back-UPS BR 800' (string) battery.present = true (bool) battery.rechargeable.is_charging = false (bool) battery.rechargeable.is_discharging = false (bool) battery.remaining_time = 1807 (0x70f) (int) battery.reporting.current = 100 (0x64) (int) battery.reporting.design = 100 (0x64) (int) battery.reporting.last_full = 100 (0x64) (int) battery.reporting.percentage = 100 (0x64) (int) battery.reporting.technology = 'PbAc' (string) battery.reporting.unit = 'percent' (string) battery.serial = 'QB0419230426 ' (string) battery.technology = 'lead-acid' (string) battery.type = 'ups' (string) battery.vendor = 'American Power Conversion' (string) GNOME Power Manager Process Information: rob 2372 0.0 0.4 302752 9304 ? S 19:49 0:00 \_ gnome-power-manager HAL Process Information: 68 1646 0.0 0.2 30744 5456 ? Ss 19:48 0:00 hald root 1650 0.0 0.0 17892 1084 ? S 19:48 0:00 \_ hald-runner root 1742 0.0 0.0 19884 948 ? S 19:48 0:00 \_ hald-addon-input: Listening on /dev/input/event4 /dev/input/event6 /dev/input/event1 /dev/input/event0 /dev/input/event5 root 1768 0.0 0.0 15380 740 ? S 19:48 0:00 \_ hald-addon-hid-ups: listening on /dev/usb/hiddev1 root 1779 0.0 0.0 19880 956 ? S 19:48 0:00 \_ hald-addon-storage: polling /dev/sdc (every 2 sec) root 1780 0.0 0.0 19880 956 ? S 19:48 0:00 \_ hald-addon-storage: polling /dev/sdd (every 2 sec) root 1781 0.0 0.0 19880 960 ? S 19:48 0:00 \_ hald-addon-storage: polling /dev/sr0 (every 2 sec) root 1782 0.0 0.0 19880 960 ? S 19:48 0:00 \_ hald-addon-storage: polling /dev/sr1 (every 2 sec) root 1783 0.0 0.0 19896 940 ? S 19:48 0:00 \_ /usr/libexec/hald-addon-cpufreq 68 1784 0.0 0.0 17480 920 ? S 19:48 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
I've added the following fixes this morning: commit 3f8141b89260a55af0752875e6bf2276541af58e Author: Richard Hughes <richard@hughsie.com> Date: Thu Jul 2 11:04:38 2009 +0100 Fix detecting the USB UPS devices :100644 100644 6523e23... 464aefa... M src/95-devkit-power-hid.rules commit 370da40cc6930e9895a5cb565a241e62ffee0faf Author: Richard Hughes <richard@hughsie.com> Date: Thu Jul 2 11:00:23 2009 +0100 The UPS can't expose empty or fully-charged, so fixup these states :100644 100644 5d56642... 16a05e0... M src/dkp-device-hid.c commit 7e98bd1c19fdc8549c983507eed1edde6764cb16 Author: Richard Hughes <richard@hughsie.com> Date: Thu Jul 2 10:58:42 2009 +0100 bugfix: set the GObject properties correctly in the DkpDeviceHid class :100644 100644 7c86053... 5d56642... M src/dkp-device-hid.c A new DeviceKit-power will be released in a few days time to fix this problem.