Bug 95260 - Logitech MX Master (Unifying adapter) no power info
Summary: Logitech MX Master (Unifying adapter) no power info
Status: RESOLVED MOVED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-04 12:47 UTC by Marc Pignat
Modified: 2018-06-04 13:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Marc Pignat 2016-05-04 12:47:30 UTC
The battery information is missing for the Logitech MX master mouse.

Solaar is able to display it.

I can provide more info if needed

upower -d
Device: /org/freedesktop/UPower/devices/keyboard_0003o046Do200Ax002C
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.2/0003:046D:C52B.002B/0003:046D:200A.002C
  vendor:               Logitech, Inc.
  model:                K350
  serial:               A759EE42
  power supply:         no
  updated:              Mit 04 Mai 2016 14:44:39 CEST (53 seconds ago)
  has history:          yes
  has statistics:       no
  keyboard
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          90%
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         no
  updated:              Die 03 Mai 2016 10:37:31 CEST (101281 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       none
    icon-name:          ''

Daemon:
  daemon-version:  0.99.4
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: PowerOff
Comment 1 Juan Simón 2017-01-24 19:46:17 UTC
Same problem.
Arch Linux 64 bits
UPower client version 0.99.5
UPower daemon version 0.99.5
Gnome Shell 3.22.2 on X

$ upower -d
Device: /org/freedesktop/UPower/devices/mouse_0003o046Do4041x0004
  native-path:          /sys/devices/pci0000:00/0000:00:1a.1/usb6/6-1/6-1:1.2/0003:046D:C52B.0003/0003:046D:4041.0004
  vendor:               Logitech, Inc.
  model:                MX Master
  serial:               4B7F4712
  power supply:         no
  updated:              mar 24 ene 2017 20:42:40 CET (119 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               unknown
    warning-level:       none
    percentage:          0%
    icon-name:          'battery-missing-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         no
  updated:              mar 24 ene 2017 10:07:32 CET (38227 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       none
    icon-name:          ''

Daemon:
  daemon-version:  0.99.5
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: PowerOff
Comment 2 Juan Simón 2017-01-24 19:50:53 UTC
Kernel v4.9.5-1-ck-nehalem
Comment 3 Juan Simón 2017-03-31 09:24:00 UTC
Same problem with "Logitech Performance MX" and "Logitech MX Master".

With kernel v4.10.7 on Arch Linux.

$ lsusb
...
Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
...

If I unplug and reconnect the Unifying Receiver then it detects it:

$ upower -d
Device: /org/freedesktop/UPower/devices/mouse_0003o046Do101Ax000A
  native-path:          /sys/devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.2/0003:046D:C52B.0009/0003:046D:101A.000A
  vendor:               Logitech, Inc.
  model:                Performance MX
  serial:               8A8C5B04
  power supply:         no
  updated:              vie 31 mar 2017 11:19:51 CEST (110 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          90%
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         no
  updated:              vie 31 mar 2017 10:40:51 CEST (2450 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       none
    icon-name:          ''

Daemon:
  daemon-version:  0.99.5
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  no
  critical-action: PowerOff

But when I reboot "upower" doesn't detect it.
Comment 4 gogo 2017-04-27 12:21:20 UTC
I think the problem is in missing udev rule.
Try to add in file /lib/udev/rules.d/95-upower-csr.rules
below line:  "# These devices bind to the hid-logitech-hidpp module since Linux 3.19"


ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", ENV{UPOWER_BATTERY_TYPE}="lg-wireless"

and then restart computer.

If this does not work then add above line:   "# These devices bind to the hid-logitech-hidpp module since Linux 3.19"

ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"

and restart computer.
Comment 5 Marc Pignat 2017-04-27 14:28:10 UTC
not working on ubuntu 16.04 LTS with HWE kernel...
Comment 6 Bastien Nocera 2017-09-08 14:15:44 UTC
Please test again using kernel >= 4.7 and UPower >= 0.99.5.

The kernel now processes the battery information itself, and presents it to user-space. UPower 0.99.5 has code to not try to prod the devices itself.

It should be much more accurate.
Comment 7 GitLab Migration User 2018-06-04 13:24:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/upower/upower/issues/39.


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.