upower shows wrong battery percentage after waking up from suspend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Upower |
New
|
Undecided
|
Unassigned | ||
upower (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: upower
upower currently shows a remaining percentage of 8.13402% while it is in fact 81% as shown by ACPI.
$ upower --dump
Device: /org/freedeskto
native-path: /sys/devices/
power supply: yes
updated: Tue Apr 26 10:41:47 2011 (1637 seconds ago)
has history: no
has statistics: no
line-power
online: no
Device: /org/freedeskto
native-path: /sys/devices/
vendor: Panasonic
model: 42T4801
serial: 9429
power supply: yes
updated: Tue Apr 26 11:08:52 2011 (12 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 6.761 Wh
energy-empty: 0 Wh
energy-full: 83.12 Wh
energy-
energy-rate: 3.051 W
voltage: 11.47 V
time to empty: 2.2 hours
percentage: 8.13402%
capacity: 98.6705%
technology: lithium-ion
History (charge):
1303808932 8.134 discharging
1303808902 8.173 discharging
1303808872 8.205 discharging
1303808842 8.234 discharging
History (rate):
1303808932 3.051 discharging
1303808902 2.735 discharging
1303808872 2.583 discharging
1303808842 2.389 discharging
Daemon:
daemon-version: 0.9.9
can-suspend: yes
can-hibernate no
on-battery: yes
on-low-battery: yes
lid-is-closed: no
lid-is-present: yes
is-docked: no
$ acpi -V
Battery 0: Discharging, 81%, 02:11:51 remaining
Battery 0: design capacity 735 mAh, last full capacity 725 mAh = 98%
Adapter 0: off-line
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: upower 0.9.9-4
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue Apr 26 11:08:12 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110124)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
LANGUAGE=
SourcePackage: upower
UpgradeStatus: No upgrade log present (probably fresh install)
Can be fixed by killing upowerd ( /usr/lib/ upower/ upowerd) . A script can be written in /etc/pm/sleep.d/ to do this at each resume from sleep.
An upstream fix is strongly desired though.