Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logitech G602 stopped working after Kernel 5.10.11 update #1124

Open
Rockwell1799 opened this issue Jan 29, 2021 · 24 comments
Open

Logitech G602 stopped working after Kernel 5.10.11 update #1124

Rockwell1799 opened this issue Jan 29, 2021 · 24 comments
Assignees
Labels

Comments

@Rockwell1799
Copy link

Rockwell1799 commented Jan 29, 2021

Hello guys
I have a Logitech G602 gaming mouse with 8 extras buttons which are bound to different keyboard shortcuts! Everything was working fine since yesterday after a kernel update to 5.10.11. All the extra buttons stopped working (no event in XEV)and after some digging, I found out there was a commit regarding this mouse in the kernel update :
commit 1e6fc9768ed2c3917e1fd7af26cb194dfe14f7da

HID: logitech-dj: add the G602 receiver

I downgraded the LTS kernel and I have the same issue.
Can someone help me please!

Information

  • ratbagd version (ratbagd --version):
  • Distribution:
    ArchLinux
  • Kernel version (ex. uname -srmo): KERNEL VERSION HERE
    5.10.11
    Device info (if applicable):
$ ratbagctl <device> info
OUTPUT HERE
```sudo ratbagd --verbose
Initializing libratbag
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c45:5004
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c45:5004
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c537
ratbag debug: New device: Logitech G602
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: device assigned driver hidpp20
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0xffffc537
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0x402c
ratbag debug: Logitech G602 is device '/dev/hidraw4'.
ratbag debug: Parsing HID report descriptor
ratbag debug: Parsing HID report descriptor
ratbag debug: - HID report ID 02
ratbag debug: - HID report ID 10
ratbag debug: - HID report ID 11
ratbag debug: - HID report ID 20
ratbag debug: - HID report ID 21
ratbag debug: hidpp: device supports short reports
ratbag debug: hidpp: device supports long reports
ratbag raw: hidpp write:  10 01 00 18 00 00 00
ratbag raw: hidpp read:   11 01 00 18 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 00 08 00 01 00
ratbag raw: hidpp read:   11 01 00 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0001 is at 0x01
ratbag raw: hidpp write:  10 01 01 08 00 00 00
ratbag raw: hidpp read:   11 01 01 08 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 00 00 00
ratbag raw: hidpp read:   11 01 01 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 01 00 00
ratbag raw: hidpp read:   11 01 01 18 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 02 00 00
ratbag raw: hidpp read:   11 01 01 18 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 03 00 00
ratbag raw: hidpp read:   11 01 01 18 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 04 00 00
ratbag raw: hidpp read:   11 01 01 18 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 05 00 00
ratbag raw: hidpp read:   11 01 01 18 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 06 00 00
ratbag raw: hidpp read:   11 01 01 18 1d 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 07 00 00
ratbag raw: hidpp read:   11 01 01 18 1d f3 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 08 00 00
ratbag raw: hidpp read:   11 01 01 18 1e 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 09 00 00
ratbag raw: hidpp read:   11 01 01 18 1e 80 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0a 00 00
ratbag raw: hidpp read:   11 01 01 18 1f 03 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0b 00 00
ratbag raw: hidpp read:   11 01 01 18 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0c 00 00
ratbag raw: hidpp read:   11 01 01 18 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0d 00 00
ratbag raw: hidpp read:   11 01 01 18 22 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0e 00 00
ratbag raw: hidpp read:   11 01 01 18 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0f 00 00
ratbag raw: hidpp read:   11 01 01 18 80 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 10 00 00
ratbag raw: hidpp read:   11 01 01 18 80 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 11 00 00
ratbag raw: hidpp read:   11 01 01 18 18 10 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 12 00 00
ratbag raw: hidpp read:   11 01 01 18 18 30 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 13 00 00
ratbag raw: hidpp read:   11 01 01 18 18 50 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 14 00 00
ratbag raw: hidpp read:   11 01 01 18 18 60 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 15 00 00
ratbag raw: hidpp read:   11 01 01 18 18 90 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 16 00 00
ratbag raw: hidpp read:   11 01 01 18 18 a0 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: 'Logitech G602' is using protocol v2.0
ratbag debug: 'Logitech G602' is quirked (HIDPP20_QUIRK_G602)
ratbag raw: 'Logitech G602' has 23 features
ratbag raw: Init feature HIDPP_PAGE_ROOT (0x0000) 
ratbag raw: hidpp write:  10 01 00 08 00 00 00
ratbag raw: hidpp read:   11 01 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0000 is at 0x00
ratbag raw: Init feature HIDPP_PAGE_FEATURE_SET (0x0001) 
ratbag raw: hidpp write:  10 01 00 08 00 01 00
ratbag raw: hidpp read:   11 01 00 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0001 is at 0x01
ratbag raw: Init feature HIDPP_PAGE_DEVICE_INFO (0x0003) 
ratbag raw: hidpp write:  10 01 00 08 00 03 00
ratbag raw: hidpp read:   11 01 00 08 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0003 is at 0x02
ratbag raw: unknown feature 0x0003
ratbag raw: Init feature HIDPP_PAGE_DEVICE_NAME (0x0005) 
ratbag raw: hidpp write:  10 01 00 08 00 05 00
ratbag raw: hidpp read:   11 01 00 08 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0005 is at 0x03
ratbag raw: unknown feature 0x0005
ratbag raw: Init feature 0xc0 (0x00c0) 
ratbag raw: hidpp write:  10 01 00 08 00 c0 00
ratbag raw: hidpp read:   11 01 00 08 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x00c0 is at 0x04
ratbag raw: unknown feature 0x00c0
ratbag raw: Init feature HIDPP_PAGE_BATTERY_LEVEL_STATUS (0x1000) 
ratbag raw: hidpp write:  10 01 00 08 10 00 00
ratbag raw: hidpp read:   11 01 00 08 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1000 is at 0x05
ratbag raw: hidpp write:  10 01 05 08 00 00 00
ratbag raw: hidpp read:   11 01 05 08 32 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: device battery level is 50% (next 20%), status 0 
ratbag raw: Init feature HIDPP_PAGE_WIRELESS_DEVICE_STATUS (0x1d4b) 
ratbag raw: hidpp write:  10 01 00 08 1d 4b 00
ratbag raw: hidpp read:   11 01 00 08 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1d4b is at 0x06
ratbag raw: unknown feature 0x1d4b
ratbag raw: Init feature 0x1df3 (0x1df3) 
ratbag raw: hidpp write:  10 01 00 08 1d f3 00
ratbag raw: hidpp read:   11 01 00 08 07 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1df3 is at 0x07
ratbag raw: Init feature 0x1e00 (0x1e00) 
ratbag raw: hidpp write:  10 01 00 08 1e 00 00
ratbag raw: hidpp read:   11 01 00 08 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1e00 is at 0x08
ratbag raw: Init feature 0x1e80 (0x1e80) 
ratbag raw: hidpp write:  10 01 00 08 1e 80 00
ratbag raw: hidpp read:   11 01 00 08 09 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1e80 is at 0x09
ratbag raw: Init feature 0x1f03 (0x1f03) 
ratbag raw: hidpp write:  10 01 00 08 1f 03 00
ratbag raw: hidpp read:   11 01 00 08 0a 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1f03 is at 0x0a
ratbag raw: Init feature 0x2100 (0x2100) 
ratbag raw: hidpp write:  10 01 00 08 21 00 00
ratbag raw: hidpp read:   11 01 00 08 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2100 is at 0x0b
ratbag raw: unknown feature 0x2100
ratbag raw: Init feature HIDPP_PAGE_MOUSE_POINTER_BASIC (0x2200) 
ratbag raw: hidpp write:  10 01 00 08 22 00 00
ratbag raw: hidpp read:   11 01 00 08 0c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2200 is at 0x0c
ratbag raw: Init feature HIDPP_PAGE_ADJUSTABLE_DPI (0x2201) 
ratbag raw: hidpp write:  10 01 00 08 22 01 00
ratbag raw: hidpp read:   11 01 00 08 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2201 is at 0x0d
ratbag debug: device has adjustable dpi
ratbag raw: hidpp write:  10 01 0d 08 00 00 00
ratbag raw: hidpp read:   11 01 0d 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 18 01 00 00
ratbag raw: hidpp read:   11 01 0d 18 00 fa 00 fa 09 c4 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 28 01 00 00
ratbag raw: hidpp read:   11 01 0d 28 01 07 d0 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: sensor 0: current dpi: 2000 (default: 0) min: 250 max: 2500 steps: 250
ratbag debug: device is at 2000 dpi (variable between 250 and 2500).
ratbag raw: Init feature 0x8080 (0x8080) 
ratbag raw: hidpp write:  10 01 00 08 80 80 00
ratbag raw: hidpp read:   11 01 00 08 0e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8080 is at 0x0e
ratbag raw: unknown feature 0x8080
ratbag raw: Init feature HIDPP_PAGE_ADJUSTABLE_REPORT_RATE (0x8060) 
ratbag raw: hidpp write:  10 01 00 08 80 60 00
ratbag raw: hidpp read:   11 01 00 08 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8060 is at 0x0f
ratbag debug: device has adjustable report rate
ratbag raw: hidpp write:  10 01 0f 08 00 00 00
ratbag raw: hidpp read:   11 01 0f 08 8a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0f 18 00 00 00
ratbag raw: hidpp read:   11 01 0f 18 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: report rate is 125
ratbag debug: device has 3 report rates
ratbag raw: Init feature HIDPP_PAGE_COLOR_LED_EFFECTS (0x8070) 
ratbag raw: hidpp write:  10 01 00 08 80 70 00
ratbag raw: hidpp read:   11 01 00 08 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8070 is at 0x10
ratbag raw: Init feature 0x1810 (0x1810) 
ratbag raw: hidpp write:  10 01 00 08 18 10 00
ratbag raw: hidpp read:   11 01 00 08 11 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1810 is at 0x11
ratbag raw: Init feature 0x1830 (0x1830) 
ratbag raw: hidpp write:  10 01 00 08 18 30 00
ratbag raw: hidpp read:   11 01 00 08 12 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1830 is at 0x12
ratbag raw: Init feature 0x1850 (0x1850) 
ratbag raw: hidpp write:  10 01 00 08 18 50 00
ratbag raw: hidpp read:   11 01 00 08 13 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1850 is at 0x13
ratbag raw: Init feature 0x1860 (0x1860) 
ratbag raw: hidpp write:  10 01 00 08 18 60 00
ratbag raw: hidpp read:   11 01 00 08 14 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1860 is at 0x14
ratbag raw: Init feature 0x1890 (0x1890) 
ratbag raw: hidpp write:  10 01 00 08 18 90 00
ratbag raw: hidpp read:   11 01 00 08 15 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1890 is at 0x15
ratbag raw: Init feature 0x18a0 (0x18a0) 
ratbag raw: hidpp write:  10 01 00 08 18 a0 00
ratbag raw: hidpp read:   11 01 00 08 16 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x18a0 is at 0x16
ratbag raw: hidpp write:  10 01 0d 08 00 00 00
ratbag raw: hidpp read:   11 01 0d 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 18 01 00 00
ratbag raw: hidpp read:   11 01 0d 18 00 fa 00 fa 09 c4 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 28 01 00 00
ratbag raw: hidpp read:   11 01 0d 28 01 07 d0 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: sensor 0: current dpi: 2000 (default: 0) min: 250 max: 2500 steps: 250
ratbag debug: device is at 2000 dpi (variable between 250 and 2500).
ratbag raw: hidpp write:  10 01 0f 08 00 00 00
ratbag raw: hidpp read:   11 01 0f 08 8a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0f 18 00 00 00
ratbag raw: hidpp read:   11 01 0f 18 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: report rate is 125
ratbag debug: device has 3 report rates
ratbag debug: driver match found: Logitech HID++2.0
hidraw4: "Logitech G602", 1 profiles
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c537
DBus server ready
Exiting after idle


**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Logs**
Please start the daemon with verbosity and reproduce the issue.

First make sure it isn't running already.

$ ratbagd --verbose=raw
OUTPUT HERE


Initializing libratbag
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c45:5004
ratbag debug: New device: SONiX USB DEVICE
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c45:5004
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c537
ratbag debug: New device: Logitech G602
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: device assigned driver hidpp20
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0xffffc537
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0x402c
ratbag debug: Logitech G602 is device '/dev/hidraw4'.
ratbag debug: Parsing HID report descriptor
ratbag debug: Parsing HID report descriptor
ratbag debug: - HID report ID 02
ratbag debug: - HID report ID 10
ratbag debug: - HID report ID 11
ratbag debug: - HID report ID 20
ratbag debug: - HID report ID 21
ratbag debug: hidpp: device supports short reports
ratbag debug: hidpp: device supports long reports
ratbag raw: hidpp write:  10 01 00 18 00 00 00
ratbag raw: hidpp read:   11 01 00 18 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 00 08 00 01 00
ratbag raw: hidpp read:   11 01 00 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0001 is at 0x01
ratbag raw: hidpp write:  10 01 01 08 00 00 00
ratbag raw: hidpp read:   11 01 01 08 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 00 00 00
ratbag raw: hidpp read:   11 01 01 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 01 00 00
ratbag raw: hidpp read:   11 01 01 18 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 02 00 00
ratbag raw: hidpp read:   11 01 01 18 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 03 00 00
ratbag raw: hidpp read:   11 01 01 18 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 04 00 00
ratbag raw: hidpp read:   11 01 01 18 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 05 00 00
ratbag raw: hidpp read:   11 01 01 18 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 06 00 00
ratbag raw: hidpp read:   11 01 01 18 1d 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 07 00 00
ratbag raw: hidpp read:   11 01 01 18 1d f3 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 08 00 00
ratbag raw: hidpp read:   11 01 01 18 1e 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 09 00 00
ratbag raw: hidpp read:   11 01 01 18 1e 80 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0a 00 00
ratbag raw: hidpp read:   02 00 00 0b 00 ee ff 00 00
ratbag raw: hidpp read:   11 01 01 18 1f 03 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0b 00 00
ratbag raw: hidpp read:   02 00 00 19 00 e5 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0c 00 00
ratbag raw: hidpp read:   02 00 00 1d 00 e9 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0d 00 00
ratbag raw: hidpp read:   02 00 00 1b 00 f1 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 22 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0e 00 00
ratbag raw: hidpp read:   02 00 00 14 00 f6 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 0f 00 00
ratbag raw: hidpp read:   02 00 00 0c 00 f9 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 80 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 10 00 00
ratbag raw: hidpp read:   02 00 00 03 00 fd ff 00 00
ratbag raw: hidpp read:   11 01 01 18 80 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 11 00 00
ratbag raw: hidpp read:   02 00 00 00 00 ff ff 00 00
ratbag raw: hidpp read:   11 01 01 18 18 10 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 12 00 00
ratbag raw: hidpp read:   11 01 01 18 18 30 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 13 00 00
ratbag raw: hidpp read:   02 00 00 01 00 fe ff 00 00
ratbag raw: hidpp read:   11 01 01 18 18 50 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 14 00 00
ratbag raw: hidpp read:   02 00 00 02 00 f8 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 18 60 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 15 00 00
ratbag raw: hidpp read:   02 00 00 ff ff f7 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 18 90 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 01 18 16 00 00
ratbag raw: hidpp read:   02 00 00 fc ff f8 ff 00 00
ratbag raw: hidpp read:   11 01 01 18 18 a0 60 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: 'Logitech G602' is using protocol v2.0
ratbag debug: 'Logitech G602' is quirked (HIDPP20_QUIRK_G602)
ratbag raw: 'Logitech G602' has 23 features
ratbag raw: Init feature HIDPP_PAGE_ROOT (0x0000) 
ratbag raw: hidpp write:  10 01 00 08 00 00 00
ratbag raw: hidpp read:   02 00 00 fe ff f9 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0000 is at 0x00
ratbag raw: Init feature HIDPP_PAGE_FEATURE_SET (0x0001) 
ratbag raw: hidpp write:  10 01 00 08 00 01 00
ratbag raw: hidpp read:   02 00 00 00 00 fa ff 00 00
ratbag raw: hidpp read:   11 01 00 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0001 is at 0x01
ratbag raw: Init feature HIDPP_PAGE_DEVICE_INFO (0x0003) 
ratbag raw: hidpp write:  10 01 00 08 00 03 00
ratbag raw: hidpp read:   02 00 00 00 00 f8 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0003 is at 0x02
ratbag raw: unknown feature 0x0003
ratbag raw: Init feature HIDPP_PAGE_DEVICE_NAME (0x0005) 
ratbag raw: hidpp write:  10 01 00 08 00 05 00
ratbag raw: hidpp read:   02 00 00 01 00 f5 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x0005 is at 0x03
ratbag raw: unknown feature 0x0005
ratbag raw: Init feature 0xc0 (0x00c0) 
ratbag raw: hidpp write:  10 01 00 08 00 c0 00
ratbag raw: hidpp read:   02 00 00 00 00 f2 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x00c0 is at 0x04
ratbag raw: unknown feature 0x00c0
ratbag raw: Init feature HIDPP_PAGE_BATTERY_LEVEL_STATUS (0x1000) 
ratbag raw: hidpp write:  10 01 00 08 10 00 00
ratbag raw: hidpp read:   02 00 00 00 00 ea ff 00 00
ratbag raw: hidpp read:   11 01 00 08 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1000 is at 0x05
ratbag raw: hidpp write:  10 01 05 08 00 00 00
ratbag raw: hidpp read:   02 00 00 00 00 eb ff 00 00
ratbag raw: hidpp read:   11 01 05 08 32 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: device battery level is 50% (next 20%), status 0 
ratbag raw: Init feature HIDPP_PAGE_WIRELESS_DEVICE_STATUS (0x1d4b) 
ratbag raw: hidpp write:  10 01 00 08 1d 4b 00
ratbag raw: hidpp read:   02 00 00 00 00 f2 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1d4b is at 0x06
ratbag raw: unknown feature 0x1d4b
ratbag raw: Init feature 0x1df3 (0x1df3) 
ratbag raw: hidpp write:  10 01 00 08 1d f3 00
ratbag raw: hidpp read:   02 00 00 01 00 f8 ff 00 00
ratbag raw: hidpp read:   11 01 00 08 07 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1df3 is at 0x07
ratbag raw: Init feature 0x1e00 (0x1e00) 
ratbag raw: hidpp write:  10 01 00 08 1e 00 00
ratbag raw: hidpp read:   02 00 00 01 00 00 00 00 00
ratbag raw: hidpp read:   11 01 00 08 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1e00 is at 0x08
ratbag raw: Init feature 0x1e80 (0x1e80) 
ratbag raw: hidpp write:  10 01 00 08 1e 80 00
ratbag raw: hidpp read:   02 00 00 00 00 ff ff 00 00
ratbag raw: hidpp read:   11 01 00 08 09 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1e80 is at 0x09
ratbag raw: Init feature 0x1f03 (0x1f03) 
ratbag raw: hidpp write:  10 01 00 08 1f 03 00
ratbag raw: hidpp read:   11 01 00 08 0a 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1f03 is at 0x0a
ratbag raw: Init feature 0x2100 (0x2100) 
ratbag raw: hidpp write:  10 01 00 08 21 00 00
ratbag raw: hidpp read:   11 01 00 08 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2100 is at 0x0b
ratbag raw: unknown feature 0x2100
ratbag raw: Init feature HIDPP_PAGE_MOUSE_POINTER_BASIC (0x2200) 
ratbag raw: hidpp write:  10 01 00 08 22 00 00
ratbag raw: hidpp read:   02 00 00 02 00 00 00 00 00
ratbag raw: hidpp read:   11 01 00 08 0c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2200 is at 0x0c
ratbag raw: Init feature HIDPP_PAGE_ADJUSTABLE_DPI (0x2201) 
ratbag raw: hidpp write:  10 01 00 08 22 01 00
ratbag raw: hidpp read:   02 00 00 05 00 00 00 00 00
ratbag raw: hidpp read:   11 01 00 08 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x2201 is at 0x0d
ratbag debug: device has adjustable dpi
ratbag raw: hidpp write:  10 01 0d 08 00 00 00
ratbag raw: hidpp read:   02 00 00 06 00 00 00 00 00
ratbag raw: hidpp read:   11 01 0d 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 18 01 00 00
ratbag raw: hidpp read:   02 00 00 05 00 00 00 00 00
ratbag raw: hidpp read:   11 01 0d 18 00 fa 00 fa 09 c4 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 28 01 00 00
ratbag raw: hidpp read:   02 00 00 03 00 00 00 00 00
ratbag raw: hidpp read:   11 01 0d 28 01 07 d0 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: sensor 0: current dpi: 2000 (default: 0) min: 250 max: 2500 steps: 250
ratbag debug: device is at 2000 dpi (variable between 250 and 2500).
ratbag raw: Init feature 0x8080 (0x8080) 
ratbag raw: hidpp write:  10 01 00 08 80 80 00
ratbag raw: hidpp read:   02 00 00 02 00 01 00 00 00
ratbag raw: hidpp read:   11 01 00 08 0e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8080 is at 0x0e
ratbag raw: unknown feature 0x8080
ratbag raw: Init feature HIDPP_PAGE_ADJUSTABLE_REPORT_RATE (0x8060) 
ratbag raw: hidpp write:  10 01 00 08 80 60 00
ratbag raw: hidpp read:   11 01 00 08 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8060 is at 0x0f
ratbag debug: device has adjustable report rate
ratbag raw: hidpp write:  10 01 0f 08 00 00 00
ratbag raw: hidpp read:   11 01 0f 08 8a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0f 18 00 00 00
ratbag raw: hidpp read:   02 00 00 00 00 01 00 00 00
ratbag raw: hidpp read:   11 01 0f 18 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: report rate is 125
ratbag debug: device has 3 report rates
ratbag raw: Init feature HIDPP_PAGE_COLOR_LED_EFFECTS (0x8070) 
ratbag raw: hidpp write:  10 01 00 08 80 70 00
ratbag raw: hidpp read:   02 00 00 02 00 03 00 00 00
ratbag raw: hidpp read:   11 01 00 08 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x8070 is at 0x10
ratbag raw: Init feature 0x1810 (0x1810) 
ratbag raw: hidpp write:  10 01 00 08 18 10 00
ratbag raw: hidpp read:   02 00 00 04 00 08 00 00 00
ratbag raw: hidpp read:   11 01 00 08 11 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1810 is at 0x11
ratbag raw: Init feature 0x1830 (0x1830) 
ratbag raw: hidpp write:  10 01 00 08 18 30 00
ratbag raw: hidpp read:   02 00 00 03 00 07 00 00 00
ratbag raw: hidpp read:   11 01 00 08 12 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1830 is at 0x12
ratbag raw: Init feature 0x1850 (0x1850) 
ratbag raw: hidpp write:  10 01 00 08 18 50 00
ratbag raw: hidpp read:   02 00 00 02 00 04 00 00 00
ratbag raw: hidpp read:   11 01 00 08 13 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1850 is at 0x13
ratbag raw: Init feature 0x1860 (0x1860) 
ratbag raw: hidpp write:  10 01 00 08 18 60 00
ratbag raw: hidpp read:   02 00 00 02 00 04 00 00 00
ratbag raw: hidpp read:   11 01 00 08 14 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1860 is at 0x14
ratbag raw: Init feature 0x1890 (0x1890) 
ratbag raw: hidpp write:  10 01 00 08 18 90 00
ratbag raw: hidpp read:   02 00 00 03 00 06 00 00 00
ratbag raw: hidpp read:   11 01 00 08 15 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x1890 is at 0x15
ratbag raw: Init feature 0x18a0 (0x18a0) 
ratbag raw: hidpp write:  10 01 00 08 18 a0 00
ratbag raw: hidpp read:   02 00 00 02 00 03 00 00 00
ratbag raw: hidpp read:   11 01 00 08 16 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: feature 0x18a0 is at 0x16
ratbag raw: hidpp write:  10 01 0d 08 00 00 00
ratbag raw: hidpp read:   02 00 00 00 00 01 00 00 00
ratbag raw: hidpp read:   11 01 0d 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 18 01 00 00
ratbag raw: hidpp read:   11 01 0d 18 00 fa 00 fa 09 c4 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0d 28 01 00 00
ratbag raw: hidpp read:   11 01 0d 28 01 07 d0 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: sensor 0: current dpi: 2000 (default: 0) min: 250 max: 2500 steps: 250
ratbag debug: device is at 2000 dpi (variable between 250 and 2500).
ratbag raw: hidpp write:  10 01 0f 08 00 00 00
ratbag raw: hidpp read:   02 00 00 00 00 01 00 00 00
ratbag raw: hidpp read:   11 01 0f 08 8a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag raw: hidpp write:  10 01 0f 18 00 00 00
ratbag raw: hidpp read:   11 01 0f 18 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ratbag debug: report rate is 125
ratbag debug: device has 3 report rates
ratbag debug: driver match found: Logitech HID++2.0
hidraw4: "Logitech G602", 1 profiles
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c537
DBus server ready
`

**Additional context**
@FFY00
Copy link
Member

FFY00 commented Jan 29, 2021

Uh, I had tried here and it worked. Can you start hid-recorder (from hidtools) and libinput record at the same time and post the output?

@Rockwell1799
Copy link
Author

Thank you for the reply
for the libinput record, when I press on the mouse buttons no event is recorder, but with hid-tools it does record the evnents ( see bellow)

sudo libinput record

Available devices:
/dev/input/event0:	Power Button
/dev/input/event1:	Sleep Button
/dev/input/event2:	Power Button
/dev/input/event3:	SONiX USB DEVICE
/dev/input/event4:	SONiX USB DEVICE Keyboard
/dev/input/event5:	SONiX USB DEVICE System Control
/dev/input/event6:	SONiX USB DEVICE Consumer Control
/dev/input/event7:	SONiX USB DEVICE
/dev/input/event8:	Logitech G602
/dev/input/event9:	PC Speaker
/dev/input/event10:	Video Bus
/dev/input/event11:	HDA Intel HDMI HDMI/DP,pcm=3
/dev/input/event12:	HDA Intel HDMI HDMI/DP,pcm=7
/dev/input/event13:	HDA NVidia HDMI/DP,pcm=3
/dev/input/event14:	HDA NVidia HDMI/DP,pcm=7
/dev/input/event15:	HDA Intel HDMI HDMI/DP,pcm=8
/dev/input/event16:	HDA Intel HDMI HDMI/DP,pcm=9
/dev/input/event17:	HDA NVidia HDMI/DP,pcm=8
/dev/input/event18:	HDA NVidia HDMI/DP,pcm=9
/dev/input/event19:	HDA NVidia HDMI/DP,pcm=10
/dev/input/event20:	HDA Intel HDMI HDMI/DP,pcm=10
/dev/input/event21:	HDA NVidia HDMI/DP,pcm=11
Select the device event number: 8
Recording to 'stdout'.
version: 1
ndevices: 1
libinput:
  version: "1.16.4"
  git: "unknown"
system:
  kernel: "5.10.11-arch1-1"
  dmi: "dmi:bvnAmericanMegatrendsInc.:bvrF9:bd07/31/2015:br4.6:svnGigabyteTechnologyCo.,Ltd.:pnZ97-HD3:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ97-HD3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:"
devices:
- node: /dev/input/event8
  evdev:
    # Name: Logitech G602
    # ID: bus 0x3 vendor 0x46d product 0x402c version 0x111
    # Supported Events:
    # Event type 0 (EV_SYN)
    # Event type 1 (EV_KEY)
    #   Event code 272 (BTN_LEFT)
    #   Event code 273 (BTN_RIGHT)
    #   Event code 274 (BTN_MIDDLE)
    #   Event code 275 (BTN_SIDE)
    #   Event code 276 (BTN_EXTRA)
    #   Event code 277 (BTN_FORWARD)
    #   Event code 278 (BTN_BACK)
    #   Event code 279 (BTN_TASK)
    #   Event code 280 ((null))
    #   Event code 281 ((null))
    #   Event code 282 ((null))
    #   Event code 283 ((null))
    #   Event code 284 ((null))
    #   Event code 285 ((null))
    #   Event code 286 ((null))
    #   Event code 287 ((null))
    # Event type 2 (EV_REL)
    #   Event code 0 (REL_X)
    #   Event code 1 (REL_Y)
    #   Event code 6 (REL_HWHEEL)
    #   Event code 8 (REL_WHEEL)
    #   Event code 11 (REL_WHEEL_HI_RES)
    #   Event code 12 (REL_HWHEEL_HI_RES)
    # Event type 4 (EV_MSC)
    #   Event code 4 (MSC_SCAN)
    # Properties:
    name: "Logitech G602"
    id: [3, 1133, 16428, 273]
    codes:
      0: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] # EV_SYN
      1: [272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287] # EV_KEY
      2: [0, 1, 6, 8, 11, 12] # EV_REL
      4: [4] # EV_MSC
    properties: []
  hid: [5, 1, 9, 2, 161, 1, 133, 2, 9, 1, 161, 0, 5, 9, 25, 1, 41, 16, 21, 0, 37, 1, 149, 16, 117, 1, 129, 2, 5, 1, 22, 1, 128, 38, 255, 127, 117, 16, 149, 2, 9, 48, 9, 49, 129, 6, 21, 129, 37, 127, 117, 8, 149, 1, 9, 56, 129, 6, 5, 12, 10, 56, 2, 149, 1, 129, 6, 192, 192, 6, 0, 255, 9, 1, 161, 1, 133, 16, 117, 8, 149, 6, 21, 0, 38, 255, 0, 9, 1, 129, 0, 9, 1, 145, 0, 192, 6, 0, 255, 9, 2, 161, 1, 133, 17, 117, 8, 149, 19, 21, 0, 38, 255, 0, 9, 2, 129, 0, 9, 2, 145, 0, 192, 6, 0, 255, 9, 4, 161, 1, 133, 32, 117, 8, 149, 14, 21, 0, 38, 255, 0, 9, 65, 129, 0, 9, 65, 145, 0, 133, 33, 149, 31, 21, 0, 38, 255, 0, 9, 66, 129, 0, 9, 66, 145, 0, 192 ]
  udev:
    properties:
    - ID_INPUT=1
    - ID_INPUT_MOUSE=1
    - LIBINPUT_DEVICE_GROUP=3/46d/402c:usb-0000:00:14.0-6
  quirks:
  events:
  - evdev:
    - [  0,      0,   2,   0,       4] # EV_REL / REL_X                     4
  - evdev:
    - [  0,      0,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0,      0,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +0ms
  - evdev:
    - [  0,  54995,   2,   0,       2] # EV_REL / REL_X                     2
    - [  0,  54995,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +54ms
  - evdev:
    - [  0,  62000,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0,  62000,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0,  62000,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0,  70000,   2,   0,       3] # EV_REL / REL_X                     3
    - [  0,  70000,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0,  70000,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0,  77988,   2,   0,       2] # EV_REL / REL_X                     2
    - [  0,  77988,   2,   1,       4] # EV_REL / REL_Y                     4
    - [  0,  77988,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0,  86029,   2,   0,       3] # EV_REL / REL_X                     3
    - [  0,  86029,   2,   1,       4] # EV_REL / REL_Y                     4
    - [  0,  86029,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0,  93977,   2,   0,       3] # EV_REL / REL_X                     3
    - [  0,  93977,   2,   1,       4] # EV_REL / REL_Y                     4
    - [  0,  93977,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 101991,   2,   0,       3] # EV_REL / REL_X                     3
    - [  0, 101991,   2,   1,       5] # EV_REL / REL_Y                     5
    - [  0, 101991,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 108991,   2,   0,       3] # EV_REL / REL_X                     3
    - [  0, 108991,   2,   1,       4] # EV_REL / REL_Y                     4
    - [  0, 108991,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 116991,   2,   0,       2] # EV_REL / REL_X                     2
    - [  0, 116991,   2,   1,       4] # EV_REL / REL_Y                     4
    - [  0, 116991,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 124976,   2,   0,       2] # EV_REL / REL_X                     2
    - [  0, 124976,   2,   1,       3] # EV_REL / REL_Y                     3
    - [  0, 124976,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 133029,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 133029,   2,   1,       3] # EV_REL / REL_Y                     3
    - [  0, 133029,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0, 141029,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 141029,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 141029,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 149026,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 149026,   2,   1,       3] # EV_REL / REL_Y                     3
    - [  0, 149026,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 155977,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 155977,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 155977,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +6ms
  - evdev:
    - [  0, 164027,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 164027,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0, 172027,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 172027,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 172027,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 179994,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 179994,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 195994,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 195994,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +16ms
  - evdev:
    - [  0, 203992,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 203992,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 210998,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 210998,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 218996,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 218996,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 227031,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  0, 227031,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0, 234996,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 234996,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 243027,   2,   0,       1] # EV_REL / REL_X                     1
    - [  0, 243027,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0, 251025,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  0, 251025,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 571995,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 571995,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +320ms
  - evdev:
    - [  0, 580031,   2,   0,      -3] # EV_REL / REL_X                    -3
    - [  0, 580031,   2,   1,      -5] # EV_REL / REL_Y                    -5
    - [  0, 580031,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  0, 588031,   2,   0,      -3] # EV_REL / REL_X                    -3
    - [  0, 588031,   2,   1,      -3] # EV_REL / REL_Y                    -3
    - [  0, 588031,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 595997,   2,   0,      -3] # EV_REL / REL_X                    -3
    - [  0, 595997,   2,   1,      -3] # EV_REL / REL_Y                    -3
    - [  0, 595997,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 603979,   2,   0,      -2] # EV_REL / REL_X                    -2
    - [  0, 603979,   2,   1,      -4] # EV_REL / REL_Y                    -4
    - [  0, 603979,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 613993,   2,   0,      -2] # EV_REL / REL_X                    -2
    - [  0, 613993,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  0, 613993,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +10ms
  - evdev:
    - [  0, 619992,   2,   0,      -2] # EV_REL / REL_X                    -2
    - [  0, 619992,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  0, 619992,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +6ms
  - evdev:
    - [  0, 627993,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 627993,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  0, 627993,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 635001,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 635001,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 635001,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 642994,   2,   0,      -2] # EV_REL / REL_X                    -2
    - [  0, 642994,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  0, 642994,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  0, 650992,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 650992,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 650992,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 658993,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 658993,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 666997,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 666997,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 666997,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 674993,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 674993,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  0, 674993,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  0, 697998,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  0, 697998,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  0, 697998,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +23ms
  - evdev:
    - [  2, 260041,   2,   0,      -2] # EV_REL / REL_X                    -2
    - [  2, 260041,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +1563ms
  - evdev:
    - [  2, 268035,   2,   0,      -4] # EV_REL / REL_X                    -4
    - [  2, 268035,   2,   1,      -3] # EV_REL / REL_Y                    -3
    - [  2, 268035,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  2, 276008,   2,   0,      -4] # EV_REL / REL_X                    -4
    - [  2, 276008,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  2, 276008,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  2, 283997,   2,   0,      -3] # EV_REL / REL_X                    -3
    - [  2, 283997,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  2, 283997,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  2, 291993,   2,   0,      -1] # EV_REL / REL_X                    -1
    - [  2, 291993,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 478005,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  5, 478005,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +3187ms
  - evdev:
    - [  5, 485999,   2,   0,       4] # EV_REL / REL_X                     4
    - [  5, 485999,   2,   1,      -8] # EV_REL / REL_Y                    -8
    - [  5, 485999,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  5, 493999,   2,   0,       4] # EV_REL / REL_X                     4
    - [  5, 493999,   2,   1,      -8] # EV_REL / REL_Y                    -8
    - [  5, 493999,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 500998,   2,   0,       5] # EV_REL / REL_X                     5
    - [  5, 500998,   2,   1,      -7] # EV_REL / REL_Y                    -7
    - [  5, 500998,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  5, 509009,   2,   0,       5] # EV_REL / REL_X                     5
    - [  5, 509009,   2,   1,      -6] # EV_REL / REL_Y                    -6
    - [  5, 509009,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  5, 517036,   2,   0,       4] # EV_REL / REL_X                     4
    - [  5, 517036,   2,   1,      -4] # EV_REL / REL_Y                    -4
    - [  5, 517036,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 525036,   2,   0,       5] # EV_REL / REL_X                     5
    - [  5, 525036,   2,   1,      -4] # EV_REL / REL_Y                    -4
    - [  5, 525036,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 533033,   2,   0,       3] # EV_REL / REL_X                     3
    - [  5, 533033,   2,   1,      -4] # EV_REL / REL_Y                    -4
    - [  5, 533033,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 541004,   2,   0,       4] # EV_REL / REL_X                     4
    - [  5, 541004,   2,   1,      -3] # EV_REL / REL_Y                    -3
    - [  5, 541004,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 548999,   2,   0,       2] # EV_REL / REL_X                     2
    - [  5, 548999,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  5, 548999,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  5, 556036,   2,   0,       2] # EV_REL / REL_X                     2
    - [  5, 556036,   2,   1,      -5] # EV_REL / REL_Y                    -5
    - [  5, 556036,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 564000,   2,   0,       2] # EV_REL / REL_X                     2
    - [  5, 564000,   2,   1,      -1] # EV_REL / REL_Y                    -1
    - [  5, 564000,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  5, 571984,   2,   0,       1] # EV_REL / REL_X                     1
    - [  5, 571984,   2,   1,      -2] # EV_REL / REL_Y                    -2
    - [  5, 571984,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  6, 208033,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 208033,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +637ms
  - evdev:
    - [  6, 216037,   2,   0,       1] # EV_REL / REL_X                     1
    - [  6, 216037,   2,   1,       3] # EV_REL / REL_Y                     3
    - [  6, 216037,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  6, 224037,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  6, 224037,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  6, 231000,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 231000,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  6, 239036,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 239036,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  6, 246999,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 246999,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  6, 255000,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 255000,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  6, 262999,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 262999,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  6, 271032,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 271032,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +9ms
  - evdev:
    - [  6, 279012,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  6, 279012,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  6, 286005,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 286005,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms
  - evdev:
    - [  6, 294002,   2,   1,       2] # EV_REL / REL_Y                     2
    - [  6, 294002,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +8ms
  - evdev:
    - [  6, 301996,   2,   1,       1] # EV_REL / REL_Y                     1
    - [  6, 301996,   0,   0,       0] # ------------ SYN_REPORT (0) ---------- +7ms

This is the hid-tools sudo hid-recorder

```Available devices:
/dev/hidraw0:	SONiX USB DEVICE
/dev/hidraw1:	SONiX USB DEVICE
/dev/hidraw2:	Logitech USB Receiver
/dev/hidraw3:	Logitech USB Receiver
/dev/hidraw4:	Logitech G602
Select the device event number [0-4]: 2
# Logitech USB Receiver
# 0x05, 0x01,                    // Usage Page (Generic Desktop)        0
# 0x09, 0x02,                    // Usage (Mouse)                       2
# 0xa1, 0x01,                    // Collection (Application)            4
# 0x09, 0x01,                    //  Usage (Pointer)                    6
# 0xa1, 0x00,                    //  Collection (Physical)              8
# 0x95, 0x10,                    //   Report Count (16)                 10
# 0x75, 0x01,                    //   Report Size (1)                   12
# 0x15, 0x00,                    //   Logical Minimum (0)               14
# 0x25, 0x01,                    //   Logical Maximum (1)               16
# 0x05, 0x09,                    //   Usage Page (Button)               18
# 0x19, 0x01,                    //   Usage Minimum (1)                 20
# 0x29, 0x10,                    //   Usage Maximum (16)                22
# 0x81, 0x02,                    //   Input (Data,Var,Abs)              24
# 0x95, 0x02,                    //   Report Count (2)                  26
# 0x75, 0x10,                    //   Report Size (16)                  28
# 0x16, 0x01, 0x80,              //   Logical Minimum (-32767)          30
# 0x26, 0xff, 0x7f,              //   Logical Maximum (32767)           33
# 0x05, 0x01,                    //   Usage Page (Generic Desktop)      36
# 0x09, 0x30,                    //   Usage (X)                         38
# 0x09, 0x31,                    //   Usage (Y)                         40
# 0x81, 0x06,                    //   Input (Data,Var,Rel)              42
# 0x95, 0x01,                    //   Report Count (1)                  44
# 0x75, 0x08,                    //   Report Size (8)                   46
# 0x15, 0x81,                    //   Logical Minimum (-127)            48
# 0x25, 0x7f,                    //   Logical Maximum (127)             50
# 0x09, 0x38,                    //   Usage (Wheel)                     52
# 0x81, 0x06,                    //   Input (Data,Var,Rel)              54
# 0x95, 0x01,                    //   Report Count (1)                  56
# 0x05, 0x0c,                    //   Usage Page (Consumer Devices)     58
# 0x0a, 0x38, 0x02,              //   Usage (AC Pan)                    60
# 0x81, 0x06,                    //   Input (Data,Var,Rel)              63
# 0xc0,                          //  End Collection                     65
# 0xc0,                          // End Collection                      66
# 
R: 67 05 01 09 02 a1 01 09 01 a1 00 95 10 75 01 15 00 25 01 05 09 19 01 29 10 81 02 95 02 75 10 16 01 80 26 ff 7f 05 01 09 30 09 31 81 06 95 01 75 08 15 81 25 7f 09 38 81 06 95 01 05 0c 0a 38 02 81 06 c0 c0
N: Logitech USB Receiver
I: 3 046d c537
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:    -18 | Y:     -3 | Wheel:    0 | AC Pan:    0 
E: 000000.000000 8 00 00 ee ff fd ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:    -10 | Y:     -1 | Wheel:    0 | AC Pan:    0 
E: 000000.008066 8 00 00 f6 ff ff ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -9 | Y:     -2 | Wheel:    0 | AC Pan:    0 
E: 000000.015981 8 00 00 f7 ff fe ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -9 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000000.023974 8 00 00 f7 ff 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -9 | Y:     -2 | Wheel:    0 | AC Pan:    0 
E: 000000.031949 8 00 00 f7 ff fe ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -7 | Y:     -1 | Wheel:    0 | AC Pan:    0 
E: 000000.039964 8 00 00 f9 ff ff ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -6 | Y:     -2 | Wheel:    0 | AC Pan:    0 
E: 000000.047033 8 00 00 fa ff fe ff 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -5 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000000.054964 8 00 00 fb ff 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -3 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000000.062964 8 00 00 fd ff 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:     -2 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000000.070963 8 00 00 fe ff 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      1 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000000.644094 8 00 00 01 00 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      1 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000001.343098 8 00 00 01 00 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      5 | Y:      1 | Wheel:    0 | AC Pan:    0 
E: 000001.351069 8 00 00 05 00 01 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      4 | Y:      1 | Wheel:    0 | AC Pan:    0 
E: 000001.358964 8 00 00 04 00 01 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      4 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000001.366966 8 00 00 04 00 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      2 | Y:      1 | Wheel:    0 | AC Pan:    0 
E: 000001.374998 8 00 00 02 00 01 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      2 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000001.383059 8 00 00 02 00 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      1 | Y:      1 | Wheel:    0 | AC Pan:    0 
E: 000001.390041 8 00 00 01 00 01 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      1 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000001.397970 8 00 00 01 00 00 00 00 00
#  Button: 0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 | X:      1 | Y:      0 | Wheel:    0 | AC Pan:    0 
E: 000001.413957 8 00 00 01 00 00 00 00 00


@FFY00
Copy link
Member

FFY00 commented Jan 29, 2021

hidraw2 seems to be the HID device responsible for the pointer (mouse), could you try hidraw3?

@Rockwell1799
Copy link
Author


Available devices:
/dev/hidraw0:	SONiX USB DEVICE
/dev/hidraw1:	SONiX USB DEVICE
/dev/hidraw2:	Logitech USB Receiver
/dev/hidraw3:	Logitech USB Receiver
/dev/hidraw4:	Logitech G602
Select the device event number [0-4]: 3
# Logitech USB Receiver
# 0x05, 0x01,                    // Usage Page (Generic Desktop)        0
# 0x09, 0x06,                    // Usage (Keyboard)                    2
# 0xa1, 0x01,                    // Collection (Application)            4
# 0x85, 0x01,                    //  Report ID (1)                      6
# 0x95, 0x08,                    //  Report Count (8)                   8
# 0x75, 0x01,                    //  Report Size (1)                    10
# 0x15, 0x00,                    //  Logical Minimum (0)                12
# 0x25, 0x01,                    //  Logical Maximum (1)                14
# 0x05, 0x07,                    //  Usage Page (Keyboard)              16
# 0x19, 0xe0,                    //  Usage Minimum (224)                18
# 0x29, 0xe7,                    //  Usage Maximum (231)                20
# 0x81, 0x02,                    //  Input (Data,Var,Abs)               22
# 0x95, 0x06,                    //  Report Count (6)                   24
# 0x75, 0x08,                    //  Report Size (8)                    26
# 0x15, 0x00,                    //  Logical Minimum (0)                28
# 0x26, 0xff, 0x00,              //  Logical Maximum (255)              30
# 0x05, 0x07,                    //  Usage Page (Keyboard)              33
# 0x19, 0x00,                    //  Usage Minimum (0)                  35
# 0x2a, 0xff, 0x00,              //  Usage Maximum (255)                37
# 0x81, 0x00,                    //  Input (Data,Arr,Abs)               40
# 0xc0,                          // End Collection                      42
# 0x05, 0x0c,                    // Usage Page (Consumer Devices)       43
# 0x09, 0x01,                    // Usage (Consumer Control)            45
# 0xa1, 0x01,                    // Collection (Application)            47
# 0x85, 0x03,                    //  Report ID (3)                      49
# 0x95, 0x02,                    //  Report Count (2)                   51
# 0x75, 0x10,                    //  Report Size (16)                   53
# 0x15, 0x01,                    //  Logical Minimum (1)                55
# 0x26, 0xff, 0x02,              //  Logical Maximum (767)              57
# 0x19, 0x01,                    //  Usage Minimum (1)                  60
# 0x2a, 0xff, 0x02,              //  Usage Maximum (767)                62
# 0x81, 0x00,                    //  Input (Data,Arr,Abs)               65
# 0xc0,                          // End Collection                      67
# 0x05, 0x01,                    // Usage Page (Generic Desktop)        68
# 0x09, 0x80,                    // Usage (System Control)              70
# 0xa1, 0x01,                    // Collection (Application)            72
# 0x85, 0x04,                    //  Report ID (4)                      74
# 0x95, 0x01,                    //  Report Count (1)                   76
# 0x75, 0x02,                    //  Report Size (2)                    78
# 0x15, 0x01,                    //  Logical Minimum (1)                80
# 0x25, 0x03,                    //  Logical Maximum (3)                82
# 0x09, 0x82,                    //  Usage (System Sleep)               84
# 0x09, 0x81,                    //  Usage (System Power Down)          86
# 0x09, 0x83,                    //  Usage (System Wake Up)             88
# 0x81, 0x00,                    //  Input (Data,Arr,Abs)               90
# 0x75, 0x06,                    //  Report Size (6)                    92
# 0x81, 0x03,                    //  Input (Cnst,Var,Abs)               94
# 0xc0,                          // End Collection                      96
# 0x06, 0x00, 0xff,              // Usage Page (Vendor Defined Page 1)  97
# 0x09, 0x01,                    // Usage (Vendor Usage 1)              100
# 0xa1, 0x01,                    // Collection (Application)            102
# 0x85, 0x10,                    //  Report ID (16)                     104
# 0x95, 0x06,                    //  Report Count (6)                   106
# 0x75, 0x08,                    //  Report Size (8)                    108
# 0x15, 0x00,                    //  Logical Minimum (0)                110
# 0x26, 0xff, 0x00,              //  Logical Maximum (255)              112
# 0x09, 0x01,                    //  Usage (Vendor Usage 1)             115
# 0x81, 0x00,                    //  Input (Data,Arr,Abs)               117
# 0x09, 0x01,                    //  Usage (Vendor Usage 1)             119
# 0x91, 0x00,                    //  Output (Data,Arr,Abs)              121
# 0xc0,                          // End Collection                      123
# 0x06, 0x00, 0xff,              // Usage Page (Vendor Defined Page 1)  124
# 0x09, 0x02,                    // Usage (Vendor Usage 2)              127
# 0xa1, 0x01,                    // Collection (Application)            129
# 0x85, 0x11,                    //  Report ID (17)                     131
# 0x95, 0x13,                    //  Report Count (19)                  133
# 0x75, 0x08,                    //  Report Size (8)                    135
# 0x15, 0x00,                    //  Logical Minimum (0)                137
# 0x26, 0xff, 0x00,              //  Logical Maximum (255)              139
# 0x09, 0x02,                    //  Usage (Vendor Usage 2)             142
# 0x81, 0x00,                    //  Input (Data,Arr,Abs)               144
# 0x09, 0x02,                    //  Usage (Vendor Usage 2)             146
# 0x91, 0x00,                    //  Output (Data,Arr,Abs)              148
# 0xc0,                          // End Collection                      150
# 0x06, 0x80, 0xff,              // Usage Page (Vendor Usage Page 0xff80) 151
# 0x09, 0x80,                    // Usage (Vendor Usage 0x80)           154
# 0xa1, 0x01,                    // Collection (Application)            156
# 0x85, 0x80,                    //  Report ID (128)                    158
# 0x09, 0x80,                    //  Usage (Vendor Usage 0x80)          160
# 0x75, 0x08,                    //  Report Size (8)                    162
# 0x95, 0x04,                    //  Report Count (4)                   164
# 0x81, 0x02,                    //  Input (Data,Var,Abs)               166
# 0xc0,                          // End Collection                      168
# 
R: 169 05 01 09 06 a1 01 85 01 95 08 75 01 15 00 25 01 05 07 19 e0 29 e7 81 02 95 06 75 08 15 00 26 ff 00 05 07 19 00 2a ff 00 81 00 c0 05 0c 09 01 a1 01 85 03 95 02 75 10 15 01 26 ff 02 19 01 2a ff 02 81 00 c0 05 01 09 80 a1 01 85 04 95 01 75 02 15 01 25 03 09 82 09 81 09 83 81 00 75 06 81 03 c0 06 00 ff 09 01 a1 01 85 10 95 06 75 08 15 00 26 ff 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 01 85 11 95 13 75 08 15 00 26 ff 00 09 02 81 00 09 02 91 00 c0 06 80 ff 09 80 a1 01 85 80 09 80 75 08 95 04 81 02 c0
N: Logitech USB Receiver
I: 3 046d c537
# ReportID: 1 / LeftControl: 0 | LeftShift: 0 | LeftAlt: 1 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['w and W', '00', '00', '00', '00', '00'] 
E: 000000.000000 8 01 04 1a 00 00 00 00 00
# ReportID: 128 / 0xff800080:   16 ,    0 ,  128 ,    0 
E: 000000.000878 5 80 10 00 80 00
# ReportID: 16 /Vendor Defined Page 1 ['01', '41', '07', '12', '2c', '40'] 
E: 000000.001885 7 10 01 41 07 12 2c 40
# ReportID: 16 /Vendor Defined Page 1 ['ff', '80', '02', '00', '00', '00'] 
E: 000000.002883 7 10 ff 80 02 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '00', '32', '14', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000000.015894 20 11 01 05 00 32 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '10', '04', '00', 'c0', '78', '0a', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000000.030875 20 11 01 05 10 04 00 c0 78 0a 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 1 / LeftControl: 0 | LeftShift: 0 | LeftAlt: 0 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['00', '00', '00', '00', '00', '00'] 
E: 000000.164914 8 01 00 00 00 00 00 00 00
# ReportID: 128 / 0xff800080:    0 ,    0 ,  128 ,    0 
E: 000000.165906 5 80 00 00 80 00
# ReportID: 1 / LeftControl: 1 | LeftShift: 0 | LeftAlt: 0 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['w and W', '00', '00', '00', '00', '00'] 
E: 000000.736914 8 01 01 1a 00 00 00 00 00
# ReportID: 128 / 0xff800080:  128 ,    0 ,  128 ,    0 
E: 000000.737887 5 80 80 00 80 00
# ReportID: 16 /Vendor Defined Page 1 ['01', '41', '07', '12', '2c', '40'] 
E: 000000.738881 7 10 01 41 07 12 2c 40
# ReportID: 16 /Vendor Defined Page 1 ['ff', '80', '02', '00', '00', '00'] 
E: 000000.739876 7 10 ff 80 02 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '00', '32', '14', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000000.752968 20 11 01 05 00 32 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '10', '04', '00', 'c0', '78', '0a', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000000.855017 20 11 01 05 10 04 00 c0 78 0a 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 1 / LeftControl: 0 | LeftShift: 0 | LeftAlt: 0 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['00', '00', '00', '00', '00', '00'] 
E: 000000.893903 8 01 00 00 00 00 00 00 00
# ReportID: 128 / 0xff800080:    0 ,    0 ,  128 ,    0 
E: 000000.894957 5 80 00 00 80 00
# ReportID: 1 / LeftControl: 0 | LeftShift: 0 | LeftAlt: 1 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['00', '00', '00', '00', '00', '00'] 
E: 000008.576919 8 01 04 00 00 00 00 00 00
# ReportID: 128 / 0xff800080:    8 ,    0 ,  128 ,    0 
E: 000008.577899 5 80 08 00 80 00
# ReportID: 16 /Vendor Defined Page 1 ['01', '41', '07', '12', '2c', '40'] 
E: 000008.578895 7 10 01 41 07 12 2c 40
# ReportID: 16 /Vendor Defined Page 1 ['ff', '80', '02', '00', '00', '00'] 
E: 000008.580893 7 10 ff 80 02 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '00', '32', '14', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000008.595904 20 11 01 05 00 32 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 17 /Vendor Defined Page 1 ['01', '05', '10', '04', '00', 'c0', '78', '0a', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00', '00'] 
E: 000008.694925 20 11 01 05 10 04 00 c0 78 0a 00 00 00 00 00 00 00 00 00 00 00
# ReportID: 1 / LeftControl: 0 | LeftShift: 0 | LeftAlt: 0 | Left GUI: 0 | RightControl: 0 | RightShift: 0 | RightAlt: 0 | Right GUI: 0 |Keyboard ['00', '00', '00', '00', '00', '00'] 
E: 000008.765909 8 01 00 00 00 00 00 00 00
# ReportID: 128 / 0xff800080:    0 ,    0 ,  128 ,    0 
E: 000008.766989 5 80 00 00 80 00

@Rockwell1799
Copy link
Author

Hello Filipe
Is there any update about my problem please?

@Rockwell1799
Copy link
Author

What I don't understand, My mouse was working fine.I wasn't using piper to bind the keys, instead I was using the default logitech application on virtual machine running windows 10.
what I don't understand, why the kernel is not receiving the mouse events?? does someone have an answer please?

@FFY00
Copy link
Member

FFY00 commented Jan 30, 2021

Sorry for the delay. The kernel is receiving the events, it just isn't redirecting them to userspace.

It broke with this patch, I wish I seem to not have tested as good enough as I thought.
torvalds/linux@e400071

@Rockwell1799
Copy link
Author

Thank you for the replay Filipe
It is not a big deal for now! Is the bug going to be fixed in the next kernel update?

@FFY00
Copy link
Member

FFY00 commented Jan 30, 2021

Okay, I sent a patch to the mailing lists that should fix this. Sorry for the trouble. Hopefully, we will be able to get it out on the next release 🤞

https://lkml.org/lkml/2021/1/30/382

@Rockwell1799
Copy link
Author

Thank you Filipe
I really appropriate your feedback on the bug!

fengguang pushed a commit to 0day-ci/linux that referenced this issue Feb 1, 2021
In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Signed-off-by: Filipe Laíns <lains@riseup.net>
fengguang pushed a commit to 0day-ci/linux that referenced this issue Feb 5, 2021
In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
FFY00 added a commit to FFY00/linux that referenced this issue Feb 7, 2021
In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
ColinIanKing pushed a commit to ColinIanKing/linux-next that referenced this issue Feb 8, 2021
In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
@ImJonCarroll
Copy link

What was wrong with this mouse that it was even touched? Just curious as I've been using it for years with no problems. Just seems a bit random that this update decided to touch this old mouse. I'm still a bit new to this, and I've been unable to find where it details the reasoning. Thanks.

nareshkamboju pushed a commit to nareshkamboju/linux that referenced this issue Mar 2, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
woodsts pushed a commit to woodsts/linux-stable that referenced this issue Mar 4, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
woodsts pushed a commit to woodsts/linux-stable that referenced this issue Mar 4, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gregkh pushed a commit to gregkh/linux that referenced this issue Mar 4, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
@anonymouspetdo
Copy link

anonymouspetdo commented Mar 9, 2021

@FFY00
extra buttons of G602 now work correctly after the fix is applied on 5.11.4-arch1 but there are error message in dmesg when pressing any buttons on the mouse.

logitech-djreceiver 0003:046D:C537.0002: Unexpected input report number 128

PRIORITY 3
SYSLOG_FACILITY 0
SYSLOG_IDENTIFIER kernel
_BOOT_ID 4ced90d967e544edb40bb1732232fb7d
_HOSTNAME JTOR
_KERNEL_DEVICE +hid:0003:046D:C537.0002
_KERNEL_SUBSYSTEM hid
_MACHINE_ID 4b723db5358a43e389b85e8d0c5daf1a
_SOURCE_MONOTONIC_TIMESTAMP 267478057
_TRANSPORT kernel
_UDEV_SYSNAME 0003:046D:C537.0002
__CURSOR s=4cc1f3d343254a20961f6370fbf79889;i=61cb;b=4ced90d967e544edb40bb1732232fb7d;m=ff3706c;t=5be538f679245;x=3840b7fef2b663d5
__MONOTONIC_TIMESTAMP 267612268
__REALTIME_TIMESTAMP 1616640981045829

kaixuxiakx pushed a commit to Tencent/TencentOS-kernel that referenced this issue Mar 30, 2021
commit ef07c116d98772952807492bd32a61f5af172a94 upstream.

In e400071a805d6229223a98899e9da8c6233704a1 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071a805d6 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gibsson pushed a commit to boundarydevices/linux that referenced this issue Apr 8, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gibsson pushed a commit to boundarydevices/linux that referenced this issue Apr 8, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
gibsson pushed a commit to boundarydevices/linux that referenced this issue Apr 8, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
it-is-a-robot pushed a commit to openeuler-mirror/kernel that referenced this issue Apr 10, 2021
stable inclusion
from stable-5.10.20
commit eb6a537479b4e62be75b7eb98613b6b0595d9c6d
bugzilla: 50608

--------------------------------

commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chen Jun <chenjun102@huawei.com>
Acked-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
kaixuxiakx pushed a commit to Tencent/TencentOS-kernel that referenced this issue Apr 12, 2021
commit ef07c116d98772952807492bd32a61f5af172a94 upstream.

In e400071a805d6229223a98899e9da8c6233704a1 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071a805d6 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
@odysei
Copy link

odysei commented Apr 19, 2021

Hi @FFY00 , your patch https://lkml.org/lkml/2021/1/30/382 ended up in the mainline kernel as of 5.11.3, however, as of 5.11.15 (also Ubuntu 5.11.0.14) we're not out of the water. The situation anonymouspetdo reports is still valid, i.e., it works but with plenty of errors in kern.log.

@FFY00
Copy link
Member

FFY00 commented Apr 19, 2021

What exactly doesn't work? The messages that show up in dmesg are not really worrying if everything works fine. I am pretty sure it is just an alternative channel the receiver uses to report input events directly to the windows driver. In which case, we should silence those messages in the kernel driver.

@odysei
Copy link

odysei commented Apr 19, 2021

It seems that the functionality is fine - thanks on that front!
Whereas only the messages are the current leftover nuisance, like the following:
"[24475.106342] logitech-djreceiver 0003:046D:C537.0008: Unexpected input report number 128"

wataash pushed a commit to wataash/linux that referenced this issue Apr 29, 2021
BugLink: https://bugs.launchpad.net/bugs/1921960

commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/linux-mvista that referenced this issue Apr 30, 2021
Source: Kernel.org
MR: 109783
Type: Integration
Disposition: Backport from git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable linux-5.4.y
ChangeID: 394f2b794310f48abde38dbed33aae7ae98db6a2
Description:

commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
@ghost
Copy link

ghost commented May 6, 2021

When my Ubuntu laptop goes to sleep while the G602 receiver is plugged in, when I wake it up, I get a black screen with the "Unexpected input report number" message and I have to restart.

delphix-devops-bot pushed a commit to delphix/linux-kernel-gcp that referenced this issue May 12, 2021
BugLink: https://bugs.launchpad.net/bugs/1918974

commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
gregmarsden pushed a commit to oracle/linux-uek that referenced this issue Jun 18, 2021
commit ef07c11 upstream.

In e400071 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 394f2b7)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
@eiis1000
Copy link

eiis1000 commented Aug 7, 2021

Running pop-os, every time I press any mouse button or unpress the button (G602), I get the following message in /var/log/syslog:
Aug 7 16:17:53 pop-os kernel: [13737.699649] logitech-djreceiver 0003:046D:C537.0009: Unexpected input report number 128

The following is my uname:

$ uname -a
Linux pop-os 5.11.0-7620-generic #21~1626191760~21.04~55de9c3-Ubuntu SMP Tue Jul 20 22:18:55 UTC  x86_64 x86_64 x86_64 GNU/Linux

More severely, the mouse often stutters and rubberbands, reporting the same report 128 every time it does so.

@anonymouspetdo
Copy link

I don't have any other problem with my G602 using hid-logitech-dj module except that it keeps create a false kernel error message [Unexpected input report number 128]

It seems that the original author has no interest of fixing this false error message because everything else works (we just need to deal with a bloated kernel error messages).

@eiis1000
If this false error message causes anyone severe problem, I suggests you blacklist module hid-logitech-dj and reboot. G602 will fall back to hid-generic, which used to work just fine (extra buttons programed to key press also works).

How to blacklist module: https://wiki.archlinux.org/title/Kernel_module#Blacklisting

create file /etc/modprobe.d/blk-hid-logitech-dj.conf with following content
blacklist hid-logitech-dj

freak07 pushed a commit to freak07/Kirisakura_ANAKIN_ROG5 that referenced this issue Sep 11, 2021
commit ef07c116d98772952807492bd32a61f5af172a94 upstream.

In e400071a805d6229223a98899e9da8c6233704a1 I added support for the
receiver that comes with the G602 device, but unfortunately I screwed up
during testing and it seems the keyboard events were actually not being
sent to userspace.
This resulted in keyboard events being broken in userspace, please
backport the fix.

The receiver uses the normal 0x01 Logitech keyboard report descriptor,
as expected, so it is just a matter of flagging it as supported.

Reported in
libratbag/libratbag#1124

Fixes: e400071a805d6 ("HID: logitech-dj: add the G602 receiver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 394f2b7)
(cherry picked from commit 81d83fd91b4747dabdecde26819329968bc77edc)
@amfern amfern self-assigned this Oct 23, 2021
@FFY00
Copy link
Member

FFY00 commented Oct 23, 2021

Please make sure you are running at least Linux 5.12.

torvalds/linux@ef07c11

@amfern
Copy link
Member

amfern commented Oct 23, 2021

I am also seeing the errors when I press any mouse buttons on g602

78725.945555] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128
[78726.045569] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128
[78726.995568] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128
[78727.139535] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128
[78727.463534] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128
[78727.580537] logitech-djreceiver 0003:046D:C537.0067: Unexpected input report number 128

@token0
Copy link

token0 commented Dec 28, 2021

How I got rid of G602 problems on linux:

  1. Linux: Blacklist hid-logitech-dj module and remove libratbag and piper.
  2. Windows OS: Connect mouse dongle, Install latest Logitech G HUB, run it.
  3. Set your desired DPI setting in first preset (there are 5 total) — because mouse defaults on first preset setting while on embedded profile (my choice is 1500 DPI).
  4. Correctly set buttons (I use F13-F24 for anything but Back/Forward).
  5. Switch your mouse to embedded profile, then reset embedded profile, and at last upload your previously tweaked profile to embedded mouse memory.
  6. Linux: Connect mouse dongle and bind your software to mouse buttons.

Result: everything works including Solaar and system log is clean.

@CodingKoopa
Copy link

The Unexpected input report number 128 errors are still a thing, and I suspect that a kernel patch is still warranted to fix it. I reported this on the linux-input mailing list. I was rather later in replying with >= 5.12 results, so I think it may have fallen through the cracks. I don't intend on bumping the thread any time soon, though, as to not be spamming the mailing list.

In the meantime, I'm just going to let the errors happen, as the mouse works fine for me, and I don't want to forget to un-blacklist the module when the issue is fixed.

@libjared
Copy link

@token0 Thanks for this. I ended up doing something similar.

I had desperately flashed my mouse to 4700.0012 and I think that broke compatibility with LGS, as it silently fails to get or set any buttons on the on-board profile. G Hub works great, thankfully, so I used that to configure the buttons and copy it to the on-board profile.

I didn't need to blacklist the logitech dj module, compile a custom kernel, or remove libratbag or piper. Pressing the buttons just sends normal F13-F18 events on the /dev/input device.

I prefer to keep using the dj module in spite of the dmesg spam, because the mouse is rolled into 1 named input device, in contrast to the generic driver which exposes 3 "Logitech Receiver" devices each with their own slice of events.

@BETLOG
Copy link

BETLOG commented Sep 10, 2023

[edit] After swearing at GHUB for several minutes, i restarted it, and now its showing me the stuff i want to actually see,
and F13+ are now visible.
For 'too much information' completeness: #434 (comment)

@libjared Can you expand on this? I have been trying to do exactly the same thing, by temporarily xmodmap'ing F13 to keycode 148 ( XF86Calculator), so theres actually a key to press in 'Logitech Gaming Software' inside a qemu win10 VM to do the binding, but LGS doesnt see F13 when i push the key, nor if i xdotool key F13 it.
In fact almost nothing I have tried to set buttons using ratbagctl is useful either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests