[Pkg-utopia-maintainers] Bug#660068: upower: wrong battery percentage after power is unplugged
Matt Stamp
matt at mattstamp.com
Thu Feb 16 04:25:48 UTC 2012
Subject: upower: wrong battery percentage after power is unplugged
Package: upower
Version: 0.9.15-2
Severity: important
Dear Maintainer,
It is possible that this is a duplicate bug regarding battery percentage but I
wanted to submit my experience in case it sheds more light as to what is going
on. I am having an issue with my laptop (Dell Inspiron 6400) where once the
battery is fully charged and the power is unplugged the battery percentage
will go from 100% to 77% almost immediately. If I run "acpi -b", that reports
the correct battery percentage and time left. If I were to run "dpkg-
reconfigure upower" the battery percentage is corrected until the next charge.
If I plug and unplug the power at any other percentage the issue does not
present itself.
After a little further looking I have found this. According to
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/
charge_full = 6177000 and is static
charge_full_design = 7800000 and is static
charge_now is acting a bit weird. When the laptop is on battery the value is
that of what ever the charge is, somewhere below 6177000, but when the charge
reaches 100% it becomes 7800000. Then when the charge drops for the first time
it changes from 7800000 to what ever the charge may be.
I know this problem is with the kernel, the issue I have with upower is that
when the battery becomes fully charged "energy", "energy-full" and "energy-
full-design" all become "charge_full_design"'s value. Then when on battery
power the kernel updates /sys and the "energy" value gets updated with upower
but the "energy-full" value remains that of "energy-full-design" making the
battery instantly look discharged. The value in /sys for charge_full never
changes so I don't know why upower would need to changing it.
Full charge, plugged in
[18:50:50.367] device changed:
/org/freedesktop/UPower/devices/battery_BAT0
native-path:
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
vendor: Sanyo
model: DELLJN1490
serial: 911
power supply: yes
updated: Wed Feb 15 18:50:50 2012 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 86.58 Wh
energy-empty: 0 Wh
energy-full: 86.58 Wh
energy-full-design: 86.58 Wh
energy-rate: 0.0111 W
voltage: 12.484 V
percentage: 100%
capacity: 79.1923%
technology: lithium-ion
History (charge):
1329360648 100.000 fully-charged
1329360646 77.949 charging
1329360637 78.026 discharging
History (rate):
1329360648 0.011 fully-charged
1329360637 25.375 discharging
Full charge, just unplugged
[18:51:56.371] device changed:
/org/freedesktop/UPower/devices/battery_BAT0
native-path:
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
vendor: Sanyo
model: DELLJN1490
serial: 911
power supply: yes
updated: Wed Feb 15 18:51:56 2012 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 67.488 Wh
energy-empty: 0 Wh
energy-full: 86.58 Wh
energy-full-design: 86.58 Wh
energy-rate: 24.531 W
voltage: 12.328 V
time to empty: 2.8 hours
percentage: 77.9487%
capacity: 79.1923%
technology: lithium-ion
History (charge):
1329360712 77.949 discharging
1329360648 100.000 fully-charged
1329360646 77.949 charging
1329360637 78.026 discharging
History (rate):
1329360712 24.531 discharging
1329360648 0.011 fully-charged
1329360637 25.375 discharging
Full charge, just after dpk-reconfigure upower
[18:52:22.366] device changed:
/org/freedesktop/UPower/devices/battery_BAT0
native-path:
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
vendor: Sanyo
model: DELLJN1490
serial: 911
power supply: yes
updated: Wed Feb 15 18:52:22 2012 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 67.2882 Wh
energy-empty: 0 Wh
energy-full: 68.5647 Wh
energy-full-design: 86.58 Wh
energy-rate: 37.0518 W
voltage: 12.291 V
time to empty: 1.8 hours
percentage: 98.1383%
capacity: 79.1923%
technology: lithium-ion
History (charge):
1329360738 98.138 discharging
1329360736 0.000 unknown
History (rate):
1329360738 37.052 discharging
1329360736 0.000 unknown
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages upower depends on:
ii dbus 1.5.0-2
ii libc6 2.13-26
ii libdbus-1-3 1.4.18-1
ii libdbus-glib-1-2 0.98-1
ii libglib2.0-0 2.30.2-6
ii libgudev-1.0-0 175-3
ii libimobiledevice2 1.1.1-3
ii libplist1 1.8-1
ii libpolkit-gobject-1-0 0.104-2
ii libupower-glib1 0.9.15-2
ii libusb-1.0-0 2:1.0.9~rc3-3
ii pm-utils 1.4.1-9
ii udev 175-3
Versions of packages upower recommends:
ii policykit-1 0.104-2
upower suggests no packages.
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list