Bug 986633 - Bluetooth mouse battery misidentified as extra laptop battery
Bluetooth mouse battery misidentified as extra laptop battery
Product: Fedora
Classification: Fedora
Component: upower (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-21 02:40 EDT by Jonathon Conte
Modified: 2015-02-17 11:16 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-02-17 11:16:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
lspci -vvv (10.09 KB, text/plain)
2013-07-21 02:40 EDT, Jonathon Conte
no flags Details

  None (edit)
Description Jonathon Conte 2013-07-21 02:40:41 EDT
Created attachment 776369 [details]
lspci -vvv

I have a Lenovo T430 ThinkPad with a single battery installed. Sometimes after resuming the laptop from suspend, the gnome-shell battery indicator displays two batteries instead of just one. The real battery and the erroneous phantom battery are each displayed with a different charge percentage.
Comment 1 Jonathon Conte 2013-07-24 13:50:47 EDT
After a little more investigating, I've discovered that the second battery is actually the battery in a Bluetooth mouse connected to the laptop. However, it is being misidentified by GNOME as an extra laptop battery instead of a Bluetooth device battery.
Comment 2 Josh Boyer 2013-09-18 16:29:07 EDT
*********** 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.11.1-200.fc19.  Please test this kernel update and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you experience different issues, please open a new bug report for those.
Comment 3 Dimitris 2013-09-26 23:12:05 EDT
Still here with kernel 3.11.1-200.fc19.x86_64.

$ upower -e
Comment 4 Josh Boyer 2013-09-27 10:11:17 EDT
This only happens after a resume, or any time the bluetooth mouse is used?
Comment 5 Dimitris 2013-09-27 12:17:00 EDT
After resume, with the BT mouse off and BT not yet bounced, the battery is still showing up as a laptop battery in the gnome shell battery indicator, albeit at 0%.  Upower says:

$ upower -e

It disappears only after disabling bluetooth.

I'll reboot and see what happens on fresh boot.
Comment 6 Dimitris 2013-09-27 12:25:05 EDT
On fresh boot, the mouse battery still shows up as a laptop battery.

$ upower -e

bluez and bluez-libs are at 4.101-9.fc19, kernel is 3.11.1-200.fc19.
Comment 7 Josh Boyer 2013-09-27 13:15:24 EDT
There's a scope to HID batteries that upower is supposed to be looking at.
Comment 8 Ivan Makfinsky 2014-05-12 15:12:41 EDT
This same issue seems to be happening on Fedora 20. It worked correctly when I first installed F20. Not sure which update reverted the behavior.
Comment 9 Dimitris 2014-05-31 15:22:54 EDT
Update on my previous comments, suspend/resume doesn't seem to have any relevance with F20 lately.  As Ivan said, this worked correctly for some period after upgrading to F20 but lately is broken again.

With AC adapter plugged in:

BT Mouse connected:
Power Settings:
- Summary is "discharging 99%"
- Main laptop battery shown as discharging, 98%
- Mouse battery is mis-identified as extra laptop battery, shown as charging.
Status menu:
- Battery icon does not show charging symbol, label is "estimating"

BT mouse disconnected: power displays are now correct
Power Settings:
- Battery now only consists of a single bar, "Fully charged".
Status menu:
- Battery icon correct, label is "Fully charged".

Reconnecting the BT mouse reverts to first behavior.

This is all on a fresh boot, to suspend/resume involved.

upower -e output is the same as above.
Comment 10 Fedora End Of Life 2015-01-09 14:01:43 EST
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 11 Henrique Ferreiro 2015-01-26 04:31:06 EST
I can confirm this bug in Fedora 21.
Comment 12 Dimitris 2015-01-26 13:23:33 EST
With F21 here:

Status icon behavior is correct.

When running on battery, and with the BT mouse connected, status is stuck in "Estimating" for a little while (few minutes?) but eventually switches to correct estimate.

BT mouse battery in all cases is shown as "extra" in power settings and with a different color than the one used for the main battery.  Is that intended behavior?

Henrique, have you given it a few minutes for estimation to catch up?

$ upower -e
Comment 13 Henrique Ferreiro 2015-01-27 03:17:21 EST
I don't get any status for the mouse battery in the system status area. Anyway, I was just reporting about the mouse battery being identified as an extra laptop battery.
Comment 14 Dimitris 2015-01-27 04:32:07 EST
(In reply to Henrique Ferreiro from comment #13)
> I don't get any status for the mouse battery in the system status area.
> Anyway, I was just reporting about the mouse battery being identified as an
> extra laptop battery.

To clarify, in https://bugzilla.redhat.com/show_bug.cgi?id=986633#c12 I was referring to the (displayed) status of the main battery.  Under F20 the presence of a BT mouse would interfere with that, it no longer does under F21.  BT battery is identified as an "extra" battery in power settings, I no longer remember (F19? earlier F20?) how the BT battery was supposed to display there.
Comment 15 Fedora End Of Life 2015-02-17 11:16:53 EST
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.