wrong energy reort on Lenovo X201s

Bug #781951 reported by Hiroshi Miura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: upower

gnome-power-manager report wrong percentage of energy after suspend/resume with power connection.
It caused because upowerd report wrong values.

Distribution: Ubuntu Natty (11.04) amd64
Laptop: Lenovo ThinkPad X201s

When suspneding on 30% of battrey with AC connection. and resume at >95% but report as 9%

miurahr@miurahr-note:~/projects/gnome/upower-0.9.9$ upower --monitor-detail
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[07:57:26.092] device changed: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor: SANYO
  model: 42T4835
  serial: 366
  power supply: yes
  updated: Fri May 13 07:57:25 2011 (1 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 6.115 Wh
    energy-empty: 0 Wh
    energy-full: 66.48 Wh
    energy-full-design: 62.16 Wh
    energy-rate: 1.958 W
    voltage: 12.468 V
    time to empty: 3.1 hours
    percentage: 9.19826%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1305241045 9.198 discharging
    1305241015 9.234 discharging
    1305240985 9.269 discharging
    1305240955 9.305 discharging
  History (rate):
    1305241046 1.958 discharging
    1305241016 1.904 discharging
    1305240986 1.939 discharging
    1305240956 1.896 discharging

[07:57:56.093] device changed: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor: SANYO
  model: 42T4835
  serial: 366
  power supply: yes
  updated: Fri May 13 07:57:55 2011 (1 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 6.091 Wh
    energy-empty: 0 Wh
    energy-full: 66.48 Wh
    energy-full-design: 62.16 Wh
    energy-rate: 2.019 W
    voltage: 12.455 V
    time to empty: 3.0 hours
    percentage: 9.16215%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1305241075 9.162 discharging
    1305241045 9.198 discharging
    1305241015 9.234 discharging
    1305240985 9.269 discharging
  History (rate):
    1305241076 2.019 discharging
    1305241046 1.958 discharging
    1305241016 1.904 discharging
    1305240986 1.939 discharging

^C
miurahr@miurahr-note:~/projects/gnome/upower-0.9.9$ upower --monitor-detail
0*@!$ shell 1-$ bash miurahr@miurahr-note 192.168.1.103 Menu:<F9>
 U Ubuntu 11.04 ^8kbps v40kbps 31! 4d22h 2.18 4x1.2GHz 3.5GB,75% 2011-05-13 07
  History (rate):
    1305241046 1.958 discharging
    1305241016 1.904 discharging
    1305240986 1.939 discharging
    1305240956 1.896 discharging

[07:57:56.093] device changed: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor: SANYO
  model: 42T4835
  serial: 366
  power supply: yes
  updated: Fri May 13 07:57:55 2011 (1 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 6.091 Wh
    energy-empty: 0 Wh
    energy-full: 66.48 Wh
    energy-full-design: 62.16 Wh
    energy-rate: 2.019 W
    voltage: 12.455 V
    time to empty: 3.0 hours
    percentage: 9.16215%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1305241075 9.162 discharging
    1305241045 9.198 discharging
    1305241015 9.234 discharging
    1305240985 9.269 discharging
  History (rate):
    1305241076 2.019 discharging
    1305241046 1.958 discharging
    1305241016 1.904 discharging
    1305240986 1.939 discharging

Because Linux kernel report good values, it would be problem on upower.

miurahr@miurahr-note:~/projects/gnome/upower-0.9.9$ cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: discharging
present rate: 2022 mA
remaining capacity: 5860 mAh
present voltage: 12353 mV

Revision history for this message
Hiroshi Miura (miurahr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.