Launchpad has imported 6 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=60827.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2013-02-14T08:55:54+00:00 Martin Pitt wrote: http://cgit.freedesktop.org/upower/commit/?id=95184593504bca5240ecd29 introduced support for Logitech unifying devices. However, with 0.9.19 their charge is shown as 0%: Device: /org/freedesktop/UPower/devices/mouse_input5 native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input5 vendor: Logitech power supply: no updated: Thu Feb 14 03:54:12 2013 (34 seconds ago) has history: yes has statistics: no mouse present: yes rechargeable: yes state: discharging percentage: 0% Device: /org/freedesktop/UPower/devices/keyboard_input6 native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input6 vendor: Logitech power supply: no updated: Thu Feb 14 03:54:12 2013 (34 seconds ago) has history: yes has statistics: no keyboard present: no rechargeable: yes state: unknown percentage: 0% This leads to confusing output in both gnome-power-statistics (https://launchpadlibrarian.net/129122895/power-settings-window.png) as well as indicators (https://launchpadlibrarian.net/129122931/indicators.png). I think as a defensive action we should not add a "percentage" property if we are unable to read the actual charge, i. e. if it is 0. Ideally we'd fix reading the charge, of course. Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/20 ------------------------------------------------------------------------ On 2013-02-14T09:02:34+00:00 Julien Danjou wrote: That doesn't sound complicated to fix, though I'm not sure what's the best strategy in term of UPower handling of that case. Richard, do you have any hint, or you're comfortable enough to fix it? I can test a patch if you don't have the hardware. Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/21 ------------------------------------------------------------------------ On 2013-02-14T09:16:13+00:00 Martin Pitt wrote: I'm now at a machine which has these devices attached. I can reproduce the bug with 0.9.19, but interestingly with git head I don't see the devices at all any more. There might be some regression in http://cgit.freedesktop.org/upower/commit/?id=b1f12feb1fd45, did you or Julien happen to try current master with such a device? The udev rule seems to work somewhat; it attaches the property to the USB HID device (not the input device); I assume that's intended? P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C52B.0005 E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C5 2B.0005 E: DRIVER=logitech-djdevice E: HID_ID=0003:0000046D:0000C52B E: HID_NAME=Logitech Unifying Device. Wireless PID:1024 E: HID_PHYS=usb-0000:00:1a.0-1.5.1:1 E: MODALIAS=hid:b0003g0000v0000046Dp0000C52B E: SUBSYSTEM=hid E: UDEV_LOG=3 E: UPOWER_BATTERY_TYPE=unifying E: USEC_INITIALIZED=47249781752 P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C52B.0006 E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C5 2B.0006 E: DRIVER=logitech-djdevice E: HID_ID=0003:0000046D:0000C52B E: HID_NAME=Logitech Unifying Device. Wireless PID:2011 E: HID_PHYS=usb-0000:00:1a.0-1.5.1:2 E: MODALIAS=hid:b0003g0000v0000046Dp0000C52B E: SUBSYSTEM=hid E: UDEV_LOG=3 E: UPOWER_BATTERY_TYPE=unifying E: USEC_INITIALIZED=47249782421 With that, the debugging output is TI:04:15:59 registering subsystem : hid TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.3/0003:046D:0A29.0001 TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.0/0003:046D:C52B.0002 TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.1/0003:046D:C52B.0003 TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004 TI:04:15:59 Using Unifying receiver hidraw device file: /dev/hidraw1 TI:04:15:59 Getting idx for feature GetDeviceNameType [05] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 Getting idx for feature BatteryLevelStatus [1000] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 Getting idx for feature SolarDashboard [4301] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 failed to coldplug unifying device: device is unreachable TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C52B.0005 TI:04:15:59 Using Unifying receiver hidraw device file: /dev/hidraw1 TI:04:15:59 Getting idx for feature GetDeviceNameType [05] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 Getting idx for feature BatteryLevelStatus [1000] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 Getting idx for feature SolarDashboard [4301] TI:04:15:59 Failed to get feature idx: invalid response from device: 7 TI:04:15:59 failed to coldplug unifying device: device is unreachable TI:04:15:59 failed to coldplug /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/0003:046D:C52B.0006 Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/22 ------------------------------------------------------------------------ On 2013-02-14T09:17:17+00:00 Martin Pitt wrote: Julien, FTR, I'm "pitti" on Freenode (hanging out in e. g. #udev) if you want to discuss/debug on IRC. Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/23 ------------------------------------------------------------------------ On 2013-02-14T09:21:54+00:00 Martin Pitt wrote: On 0.9.19, the debug output is TI:04:19:37 invalid bitmask entry for /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/ 1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input5 TI:04:19:37 Using Unifying receiver hidraw device file: /dev/hidraw1 TI:04:19:37 object path = /org/freedesktop/UPower/devices/mouse_input5 TI:04:19:37 Unifying device 1 is offline TI:04:19:37 added native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input5 TI:04:19:37 using id: Logitech [...] TI:04:19:37 invalid bitmask entry for /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input6 TI:04:19:37 Using Unifying receiver hidraw device file: /dev/hidraw1 TI:04:19:37 object path = /org/freedesktop/UPower/devices/keyboard_input6 TI:04:19:37 Unifying device 2 is offline TI:04:19:37 added native-path: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1:1.2/0003:046D:C52B.0004/input/input6 TI:04:19:37 using id: Logitech The "invalid bitmask" might be related to http://cgit.freedesktop.org/upower/commit/?id=35b0d25 ? Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/24 ------------------------------------------------------------------------ On 2013-02-14T09:24:58+00:00 Martin Pitt wrote: With git reset to commit 35b0d25 I basically get the same output as with 0.9.19, so the "invalid bitmask" still remains with 35b0d25. Reply at: https://bugs.launchpad.net/ubuntu/+source/indicator- power/+bug/1103064/comments/25 ** Changed in: upower Status: Unknown => Confirmed ** Changed in: upower Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1103064 Title: power indicator shows Logitech wireless keyboard and mouse batteries with 0% To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-power/+bug/1103064/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs