upower does not update state of internal battery when sheet battery is attached

Bug #898477 reported by Russ Dill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have a laptop with two batteries, a sheet battery and an internal battery, when I run the power down with both, the internal battery sometimes never updates it's state. You can see the last updated time as being 12051 seconds ago.

russ@russ-laptop:~/src/darter (parser) $ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path: /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ADP1
  power supply: yes
  updated: Wed Nov 30 18:29:29 2011 (12058 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/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 18:29:36 2011 (12051 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: fully-charged
    energy: 51.06 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 0.024 W
    voltage: 12.397 V
    percentage: 100%
    capacity: 100%
    technology: lithium-ion

Device: /org/freedesktop/UPower/devices/battery_BAT2
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:01/power_supply/BAT2
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:50:08 2011 (19 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 1.69 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 0.01 W
    voltage: 10.977 V
    percentage: 3.30983%
    capacity: 100%
    technology: lithium-ion

Daemon:
  daemon-version: 0.9.14
  can-suspend: yes
  can-hibernate no
  on-battery: yes
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes
  is-docked: no

russ@russ-laptop:~/src/darter (parser) $ for i in $(find /sys/devices/LNXSYSTM\:00/device\:00/PNP0A08\:00/device\:01/PNP0C09\:00/PNP0C0A\:00/power_supply/BAT1 -type f); do echo $(basename $i) ":" $(cat $i); done
alarm : 0
uevent : POWER_SUPPLY_NAME=BAT1 POWER_SUPPLY_STATUS=Discharging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CYCLE_COUNT=0 POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 POWER_SUPPLY_VOLTAGE_NOW=10865000 POWER_SUPPLY_POWER_NOW=25402000 POWER_SUPPLY_ENERGY_FULL_DESIGN=51060000 POWER_SUPPLY_ENERGY_FULL=51060000 POWER_SUPPLY_ENERGY_NOW=12930000 POWER_SUPPLY_MODEL_NAME= POWER_SUPPLY_MANUFACTURER=Sony Corporation POWER_SUPPLY_SERIAL_NUMBER=
status : Discharging
present : 1
technology : Li-ion
cycle_count : 0
voltage_min_design : 11100000
voltage_now : 10865000
power_now : 25402000
energy_full_design : 51060000
energy_full : 51060000
energy_now : 12930000
type : Battery
model_name :
manufacturer : Sony Corporation
serial_number :
async : disabled
runtime_status : unsupported
runtime_usage : 0
runtime_active_kids : 0
runtime_enabled : disabled
control : auto
runtime_suspended_time : 0
runtime_active_time : 0
cat: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1/power/autosuspend_delay_ms: Input/output error
autosuspend_delay_ms :

russ@russ-laptop:~/src/darter (parser) $ upower -m --monitor-detail
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[21:57:38.881] device changed: /org/freedesktop/UPower/devices/battery_BAT2
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:01/power_supply/BAT2
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:57:38 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 1.69 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 0.01 W
    voltage: 10.977 V
    percentage: 3.30983%
    capacity: 100%
    technology: lithium-ion

[21:58:08.884] device changed: /org/freedesktop/UPower/devices/battery_BAT2
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:01/power_supply/BAT2
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:08 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 1.69 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 0.01 W
    voltage: 10.978 V
    percentage: 3.30983%
    capacity: 100%
    technology: lithium-ion

(And then uplug sheet battery)...

[21:58:27.405] device removed: /org/freedesktop/UPower/devices/battery_BAT1

[21:58:27.672] device removed: /org/freedesktop/UPower/devices/battery_BAT2

[21:58:27.852] device added: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:27 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.25 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 26.318 W
    voltage: 10.844 V
    time to empty: 27.9 minutes
    percentage: 23.9914%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:27.854] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:27 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.25 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 26.318 W
    voltage: 10.844 V
    time to empty: 27.9 minutes
    percentage: 23.9914%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:27.856] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:27 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.25 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 26.318 W
    voltage: 10.844 V
    time to empty: 27.9 minutes
    percentage: 23.9914%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:28.880] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:28 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.25 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 26.318 W
    voltage: 10.844 V
    time to empty: 27.9 minutes
    percentage: 23.9914%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:29.878] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:29 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.25 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 26.318 W
    voltage: 10.844 V
    time to empty: 27.9 minutes
    percentage: 23.9914%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:30.880] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:30 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.13 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 25.942 W
    voltage: 10.832 V
    time to empty: 28.0 minutes
    percentage: 23.7564%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715510 23.756 discharging
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715510 25.942 discharging
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:31.878] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:31 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.13 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 25.942 W
    voltage: 10.832 V
    time to empty: 28.0 minutes
    percentage: 23.7564%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715510 23.756 discharging
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715510 25.942 discharging
    1322715507 26.318 discharging
    1322715507 0.000 unknown

[21:58:32.880] device changed: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: Sony Corporation
  power supply: yes
  updated: Wed Nov 30 21:58:32 2011 (0 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 12.13 Wh
    energy-empty: 0 Wh
    energy-full: 51.06 Wh
    energy-full-design: 51.06 Wh
    energy-rate: 25.942 W
    voltage: 10.832 V
    time to empty: 28.0 minutes
    percentage: 23.7564%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1322715510 23.756 discharging
    1322715507 23.991 discharging
    1322715507 0.000 unknown
  History (rate):
    1322715510 25.942 discharging
    1322715507 26.318 discharging
    1322715507 0.000 unknown

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.