From this we can see that hardware and kernel reports right figures when unplugging the powercord:
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/battery/BAT1/info
present: yes
design capacity: 2600 mWh
last full capacity: 2383 mWh
battery technology: non-rechargeable
design voltage: 10800 mV
design capacity warning: 120 mWh
design capacity low: 24 mWh
capacity granularity 1: 0 mWh
capacity granularity 2: 100 mWh
model number: Primary
serial number: 100000
battery type: LiOn
OEM info: Hewlett-Packard
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charging
present rate: 64269 mW
remaining capacity: 1959 mWh
present voltage: 12548 mV
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: discharging
present rate: 1260 mW
remaining capacity: 1959 mWh
present voltage: 11789 mV
Here we can see how upower miscalculates remaining battery charge (time to empty 2.2 minutes):
tarmo@tarmo-hpmini ~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_AC0
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/ACPI0003:00/power_supply/AC0
power supply: yes
updated: Wed Jan 12 14:35:07 2011 (835 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT1
vendor: Hewlett-Packard
model: Primary
serial: 100000
power supply: yes
updated: Wed Jan 12 14:35:13 2011 (829 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 2.383 Wh
energy-empty: 0 Wh
energy-full: 2.383 Wh
energy-full-design: 2.6 Wh
energy-rate: 65.535 W
voltage: 12.364 V
percentage: 100%
capacity: 91.6538%
technology: lithium-ion
Daemon:
daemon-version: 0.9.1
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
tarmo@tarmo-hpmini ~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_AC0
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/ACPI0003:00/power_supply/AC0
power supply: yes
updated: Wed Jan 12 14:50:10 2011 (3 seconds ago)
has history: no
has statistics: no
line-power
online: no
Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/PNP0C0A:00/power_supply/BAT1
vendor: Hewlett-Packard
model: Primary
serial: 100000
power supply: yes
updated: Wed Jan 12 14:50:13 2011 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 2.383 Wh
energy-empty: 0 Wh
energy-full: 2.383 Wh
energy-full-design: 2.6 Wh
energy-rate: 65.535 W
voltage: 12.43 V
time to empty: 2.2 minutes
percentage: 100%
capacity: 91.6538%
technology: lithium-ion
Daemon:
daemon-version: 0.9.1
can-suspend: yes
can-hibernate yes
on-battery: yes
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
Could it be that upower uses very high charging rate as basis of calculation of remaining time (seen in the first battery state)?
I agree with previous comments that this is a critical problem. This is causing laptop being useless. When unplugging laptop goes to standby, when waking up, it comes up but immediately hibernates etc... I hope there could be some sort of patch for this version of upower, because it will be used in ubuntu 10.04 for tree years (long term support). Is there any way I could help in locating the problem?
From this we can see that hardware and kernel reports right figures when unplugging the powercord: battery/ BAT1/info battery/ BAT1/state battery/ BAT1/state
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/
present: yes
design capacity: 2600 mWh
last full capacity: 2383 mWh
battery technology: non-rechargeable
design voltage: 10800 mV
design capacity warning: 120 mWh
design capacity low: 24 mWh
capacity granularity 1: 0 mWh
capacity granularity 2: 100 mWh
model number: Primary
serial number: 100000
battery type: LiOn
OEM info: Hewlett-Packard
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/
present: yes
capacity state: ok
charging state: charging
present rate: 64269 mW
remaining capacity: 1959 mWh
present voltage: 12548 mV
tarmo@tarmo-hpmini ~ $ cat /proc/acpi/
present: yes
capacity state: ok
charging state: discharging
present rate: 1260 mW
remaining capacity: 1959 mWh
present voltage: 11789 mV
Here we can see how upower miscalculates remaining battery charge (time to empty 2.2 minutes): p/UPower/ devices/ line_power_ AC0 LNXSYSTM: 00/LNXSYBUS: 00/PNP0A03: 00/ACPI0003: 00/power_ supply/ AC0
tarmo@tarmo-hpmini ~ $ upower --dump
Device: /org/freedeskto
native-path: /sys/devices/
power supply: yes
updated: Wed Jan 12 14:35:07 2011 (835 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedeskto p/UPower/ devices/ battery_ BAT1 LNXSYSTM: 00/LNXSYBUS: 00/PNP0A03: 00/PNP0C0A: 00/power_ supply/ BAT1 full-design: 2.6 Wh
native-path: /sys/devices/
vendor: Hewlett-Packard
model: Primary
serial: 100000
power supply: yes
updated: Wed Jan 12 14:35:13 2011 (829 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 2.383 Wh
energy-empty: 0 Wh
energy-full: 2.383 Wh
energy-
energy-rate: 65.535 W
voltage: 12.364 V
percentage: 100%
capacity: 91.6538%
technology: lithium-ion
Daemon: p/UPower/ devices/ line_power_ AC0 LNXSYSTM: 00/LNXSYBUS: 00/PNP0A03: 00/ACPI0003: 00/power_ supply/ AC0
daemon-version: 0.9.1
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
tarmo@tarmo-hpmini ~ $ upower --dump
Device: /org/freedeskto
native-path: /sys/devices/
power supply: yes
updated: Wed Jan 12 14:50:10 2011 (3 seconds ago)
has history: no
has statistics: no
line-power
online: no
Device: /org/freedeskto p/UPower/ devices/ battery_ BAT1 LNXSYSTM: 00/LNXSYBUS: 00/PNP0A03: 00/PNP0C0A: 00/power_ supply/ BAT1 full-design: 2.6 Wh
native-path: /sys/devices/
vendor: Hewlett-Packard
model: Primary
serial: 100000
power supply: yes
updated: Wed Jan 12 14:50:13 2011 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 2.383 Wh
energy-empty: 0 Wh
energy-full: 2.383 Wh
energy-
energy-rate: 65.535 W
voltage: 12.43 V
time to empty: 2.2 minutes
percentage: 100%
capacity: 91.6538%
technology: lithium-ion
Daemon:
daemon-version: 0.9.1
can-suspend: yes
can-hibernate yes
on-battery: yes
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
Could it be that upower uses very high charging rate as basis of calculation of remaining time (seen in the first battery state)?
I agree with previous comments that this is a critical problem. This is causing laptop being useless. When unplugging laptop goes to standby, when waking up, it comes up but immediately hibernates etc... I hope there could be some sort of patch for this version of upower, because it will be used in ubuntu 10.04 for tree years (long term support). Is there any way I could help in locating the problem?