[Pkg-utopia-maintainers] Bug#601345: Debian Bug #601345: wrong battery charge level
Akira Kitada
akitada at gmail.com
Fri May 6 17:12:48 UTC 2011
I'm hitting the same issue. (Debian Sid)
You can see the dump is showing "energy" value is 10 times lower than
/sys/class/power_supply/BAT0/energy_now.
The everything else seems ok.
I also confirmed acpi is not reading from /proc/acpi.
I hope this helps.
$ uname -a
Linux debian 2.6.38-2-amd64 #1 SMP Sat Apr 23 18:47:49 UTC 2011 x86_64 GNU/Linux
$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path:
/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/PNP0C09:00/ACPI0003:00/power_supply/AC
power supply: yes
updated: Sat May 7 00:26:06 2011 (5252 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/device:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
vendor: SANYO
model: 42T4867
serial: 4435
power supply: yes
updated: Sat May 7 01:53:09 2011 (29 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
energy: 9.446 Wh
energy-empty: 0 Wh
energy-full: 94.94 Wh
energy-full-design: 94 Wh
energy-rate: 0.583 W
voltage: 12.879 V
percentage: 9.94944%
capacity: 100%
technology: lithium-ion
History (charge):
1304700729 9.949 charging
History (rate):
1304700789 0.583 charging
1304700759 0.585 charging
1304700729 0.584 charging
Daemon:
daemon-version: 0.9.10
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
is-docked: no
$ for f in /sys/class/power_supply/BAT0/energy*; do echo $f; cat $f; done
/sys/class/power_supply/BAT0/energy_full
9494000
/sys/class/power_supply/BAT0/energy_full_design
9400000
/sys/class/power_supply/BAT0/energy_now
9446000
$ acpi
Battery 0: Charging, 99%, 00:05:20 until charged
$ strace acpi 2>&1 | grep open | grep -v ENOENT
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
open("AC/online", O_RDONLY) = 4
open("AC/type", O_RDONLY) = 4
open("BAT0/power_now", O_RDONLY) = 4
open("BAT0/energy_now", O_RDONLY) = 4
open("BAT0/voltage_now", O_RDONLY) = 4
open("BAT0/voltage_min_design", O_RDONLY) = 4
open("BAT0/energy_full", O_RDONLY) = 4
open("BAT0/energy_full_design", O_RDONLY) = 4
open("BAT0/status", O_RDONLY) = 4
open("BAT0/type", O_RDONLY) = 4
More information about the Pkg-utopia-maintainers
mailing list