Bug 16472 - upower doesn't see Logitech mouse after upgrade to MGA5
Summary: upower doesn't see Logitech mouse after upgrade to MGA5
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-25 17:43 CEST by Jean-Christophe Cardot
Modified: 2017-03-29 07:24 CEST (History)
1 user (show)

See Also:
Source RPM: upower-0.99.2-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Jean-Christophe Cardot 2015-07-25 17:43:29 CEST
Description of problem:

Since the upgrade to mga5, I cannot see anymore the battery level of my Logitech mouse, using the Logitech Unifying Receiver. I had this battery level in the KDE notification zone.

I tracked down the problem to upower, who cannot see my mouse anymore.

In fact, I found a similar bug in Fedora bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1205916

Following the information in this bug, I've been able to get my mouse battery showing again.

I copy the remaining of the Fedora bug here, as it solved my problem:
=====================
/usr/lib/udev/rules.d/95-upower-csr.rules has the rules for Logitech Unifying Receiver device:
--
> ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
> ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", DRIVER=="logitech-djdevice", ENV{UPOWER_BATTERY_TYPE}="unifying"
--

Seems that DRIVER name in udev has changed (4.0 kernel?), so that it has no logitech-djdevice anymore:
--
# for f in /sys/bus/hid/devices/*; do udevadm info $f | grep DRIVER=logitech ; done
E: DRIVER=logitech-hidpp-device
E: DRIVER=logitech-djreceiver
--

By changing DRIVER to logitech-hidpp-device (or copying it to /etc/udev/rules.d and changing there) I was able to match my receiver:
--
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", DRIVER=="logitech-hidpp-device", ENV{UPOWER_BATTERY_TYPE}="unifying"
--
=======================

Then I can get the info for my mouse, and the KDE plasmoid works again:


[fred@localhost ~]$ upower -i /org/freedesktop/UPower/devices/mouse_0003o046Do4009x0006
  native-path:          /sys/devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:4009.0006
  vendor:               Logitech, Inc.
  model:                M315/M235
  serial:               840E6474
  power supply:         no
  updated:              sam. 25 juil. 2015 17:40:44 CEST (104 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          70%
    icon-name:          'battery-full-symbolic'


Reproducible: 

Steps to Reproduce:
Jean-Christophe Cardot 2015-07-25 17:45:08 CEST

Summary: upower doesn't see Logitech mouse => upower doesn't see Logitech mouse after upgrade to MGA5

Comment 1 Marja Van Waes 2016-11-02 10:07:20 CET
Assigning to the kernel and driver maintainers.

@ Jean-Christophe

Is this bug still valid in fully updated Mageia 5 and/or cauldron?

CC: (none) => marja11
Assignee: bugsquad => kernel

Comment 2 Marja Van Waes 2017-03-29 07:24:58 CEST
(In reply to Marja van Waes from comment #1)
> Assigning to the kernel and driver maintainers.
> 
> @ Jean-Christophe
> 
> Is this bug still valid in fully updated Mageia 5 and/or cauldron?

No reply, so closing as OLD

Please reopen if it's still valid.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.