I have a bluetooth Logitech M557, and it is being mis-detected by Upower as a battery instead of a mouse: Device: /org/freedesktop/UPower/devices/battery_hid_00o1fo20of5oabob5_battery native-path: hid-00:1f:20:f5:ab:b5-battery 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-full-design: 0 Wh energy-rate: 0 W percentage: 100% capacity: 100% icon-name: 'battery-full-symbolic' History (charge): 1430143522 100.000 discharging Something changed between kernels 3.13 and 3.16 that changed the layout in /sys/class/bluetooth. See downstream bug report for some info dumps: https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1449051
Created attachment 115537 [details] [review] Proposed patch
Thank you! Pushed with trivial fix for this warning: up-device-supply.c: In function 'up_device_supply_coldplug': up-device-supply.c:989:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dir = g_dir_open (subdir, 0, &error)) { ^
*** Bug 86510 has been marked as a duplicate of this bug. ***
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.