libratbag: ratbag error: libratbag bug: Logitech M570: invalid dpi list
Information
ratbagdversion (ratbagd --version): 0.14- Distribution: Ubuntu 20.04
- Kernel version (ex.
uname -srmo):Linux 5.4.0-47-generic x86_64 GNU/Linux
Device info (if applicable): N/A No devices available.
Describe the bug
ratbagd fails to recognize the Logitech M570 upon startup; the full output of ratbagd --verbose=raw is included below.
Notably, the following error is observed:
ratbag error: libratbag bug: Logitech M570: invalid dpi list
To Reproduce Steps to reproduce the behavior:
- Run
ratbagd --verbose=raw - See raw debug output and then the error described above.
Logs Please start the daemon with verbosity and reproduce the issue.
First make sure it isn’t running already.
$ ratbagd --verbose=raw
Initializing libratbag
ratbag debug: New device: Logitech USB Keyboard
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c31c
ratbag debug: New device: Logitech USB Keyboard
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c31c
ratbag debug: New device: USB PnP Audio Device
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 0c76:153f
ratbag debug: New device: Logitech M570
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: device assigned driver hidpp10
ratbag debug: hidraw info: bus 0x03 vendor 0x46d product 0x1028
ratbag debug: Logitech M570 is device '/dev/hidraw3'.
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 raw: Fetching individual features (0x1)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 01 | 00 00 00
ratbag raw: hidpp write: 10 00 81 01 00 00 00
ratbag raw: hidpp read: 10 01 81 01 02 00 00
ratbag raw: hidpp10 rx: 10 | 00 | 81 | 01 | 02 00 00
ratbag raw: Fetching HID++ notifications (00)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 00 | 00 00 00
ratbag raw: hidpp write: 10 00 81 00 00 00 00
ratbag raw: hidpp read: 10 01 49 03 00 6e 00
ratbag raw: hidpp read: 10 01 81 00 10 00 00
ratbag raw: hidpp10 rx: 10 | 00 | 81 | 00 | 10 00 00
ratbag raw: Fetching current resolution (0x63)
ratbag raw: hidpp10 tx: 10 | 00 | 83 | 63 | 00 00 00
ratbag raw: hidpp write: 10 00 83 63 00 00 00
ratbag raw: hidpp read: 10 01 8f 83 63 01 00
ratbag raw: HID++ error from the device (0): ERR_INVALID_SUBID (01)
ratbag raw: hidpp10 rx: 10 | 00 | 8f | 83 | 63 01 00
ratbag raw: Fetching LED status (0x51)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 51 | 00 00 00
ratbag raw: hidpp write: 10 00 81 51 00 00 00
ratbag raw: hidpp read: 10 01 8f 81 51 02 00
ratbag raw: HID++ error from the device (0): ERR_INVALID_ADDRESS (02)
ratbag raw: hidpp10 rx: 10 | 00 | 8f | 81 | 51 02 00
ratbag raw: Fetching USB refresh rate (0x64)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 64 | 00 00 00
ratbag raw: hidpp write: 10 00 81 64 00 00 00
ratbag raw: hidpp read: 10 01 8f 81 64 02 00
ratbag raw: HID++ error from the device (0): ERR_INVALID_ADDRESS (02)
ratbag raw: hidpp10 rx: 10 | 00 | 8f | 81 | 64 02 00
ratbag raw: Fetching optical sensor settings (0x61)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 61 | 00 00 00
ratbag raw: hidpp write: 10 00 81 61 00 00 00
ratbag raw: hidpp read: 10 01 8f 81 61 02 00
ratbag raw: HID++ error from the device (0): ERR_INVALID_ADDRESS (02)
ratbag raw: hidpp10 rx: 10 | 00 | 8f | 81 | 61 02 00
ratbag raw: Fetching current profile (0xf)
ratbag raw: hidpp10 tx: 10 | 00 | 81 | 0f | 00 00 00
ratbag raw: hidpp write: 10 00 81 0f 00 00 00
ratbag raw: hidpp read: 10 01 8f 81 0f 02 00
ratbag raw: HID++ error from the device (0): ERR_INVALID_ADDRESS (02)
ratbag raw: hidpp10 rx: 10 | 00 | 8f | 81 | 0f 02 00
ratbag debug: Profiles not supported
ratbag debug: no profile type given
ratbag raw: Fetching profile 0
ratbag error: libratbag bug: Logitech M570: invalid dpi list
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c52b
ratbag debug: New device: SYNA8004:00 06CB:CD8B
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 06cb:cd8b
DBus server ready
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 15 (5 by maintainers)
I now realize m570 will probably need its own unique type, because it doesn’t support custom dpi nor refresh rate. Will try to get around it further in the week, and I think I have a g570 lying around somewhere so i will be able to test this code also.
Edit: this would require to reverse engineer the logitech SetPoint (https://support.logi.com/hc/en-nz/articles/360025141274) and create a dedicated profile HIDPP10_PROFILE_M570, similar to HIDPP10_PROFILE_G9 profile
@whudson this really helped me. Can you please test the branch
wip/set-hidpp10-profile-buttons-and-resolutions-from-quirk-fileI tried it and it didn’t work for me. Still getting the same error.
Here is my full error log.