Subject: gnome-power-manager: battery -> battery/10 after suspend on mains Package: gnome-power-manager Version: 2.30.1-1 Severity: normal
I have a ThinkPad X201 with docking bay. It is configured to suspend when I close the lid. However, if the machine is connected to the external PSU (either directly or through the dock) then, when it resumes (ie. lid is opened), gnome-power-manager often reports a value that seems to be one-tenth of the correct value. For example, it may report 86.0% before suspend, and then 8.6% after resume. Because the value is so low, the software will attempt to power down the machine much too soon. The value will be reset to the correct amount if the machine is suspended again while running from battery. I attach three additional copies of the bugreport script output. gpbr.good = before suspend - values okay gbpr.bad = after suspend from dock, then resume - wrong values gbpr.goodagain = after remove from dock, suspend, then resume - values okay About the only customisation I can think of that might be relevant is that based on advice from the thinkwiki site I set in /etc/sysfs.conf: devices/platform/smapi/BAT0/start_charge_thresh = 80 devices/platform/smapi/BAT0/stop_charge_thresh = 90 devices/platform/smapi/BAT1/start_charge_thresh = 80 devices/platform/smapi/BAT1/stop_charge_thresh = 90 -- Package-specific info: Distro version: squeeze/sid Kernel version: 2.6.32-5-amd64 g-p-m version: 2.30.1 HAL version: 0.5.14 System manufacturer: missing System version: missing System product: missing AC adapter present: yes Battery present: yes Laptop panel present: yes CPU scaling present: yes Battery Information: battery.charge_level.current = 43880 (0xab68) (int) battery.charge_level.design = 56160 (0xdb60) (int) battery.charge_level.last_full = 57510 (0xe0a6) (int) battery.charge_level.percentage = 76 (0x4c) (int) battery.charge_level.rate = 15611 (0x3cfb) (int) battery.is_rechargeable = true (bool) battery.model = '42T4648' (string) battery.present = true (bool) battery.rechargeable.is_charging = false (bool) battery.rechargeable.is_discharging = true (bool) battery.remaining_time = 10119 (0x2787) (int) battery.reporting.current = 43880 (0xab68) (int) battery.reporting.design = 56160 (0xdb60) (int) battery.reporting.last_full = 57510 (0xe0a6) (int) battery.reporting.rate = 15611 (0x3cfb) (int) battery.reporting.technology = 'Li-ion' (string) battery.reporting.unit = 'mWh' (string) battery.serial = '33332' (string) battery.technology = 'lithium-ion' (string) battery.type = 'primary' (string) battery.vendor = 'LGC' (string) battery.voltage.current = 11633 (0x2d71) (int) battery.voltage.design = 10800 (0x2a30) (int) battery.voltage.unit = 'mV' (string) DeviceKit data: Device: /org/freedesktop/UPower/devices/line_power_AC native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/ACPI0003:00/power_supply/AC power supply: yes updated: Thu Jun 24 17:13:37 2010 (556 seconds ago) has history: no has statistics: no line-power online: no Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 vendor: LGC model: 42T4648 serial: 33332 power supply: yes updated: Thu Jun 24 17:22:42 2010 (11 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging energy: 43.83 Wh energy-empty: 0 Wh energy-full: 57.51 Wh energy-full-design: 56.16 Wh energy-rate: 15.57 W voltage: 11.646 V time to empty: 2.8 hours percentage: 76.2128% capacity: 100% technology: lithium-ion History (charge): 1277396562 76.213 discharging 1277396532 76.439 discharging 1277396502 76.665 discharging 1277396472 76.891 discharging History (rate): 1277396562 15.570 discharging 1277396532 15.585 discharging 1277396502 15.624 discharging 1277396472 15.357 discharging Daemon: daemon-version: 0.9.4 can-suspend: yes can-hibernate yes on-battery: yes on-low-battery: no lid-is-closed: no lid-is-present: yes GNOME Power Manager Process Information: HAL Process Information: 107 2116 0.0 0.1 44792 5244 ? Ssl 14:57 0:02 /usr/sbin/hald root 2120 0.0 0.0 22160 1356 ? S 14:57 0:00 \_ hald-runner root 2290 0.0 0.0 24276 1340 ? S 14:57 0:01 \_ hald-ad 107 2327 0.0 0.0 26096 1280 ? S 14:57 0:00 \_ hald-ad root 1210 0.0 0.0 24272 1304 ? S 17:13 0:00 \_ hald-ad -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gnome-power-manager depends on: hi consolekit 0.4.1-4 framework for defining and trackin hi dbus-x11 1.2.24-1 simple interprocess messaging syst hi gconf2 2.28.1-3 GNOME configuration database syste hi libbonobo2-0 2.24.3-1 Bonobo CORBA interfaces library hi libc6 2.11.2-1 Embedded GNU C Library: Shared lib hi libcairo2 1.8.10-4 The Cairo 2D vector graphics libra hi libcanberra-gtk0 0.24-1 Gtk+ helper for playing widget eve hi libcanberra0 0.24-1 a simple abstract interface for pl hi libdbus-1-3 1.2.24-1 simple interprocess messaging syst hi libdbus-glib-1-2 0.86-1 simple interprocess messaging syst hi libdevkit-power-gobject1 1:0.9.4-2 abstraction for power management - hi libgconf2-4 2.28.1-3 GNOME configuration database syste hi libglib2.0-0 2.24.1-1 The GLib library of C routines hi libgnome-keyring0 2.30.1-1 GNOME keyring services library hi libgtk2.0-0 2.20.1-1 The GTK+ graphical user interface hi libnotify1 [libnotify1-gtk2.1 0.4.5-1 sends desktop notifications to a n hi libpanel-applet2-0 2.30.0-2 library for GNOME Panel applets hi libpango1.0-0 1.28.1-1 Layout and rendering of internatio hi libunique-1.0-0 1.1.6-1 Library for writing single instanc hi libx11-6 2:1.3.3-3 X11 client-side library hi libxext6 2:1.1.1-3 X11 miscellaneous extension librar hi libxrandr2 2:1.3.0-3 X11 RandR extension library hi notification-daemon 0.4.0-2 a daemon that displays passive pop hi upower 0.9.4-2 abstraction for power management Versions of packages gnome-power-manager recommends: hi udisks 1.0.1+git20100614-1 abstraction for enumerating block Versions of packages gnome-power-manager suggests: hi hal 0.5.14-2 Hardware Abstraction Layer -- no debconf information
Distro version: squeeze/sid Kernel version: 2.6.32-5-amd64 g-p-m version: 2.30.1 HAL version: 0.5.14 System manufacturer: missing System version: missing System product: missing AC adapter present: yes Battery present: yes Laptop panel present: yes CPU scaling present: yes Battery Information: battery.charge_level.current = 41300 (0xa154) (int) battery.charge_level.design = 56160 (0xdb60) (int) battery.charge_level.last_full = 57510 (0xe0a6) (int) battery.charge_level.percentage = 71 (0x47) (int) battery.charge_level.rate = 0 (0x0) (int) battery.is_rechargeable = true (bool) battery.model = '42T4648' (string) battery.present = true (bool) battery.rechargeable.is_charging = false (bool) battery.rechargeable.is_discharging = false (bool) battery.reporting.current = 41300 (0xa154) (int) battery.reporting.design = 56160 (0xdb60) (int) battery.reporting.last_full = 57510 (0xe0a6) (int) battery.reporting.rate = 0 (0x0) (int) battery.reporting.technology = 'Li-ion' (string) battery.reporting.unit = 'mWh' (string) battery.serial = '33332' (string) battery.technology = 'lithium-ion' (string) battery.type = 'primary' (string) battery.vendor = 'LGC' (string) battery.voltage.current = 11680 (0x2da0) (int) battery.voltage.design = 10800 (0x2a30) (int) battery.voltage.unit = 'mV' (string) DeviceKit data: Device: /org/freedesktop/UPower/devices/line_power_AC native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/ACPI0003:00/power_supply/AC power supply: yes updated: Thu Jun 24 17:32:09 2010 (13 seconds ago) has history: no has statistics: no line-power online: yes Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 vendor: LGC model: 42T4648 serial: 33332 power supply: yes updated: Thu Jun 24 17:32:15 2010 (7 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging energy: 41.3 Wh energy-empty: 0 Wh energy-full: 57.51 Wh energy-full-design: 56.16 Wh energy-rate: 31.51 W voltage: 12.004 V time to full: 30.9 minutes percentage: 71.8136% capacity: 100% technology: lithium-ion History (charge): 1277397129 71.814 discharging 1277397104 72.040 discharging 1277397074 72.231 discharging 1277397044 72.492 discharging History (rate): 1277397135 31.510 charging 1277397129 0.000 discharging 1277397104 18.736 discharging 1277397074 17.241 discharging 1277397044 18.743 discharging Daemon: daemon-version: 0.9.4 can-suspend: yes can-hibernate yes on-battery: no on-low-battery: no lid-is-closed: no lid-is-present: yes GNOME Power Manager Process Information: jhnc 2986 0.0 0.3 219428 12604 ? S 14:58 0:04 \_ gnome-power-manager jhnc 3040 0.0 0.3 271216 12724 ? S 14:58 0:04 /usr/lib/gnome-power-manager/gnome-inhibit-applet --oaf-activate-iid=OAFIID:GNOME_InhibitApplet_Factory --oaf-ior-fd=24 jhnc 1235 0.0 0.6 202652 24284 pts/1 S+ 17:14 0:00 \_ /usr/bin/python /usr/bin/reportbug gnome-power-manager jhnc 1289 0.0 0.0 3948 580 pts/1 S+ 17:22 0:00 \_ sh -c /usr/bin/sensible-editor '/tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs' jhnc 1290 0.0 0.0 3948 604 pts/1 S+ 17:22 0:00 \_ /bin/sh /usr/bin/sensible-editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs jhnc 1291 0.3 0.0 10592 2024 pts/1 S+ 17:22 0:01 \_ editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs HAL Process Information: 107 2116 0.0 0.1 44792 5256 ? Ssl 14:57 0:04 /usr/sbin/hald root 2120 0.0 0.0 22160 1356 ? S 14:57 0:00 \_ hald-runner root 2290 0.0 0.0 24276 1340 ? S 14:58 0:01 \_ hald-addon-input: Listening on /dev/input/event13 /dev/input/event8 /dev/input/event1 /dev/input/event11 /dev/input/event3 /dev/input/event2 /dev/input/event5 /dev/input/event10 /dev/input/event6 /dev/input/event4 root 2295 0.0 0.0 24268 1284 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-rfkill-killswitch root 2318 0.0 0.0 24268 1304 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-leds root 2319 0.0 0.0 24268 1256 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-generic-backlight root 2326 0.0 0.0 24284 1264 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-cpufreq 107 2327 0.0 0.0 26096 1280 ? S 14:58 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket root 1210 0.0 0.0 24272 1304 ? S 17:13 0:00 \_ hald-addon-storage: polling /dev/sr0 (every 2 sec)
Distro version: squeeze/sid Kernel version: 2.6.32-5-amd64 g-p-m version: 2.30.1 HAL version: 0.5.14 System manufacturer: missing System version: missing System product: missing AC adapter present: yes Battery present: yes Laptop panel present: yes CPU scaling present: yes Battery Information: battery.charge_level.current = 4163 (0x1043) (int) battery.charge_level.design = 56160 (0xdb60) (int) battery.charge_level.last_full = 5751 (0x1677) (int) battery.charge_level.percentage = 72 (0x48) (int) battery.charge_level.rate = 2877 (0xb3d) (int) battery.is_rechargeable = true (bool) battery.model = '42T4648' (string) battery.present = true (bool) battery.rechargeable.is_charging = true (bool) battery.rechargeable.is_discharging = false (bool) battery.remaining_time = 1987 (0x7c3) (int) battery.reporting.current = 4163 (0x1043) (int) battery.reporting.design = 56160 (0xdb60) (int) battery.reporting.last_full = 5751 (0x1677) (int) battery.reporting.rate = 2877 (0xb3d) (int) battery.reporting.technology = 'Li-ion' (string) battery.reporting.unit = 'mWh' (string) battery.serial = '33332' (string) battery.technology = 'lithium-ion' (string) battery.type = 'primary' (string) battery.vendor = 'LGC' (string) battery.voltage.current = 12019 (0x2ef3) (int) battery.voltage.design = 10800 (0x2a30) (int) battery.voltage.unit = 'mV' (string) DeviceKit data: Device: /org/freedesktop/UPower/devices/line_power_AC native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/ACPI0003:00/power_supply/AC power supply: yes updated: Thu Jun 24 17:32:09 2010 (58 seconds ago) has history: no has statistics: no line-power online: yes Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 vendor: LGC model: 42T4648 serial: 33332 power supply: yes updated: Thu Jun 24 17:32:50 2010 (17 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging energy: 4.166 Wh energy-empty: 0 Wh energy-full: 57.51 Wh energy-full-design: 56.16 Wh energy-rate: 2.873 W voltage: 12.135 V time to full: 18.6 hours percentage: 7.24396% capacity: 100% technology: lithium-ion History (charge): 1277397170 7.244 charging 1277397129 71.814 discharging 1277397104 72.040 discharging 1277397074 72.231 discharging History (rate): 1277397170 2.873 charging 1277397135 31.510 charging 1277397129 0.000 discharging 1277397104 18.736 discharging 1277397074 17.241 discharging Daemon: daemon-version: 0.9.4 can-suspend: yes can-hibernate yes on-battery: no on-low-battery: no lid-is-closed: no lid-is-present: yes GNOME Power Manager Process Information: jhnc 2986 0.0 0.3 219428 12604 ? S 14:58 0:04 \_ gnome-power-manager jhnc 3040 0.0 0.3 271216 12724 ? S 14:58 0:04 /usr/lib/gnome-power-manager/gnome-inhibit-applet --oaf-activate-iid=OAFIID:GNOME_InhibitApplet_Factory --oaf-ior-fd=24 jhnc 1235 0.0 0.6 202652 24284 pts/1 S+ 17:14 0:00 \_ /usr/bin/python /usr/bin/reportbug gnome-power-manager jhnc 1289 0.0 0.0 3948 580 pts/1 S+ 17:22 0:00 \_ sh -c /usr/bin/sensible-editor '/tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs' jhnc 1290 0.0 0.0 3948 604 pts/1 S+ 17:22 0:00 \_ /bin/sh /usr/bin/sensible-editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs jhnc 1291 0.3 0.0 10592 2024 pts/1 S+ 17:22 0:01 \_ editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs HAL Process Information: 107 2116 0.0 0.1 44792 5264 ? Ssl 14:57 0:04 /usr/sbin/hald root 2120 0.0 0.0 22160 1356 ? S 14:57 0:00 \_ hald-runner root 2290 0.0 0.0 24276 1340 ? S 14:58 0:01 \_ hald-addon-input: Listening on /dev/input/event13 /dev/input/event8 /dev/input/event1 /dev/input/event11 /dev/input/event3 /dev/input/event2 /dev/input/event5 /dev/input/event10 /dev/input/event6 /dev/input/event4 root 2295 0.0 0.0 24268 1284 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-rfkill-killswitch root 2318 0.0 0.0 24268 1304 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-leds root 2319 0.0 0.0 24268 1256 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-generic-backlight root 2326 0.0 0.0 24284 1264 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-cpufreq 107 2327 0.0 0.0 26096 1280 ? S 14:58 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket root 1210 0.0 0.0 24272 1304 ? S 17:13 0:00 \_ hald-addon-storage: polling /dev/sr0 (every 2 sec)
Distro version: squeeze/sid Kernel version: 2.6.32-5-amd64 g-p-m version: 2.30.1 HAL version: 0.5.14 System manufacturer: missing System version: missing System product: missing AC adapter present: yes Battery present: yes Laptop panel present: yes CPU scaling present: yes Battery Information: battery.charge_level.current = 42200 (0xa4d8) (int) battery.charge_level.design = 56160 (0xdb60) (int) battery.charge_level.last_full = 57510 (0xe0a6) (int) battery.charge_level.percentage = 73 (0x49) (int) battery.charge_level.rate = 14678 (0x3956) (int) battery.is_rechargeable = true (bool) battery.model = '42T4648' (string) battery.present = true (bool) battery.rechargeable.is_charging = false (bool) battery.rechargeable.is_discharging = true (bool) battery.remaining_time = 10350 (0x286e) (int) battery.reporting.current = 42200 (0xa4d8) (int) battery.reporting.design = 56160 (0xdb60) (int) battery.reporting.last_full = 57510 (0xe0a6) (int) battery.reporting.rate = 14678 (0x3956) (int) battery.reporting.technology = 'Li-ion' (string) battery.reporting.unit = 'mWh' (string) battery.serial = '33332' (string) battery.technology = 'lithium-ion' (string) battery.type = 'primary' (string) battery.vendor = 'LGC' (string) battery.voltage.current = 11696 (0x2db0) (int) battery.voltage.design = 10800 (0x2a30) (int) battery.voltage.unit = 'mV' (string) DeviceKit data: Device: /org/freedesktop/UPower/devices/line_power_AC native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/ACPI0003:00/power_supply/AC power supply: yes updated: Thu Jun 24 17:34:00 2010 (45 seconds ago) has history: no has statistics: no line-power online: no Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 vendor: LGC model: 42T4648 serial: 33332 power supply: yes updated: Thu Jun 24 17:34:41 2010 (4 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging energy: 42.15 Wh energy-empty: 0 Wh energy-full: 57.51 Wh energy-full-design: 56.16 Wh energy-rate: 16.166 W voltage: 11.639 V time to empty: 2.6 hours percentage: 73.2916% capacity: 100% technology: lithium-ion History (charge): 1277397281 73.292 discharging 1277397251 7.347 discharging 1277397250 7.348 discharging 1277397247 7.352 discharging 1277397245 7.354 discharging 1277397240 7.357 discharging 1277397231 7.341 charging 1277397201 7.289 charging History (rate): 1277397281 16.166 discharging 1277397251 1.301 discharging 1277397251 1.339 discharging 1277397247 1.390 discharging 1277397245 1.476 discharging 1277397245 1.379 discharging 1277397231 2.802 charging 1277397201 2.777 charging Daemon: daemon-version: 0.9.4 can-suspend: yes can-hibernate yes on-battery: yes on-low-battery: no lid-is-closed: no lid-is-present: yes GNOME Power Manager Process Information: jhnc 2986 0.0 0.3 219428 12604 ? S 14:58 0:04 \_ gnome-power-manager jhnc 3040 0.0 0.3 271216 12724 ? S 14:58 0:04 /usr/lib/gnome-power-manager/gnome-inhibit-applet --oaf-activate-iid=OAFIID:GNOME_InhibitApplet_Factory --oaf-ior-fd=24 jhnc 1235 0.0 0.6 202652 24284 pts/1 S+ 17:14 0:00 \_ /usr/bin/python /usr/bin/reportbug gnome-power-manager jhnc 1289 0.0 0.0 3948 580 pts/1 S+ 17:22 0:00 \_ sh -c /usr/bin/sensible-editor '/tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs' jhnc 1290 0.0 0.0 3948 604 pts/1 S+ 17:22 0:00 \_ /bin/sh /usr/bin/sensible-editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs jhnc 1291 0.2 0.0 10592 2024 pts/1 S+ 17:22 0:01 \_ editor /tmp/reportbug-gnome-power-manager-20100624-1235-NyQtYs HAL Process Information: 107 2116 0.0 0.1 44792 5272 ? Ssl 14:57 0:04 /usr/sbin/hald root 2120 0.0 0.0 22160 1356 ? S 14:57 0:00 \_ hald-runner root 2290 0.0 0.0 24276 1340 ? S 14:58 0:01 \_ hald-addon-input: Listening on /dev/input/event13 /dev/input/event8 /dev/input/event1 /dev/input/event11 /dev/input/event3 /dev/input/event2 /dev/input/event5 /dev/input/event10 /dev/input/event6 /dev/input/event4 root 2295 0.0 0.0 24268 1284 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-rfkill-killswitch root 2318 0.0 0.0 24268 1304 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-leds root 2319 0.0 0.0 24268 1256 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-generic-backlight root 2326 0.0 0.0 24284 1264 ? S 14:58 0:00 \_ /usr/lib/hal/hald-addon-cpufreq 107 2327 0.0 0.0 26096 1280 ? S 14:58 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket