Bug 91128

Summary: upowerd doesn't cope with battery changes
Product: upower Reporter: Jeremy Fitzhardinge <jeremy>
Component: generalAssignee: Richard Hughes <richard>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jeremy Fitzhardinge 2015-06-27 18:00:37 UTC
I have a Lenovo T440s laptop, which has two batteries: an internal one, and a user-replacable external one. The external one can be hot-swapped at any time. I do this regularly, switching between a light battery when I know I won't be away from power for long, or a larger battery when I need longer running time.

When I switch from small->large, upowerd reports:

Jun 24 10:13:10 sporall.goop.org upowerd[3621]: (upowerd:3621): UPower-Linux-WAR
NING **: energy 68.470000 bigger than full 18.580000

But then seems to update its state and carry on.

However, when I switch back from large->small, upowerd reports that as a sudden loss of capacity and shows a reduced battery percentage and pessimistic lifetime prediction. I need to restart upowerd to get it to report correct battery capacity/lifetime.

The batteries do have distinguishable manufacturer/model/serial number, so in principle it should be possible for upowerd to notice and account for the battery change.
Comment 1 Bastien Nocera 2015-07-06 10:06:11 UTC

*** This bug has been marked as a duplicate of bug 91003 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.