Bug 205449 - Logitech mouse G900 works only after ~6 seconds after plugging it in
Summary: Logitech mouse G900 works only after ~6 seconds after plugging it in
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-06 07:40 UTC by tesfabpel
Modified: 2023-06-20 16:52 UTC (History)
0 users

See Also:
Kernel Version: 6.3.8-arch1
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Log from the kernel (2.05 KB, text/plain)
2019-11-06 07:40 UTC, tesfabpel
Details

Description tesfabpel 2019-11-06 07:40:59 UTC
Created attachment 285805 [details]
Log from the kernel

I'm having this issue since some kernel releases but I never took the time to report it since it's not so severe...
Anyway, if I plug my mouse (a Logitech G900) the device gets detected immediately but starts to work only after ~6 seconds as you can see from the log.

I have this issue on a ArchLinux box (running kernel 5.3.8-arch1) and also on a Fedora 31 box.
Comment 1 Greg Kroah-Hartman 2019-11-06 10:58:43 UTC
On Wed, Nov 06, 2019 at 07:40:59AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=205449
> 
>             Bug ID: 205449
>            Summary: Logitech mouse G900 works only after ~6 seconds after
>                     plugging it in
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 5.3.8-arch1

All USB bugs should be sent to the linux-usb@vger.kernel.org mailing
list, and not entered into bugzilla.  Please bring this issue up there,
if it is still a problem in the latest kernel release.
Comment 2 tesfabpel 2023-06-20 16:52:58 UTC
This bug still affects me.  
I stumbled upon bug 217412 (https://bugzilla.kernel.org/show_bug.cgi?id=217412) which is similar to this one, so I thought to share my new findings... 
I've also changed the component to "Input Devices" as the other bug, which may be more fitting, I don't know...   

I am now running kernel 6.3.8-arch1-1 (ArchLinux x86_64) so the patch mentioned at the end of the !217412 should be applied.  
For those who don't know, this mouse is a hybrid wireless / wired one and I keep it always plugged in but with the switch underneath it on OFF.  
Only with the switch ON the mouse works (even wired), otherwise the mouse charges up its battery.  
  
The mouse also has a receiver for fully wireless mode but I normally don't use it.  
Anyway here's what I've found:  
* In fully wireless mode the mouse starts working instantaneously.  
* With the cable attached and the receiver connected, the mouse visibly starts working for a second, then it stops working while (I believe) the driver tries to use the device as wired then the same behavior as "fully wired" happens.  
* In fully wired mode (without the receiver), when the switch is turned ON, the behavior described below happens.  
  
I've tried running `udevadm monitor` and then switching the mouse on and this was the output.  
Notice that there is a jump between 204 seconds of uptime to 219 seconds after which the mouse starts effectively working.  
  
```
$ udevadm monitor

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[204.392972] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
KERNEL[204.459877] change /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
KERNEL[204.462886] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0 (usb)
KERNEL[204.469946] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009 (hid)
KERNEL[204.469977] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33 (input)
KERNEL[204.470004] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33/event2 (input)
KERNEL[204.470096] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33/mouse0 (input)
KERNEL[204.470160] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/hidraw/hidraw2 (hidraw)
KERNEL[204.470189] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009 (hid)
KERNEL[204.470210] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0 (usb)
KERNEL[204.470228] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1 (usb)
KERNEL[204.477003] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A (hid)
KERNEL[204.477037] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34 (input)
KERNEL[204.533609] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34/event28 (input)
KERNEL[204.533634] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/usbmisc/hiddev2 (usbmisc)
KERNEL[204.533651] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/hidraw/hidraw3 (hidraw)
// <-----
KERNEL[219.960876] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34/event28 (input)
KERNEL[219.987314] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34 (input)
KERNEL[219.987361] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/usbmisc/hiddev2 (usbmisc)
KERNEL[219.987376] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/hidraw/hidraw3 (hidraw)
KERNEL[219.987414] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1 (usb)
KERNEL[219.987446] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
UDEV  [220.004789] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
UDEV  [220.006104] change /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
UDEV  [220.006832] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0 (usb)
UDEV  [220.007558] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009 (hid)
UDEV  [220.008239] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1 (usb)
UDEV  [220.008651] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33 (input)
UDEV  [220.008953] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A (hid)
UDEV  [220.010192] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34 (input)
UDEV  [220.010634] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/usbmisc/hiddev2 (usbmisc)
UDEV  [220.010975] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33/mouse0 (input)
UDEV  [220.011169] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/usbmisc/hiddev2 (usbmisc)
UDEV  [220.011451] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34/event28 (input)
UDEV  [220.012159] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34/event28 (input)
UDEV  [220.012513] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/hidraw/hidraw2 (hidraw)
UDEV  [220.012815] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/input/input34 (input)
UDEV  [220.013516] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/hidraw/hidraw3 (hidraw)
UDEV  [220.014110] remove /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.000A/hidraw/hidraw3 (hidraw)
UDEV  [220.014753] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1 (usb)
UDEV  [220.132774] add /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009/input/input33/event2 (input)
UDEV  [220.133439] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0009 (hid)
UDEV  [220.134102] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0 (usb)
UDEV  [220.136452] bind /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3 (usb)
```

The kernel instead says this:

```
kernel: usb 7-1.3: new full-speed USB device number 6 using xhci_hcd
kernel: usb 7-1.3: New USB device found, idVendor=046d, idProduct=c081, bcdDevice= 1.03
kernel: usb 7-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 7-1.3: Product: Gaming Mouse G900
kernel: usb 7-1.3: Manufacturer: Logitech
kernel: usb 7-1.3: SerialNumber: 0E6C365xxxxx
kernel: input: Logitech Gaming Mouse G900 as /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0007/input/input27
kernel: hid-generic 0003:046D:C081.0007: input,hidraw6: USB HID v1.11 Mouse [Logitech Gaming Mouse G900] on usb-0000:0e:00.3-1.3/input0
kernel: input: Logitech Gaming Mouse G900 Keyboard as /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.0008/input/input28
mtp-probe[2387]: checking bus 7, device 6: "/sys/devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3"
mtp-probe[2387]: bus: 7, device: 6 was not an MTP device
kernel: hid-generic 0003:046D:C081.0008: input,hiddev99,hidraw7: USB HID v1.11 Keyboard [Logitech Gaming Mouse G900] on usb-0000:0e:00.3-1.3/input1
kernel: input: Logitech Gaming Mouse G900 as /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.0/0003:046D:C081.0007/input/input31
kernel: logitech-hidpp-device 0003:046D:C081.0007: input,hidraw6: USB HID v1.11 Mouse [Logitech Gaming Mouse G900] on usb-0000:0e:00.3-1.3/input0
kernel: input: Logitech Gaming Mouse G900 as /devices/pci0000:00/0000:00:08.1/0000:0e:00.3/usb7/7-1/7-1.3/7-1.3:1.1/0003:046D:C081.0008/input/input32
kernel: logitech-hidpp-device 0003:046D:C081.0008: input,hiddev99,hidraw7: USB HID v1.11 Keyboard [Logitech Gaming Mouse G900] on usb-0000:0e:00.3-1.3/input1
// ---
kernel: logitech-hidpp-device 0003:046D:C081.0008: Device not connected
```

Please note that the kernel log was taken some in a different try than the udev monitor one.

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