power indicator shows a bluetooth keyboard battery as a laptop battery

Bug #1195840 reported by Olivier Bilodeau
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
indicator-power
New
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

Impact:
some devices are displayed with the wrong icon

Test Case:
use a bluetooth keyboard on a laptop, see if each device has the current icon displayed

This occurs on an up to date 28 June 2013 install. The battery indicator at the top of the screen displays the status of my bluetooth keyboard's battery instead of my currently charging notebook's battery.

$ upower -d
...
Device: /org/freedesktop/UPower/devices/battery_hid_00o02o76o10o3eof1_battery
  native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/bluetooth/hci0/hci0:34/0005:045E:8502.0003/power_supply/hid-00:02:76:10:3e:f1-battery
  model: Rocketfish Bluetooth Keyboard
  power supply: no
  updated: Fri Jun 28 14:05:52 2013 (23 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 0 Wh
    energy-empty: 0 Wh
    energy-full: 0 Wh
    energy-full-design: 0 Wh
    energy-rate: 0 W
    percentage: 94%
    capacity: 100%

Revision history for this message
John A. Lewis (pointful) wrote :

Same issue with the Logitech K810 keyboard:

$ upower -d
...
Device: /org/freedesktop/UPower/devices/battery_hid_00o1fo20o4do96o8b_battery
  native-path: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/bluetooth/hci0/hci0:34/0005:046D:B319.0001/power_supply/hid-00:1f:20:4d:96:8b-battery
  model: Logitech K810
  power supply: no
  updated: Fri Jun 28 11:45:44 2013 (31 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 0 Wh
    energy-empty: 0 Wh
    energy-full: 0 Wh
    energy-full-design: 0 Wh
    energy-rate: 0 W
    percentage: 55%
    capacity: 100%
...

Revision history for this message
Ralph Meijer (ralphmeijer) wrote :

As mentioned in https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1086746/comments/8 and #11, this also goes for the Logitech diNovo Edge:

Device: /org/freedesktop/UPower/devices/battery_hid_00o07o61of7o60o01_battery
  native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/bluetooth/hci0/hci0:12/0005:046D:B309.000F/power_supply/hid-00:07:61:f7:60:01-battery
  model: Logitech diNovo Edge
  power supply: no
  updated: Fri Jun 28 21:11:41 2013 (23 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: discharging
    energy: 0 Wh
    energy-empty: 0 Wh
    energy-full: 0 Wh
    energy-full-design: 0 Wh
    energy-rate: 0 W
    percentage: 16%
    capacity: 100%

Additionally, the maximum percentage I have seen for this keyboard is 21%, when fully charged.

Revision history for this message
mpw (matthiaspeterw) wrote :

Same Problem here with the Logitech Cordless MediaBoard Pro(TM). That's a bluetooth one.

Ubuntu detects it as a laptop battery and shows the correct percentage until the keyboard drops the bluetooth connection for saving energy. Then it goes down to 0%, I get an empty battery warning and the computer goes down to standby immediatly.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
mpw (matthiaspeterw) wrote :

I'd like to add: It's a desktop computer, it does not have a battery at all. Maybe that's part of the problem?

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

If the computer's going into standby just because your keyboard is turned off, that almost certainly isn't a problem with indicator-power. Probably gnome-power-manager.

Revision history for this message
mpw (matthiaspeterw) wrote :

I disabled to do anything when the battery is empty. That's kind of a workaround, but it does not fix, that Ubuntu tells me, that's a laptop battery.

Revision history for this message
Olivier Bilodeau (plaxx) wrote :

@mpt I know there are several things going on here but I opened the bug specifically for the icon mix-up.

Maybe the icon wouldn't be mixed up if the kernel (or gnome-power-manager) propagated the proper information about the device IOW the fact that its a "device" battery and not a "system" battery.

If that's the case (someone familiar with the code will have to tell I guess) then feel free to reassign the affected component.

Revision history for this message
Charles Kerr (charlesk) wrote :

indicator-power doesn't ever put the box into standby mode; it's just a display of the information being provided by upower. So the behavior matthias is seeing in comment #3 is, I think, a separate (non-indicator-power) issue from the icon mixup and should be handled in its own ticket.

So, for Oliver's issue, "[t]he battery indicator at the top of the screen displays the status of my bluetooth keyboard's battery instead of my currently charging notebook's battery."

I think this is correct to the power indicator spec <https://wiki.ubuntu.com/Power#Battery_menu>: "If anything is discharging, the menu title should represent the device (not battery, but device) that is estimated to lose power first. For example, if your notebook battery is estimated to discharge in 1 hour 47 minutes, and your wireless mouse battery is estimated to discharge in 27 minutes, the menu title should represent the mouse."

Revision history for this message
Charles Kerr (charlesk) wrote :

Oliver, just to make sure we're talking about the same thing, could you post a screenshot of what you're seeing, and describe what you think it's showing incorrectly?

Revision history for this message
BOPOHA (anatolii.vorona) wrote :

bug fixed only for ubuntu 13.10 in upower (0.9.21-3ubuntu1)
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488

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.