Bug 1038699

Summary: Battery notification confused on Thinkpad T440s with multiple batteries
Product: [Fedora] Fedora Reporter: Ferry Huberts <mailings>
Component: kernelAssignee: Richard Hughes <rhughes>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: extras-qa, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, rhughes
Target Milestone: ---Flags: jforbes: needinfo?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1139237 (view as bug list) Environment:
Last Closed: 2014-03-10 14:44:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1139237    
Attachments:
Description Flags
script to show battery status none

Description Ferry Huberts 2013-12-05 16:15:07 UTC
Created attachment 833234 [details]
script to show battery status

The battery notification in the top-right of gnome-shell gets confused by my 2 batteries.

Currently it shows the internal battery at 41% and the changeable battery at 100%. This is wrong, because when looking at the ACPI data /sys/bus/acpi/drivers/battery/PNP0C0A:*/power_supply/BAT* I get 99% and 100% respectively (see the script I'm attaching):
#
# BAT0
#
Charge Now : 99
Health     : 100
Charge Full: 23200000
#
# BAT1
#
Charge Now : 99
Health     : 99
Charge Full: 71000000


As far as I can remember, this first occurred after the changeable battery was drained and I later put the machine on the docking station. The changeable battery then started charging. After charging of that battery completed, the internal battery started charging, but the notification doesn't seem to notice that. It doesn't seem to poll the internal battery at all.

I did remove and reinsert the changeable battery to see if that would resolve the issue, but it didn't.

Comment 1 Ferry Huberts 2013-12-05 22:26:02 UTC
This might actually be a kernel bug or even a BIOS or embedded controller bug.

I just had this again after changing the battery.

The /sys/bus/acpi/drivers/battery directory only showed the internal battery.
Logging out didn't help (obviously), but a reboot did help.

Because a reboot did help I'm personally leaning more towards a kernel bug.

My T440s is on BIOS 2.14

Comment 2 Ferry Huberts 2013-12-05 22:28:04 UTC
kernel-3.11.7-200.fc19.x86_64

Comment 3 Ferry Huberts 2013-12-06 12:25:51 UTC
Just changed the battery after putting the machine into suspend (previously did a hot-swap).

This scenario works ok as far as I can see.

Comment 4 Justin M. Forbes 2014-01-03 22:11:09 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 19 kernel bugs.

Fedora 19 has now been rebased to 3.12.6-200.fc19.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 20, and are still experiencing this issue, please change the version to Fedora 20.

If you experience different issues, please open a new bug report for those.

Comment 5 Justin M. Forbes 2014-03-10 14:44:16 UTC
*********** MASS BUG UPDATE **************

This bug has been in a needinfo state for more than 1 month and is being closed with insufficient data due to inactivity. If this is still an issue with Fedora 19, please feel free to reopen the bug and provide the additional information requested.