HID: logitech-dj: Add support for a new lightspeed receiver iteration
Subsystems (2)
PATCH v5 1/1 HID: logitech-dj: Add support for a new lightspeed receiver iteration
This lightspeed receiver uses 13 byte mouse reports without an ID. There are 5 additional vendor defined bytes appended to the report. The workaround for such cases has been adjusted to handle these larger reports.
The keyboard reports have a distinct layout with differing minimums and maximums. Additionally, the LED reports now require a report ID of 1.
New keyboard and mouse descriptors have been added to reflect these changes.
The devices attached to this receiver now report the status of their battery in wireless mode, libratbag communicates with them and they can be configured with Piper.
---
V4 -> V5: Added report ID 1 to LED reports, corrected MAX_RDESC_SIZE V3 -> V4: Rebased and renamed dev id define from 1_2 to 1_3,
gaming_kbd_descriptor to kbd_lightspeed_1_3_descriptor
V2 -> V3: Fixed regression which broke keyboard related input V1 -> V2: Addressed review comment for commit message
I investigated "hidpp_root_get_protocol_version: received protocol error 0x08" and it occurs only when the device is in a low power state. If the mouse is being moved constantly while the receiver is plugged in, this message is not printed. When comparing the behaviour with a previous receiver (046d:c539) with a G403, it behaves the exact same way, but it returns 0x09 (HIDPP_ERROR_RESOURCE_ERROR), disconnecting the device silently, instead of 0x08 (HIDPP_ERROR_UNKNOWN_DEVICE).
I will be sending a patch for that in the near future, but for now it does not cause any issues as the end result is the same.
drivers/hid/hid-ids.h | 1 + drivers/hid/hid-logitech-dj.c | 118 ++++++++++++++++++++++++++++++++-- 2 files changed, 112 insertions(+), 7 deletions(-)
drivers/hid/hid-ids.h +1 -0
@@ -911,6 +911,7 @@#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1 0xc539#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_1 0xc53f#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_2 0xc543 +#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_3 0xc547#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_POWERPLAY 0xc53a#define USB_DEVICE_ID_LOGITECH_BOLT_RECEIVER 0xc548#define USB_DEVICE_ID_SPACETRAVELLER 0xc623
drivers/hid/hid-logitech-dj.c +111 -7
186 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 15 lines · Mavroudis Chatzilazaridis
This lightspeed receiver uses 13 byte mouse reports without an ID. There are 5 additional vendor defined bytes appended to the report. The workaround for such cases has been adjusted to handle these larger reports.
The keyboard reports have a distinct layout with differing minimums and maximums. Additionally, the LED reports now require a report ID of 1.
New keyboard and mouse descriptors have been added to reflect these changes.
The devices attached to this receiver now report the status of their battery in wireless mode, libratbag communicates with them and they can be configured with Piper.
Quoted 6 lines
Fixes 9d1bd9346241 ("HID: logitech-dj: Add support for a new lightspeed receiver iteration")Co-developed-by Filipe Laíns <[email protected]>Signed-off-by Filipe Laíns <[email protected]>Signed-off-by Mavroudis Chatzilazaridis <[email protected]>
Applied to hid.git#for-6.19/logitech, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs