upower does not notice that I plugged in a different battery
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upower (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a Lenovo T450 with hotswappable batteries, and upower and indicator-power are a complete mess on this model. Just 30 minutes ago I got a new larger capacity secondary battery, plugged it in, and upower never seems to notice that it was changed!
% cat /sys/class/
71280000
% cat /sys/class/
74800000
% cat /sys/class/
42060000
vs
Device: /org/freedeskto
native-path: AC
power supply: yes
updated: Mon 11 Jan 2016 10:47:34 AM EET (1152 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes
icon-name: 'ac-adapter-
Device: /org/freedeskto
native-path: BAT0
vendor: LGC
model: 45N1113
serial: 1210
power supply: yes
updated: Mon 11 Jan 2016 11:06:28 AM EET (18 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 23.22 Wh
energy-empty: 0 Wh
energy-full: 23.42 Wh
energy-
energy-rate: 4.337 W
voltage: 12.76 V
percentage: 99%
capacity: 99.7445%
technology: lithium-ion
icon-name: 'battery-
Device: /org/freedeskto
native-path: BAT1
vendor: LGC
model: 45N1127
serial: 10284
power supply: yes
updated: Mon 11 Jan 2016 11:05:32 AM EET (74 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 41.69 Wh
energy-empty: 0 Wh
energy-full: 41.69 Wh
energy-
energy-rate: 21.879 W
voltage: 11.632 V
percentage: 55%
capacity: 100%
technology: lithium-ion
icon-name: 'battery-
History (charge):
1452503132 55.000 charging
History (rate):
1452503132 21.879 charging
Device: /org/freedeskto
power supply: yes
updated: Mon 11 Jan 2016 11:05:32 AM EET (74 seconds ago)
has history: no
has statistics: no
battery
present: yes
state: charging
warning-level: none
energy: 64.91 Wh
energy-full: 65.11 Wh
energy-rate: 26.216 W
time to full: 27 seconds
percentage: 99.6928%
icon-name: 'battery-
Daemon:
daemon-version: 0.99.3
on-battery: no
lid-is-closed: no
lid-is-present: yes
critical-action: PowerOff
Wouldn't it be equally consuming to read the `energy_full` and `energy_