Upower doesn't handle bluetooth mice properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Upower |
Fix Released
|
Medium
|
|||
upower (Debian) |
Fix Released
|
Unknown
|
|||
upower (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have a bluetooth Logitech M557, and it is being mis-detected by Upower as a battery instead of a mouse:
Device: /org/freedeskto
native-path: hid-00:
model: Bluetooth Mouse M557
power supply: no
updated: Mon 27 Apr 2015 10:05:22 AM EDT (13 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 0 Wh
energy-empty: 0 Wh
energy-full: 0 Wh
energy-
energy-rate: 0 W
percentage: 100%
capacity: 100%
icon-name: 'battery-
History (charge):
1430143522 100.000 discharging
The patch available in the upstream bug improves the situation by parsing it as a hid device, but then mistakes it for a keyboard:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: upower 0.99.2-2
ProcVersionSign
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Apr 27 10:04:20 2015
InstallationDate: Installed on 2013-11-26 (516 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: upower
UpgradeStatus: Upgraded to vivid on 2015-03-07 (50 days ago)
Changed in upower: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
tags: | added: patch |
Changed in upower: | |
status: | Confirmed → Fix Released |
Changed in upower (Debian): | |
status: | Unknown → New |
Changed in upower (Debian): | |
status: | New → Fix Released |
Attached is the output of:
export LC_ALL=C power_supply/ * > /tmp/out.txt 2>&1 bluetooth/ * >> /tmp/out.txt 2>&1 power_supply/ * /sys/class/ bluetooth/ * >> /tmp/out.txt 2>&1
ls -lR /sys/class/
echo >> /tmp/out.txt
ls -lR /sys/class/
echo >> /tmp/out.txt
udevadm info --export-db >> /tmp/out.txt 2>&1
echo >> /tmp/out.txt
grep -r . /sys/class/
(stolen from bug 1153488)