Skip to contentSkip to conversation

HID: logitech-dj: Add support for a new lightspeed receiver iteration

PATCH RESEND In review Mavroudis Chatzilazaridis 4 participants 6 messages Jun 27, 2024 – Sep 2, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v3 1/1 HID: logitech-dj: Add support for a new lightspeed receiver iteration

The lightspeed receiver for the Pro X Superlight uses 13 byte mouse reports without a report id. The workaround for such cases has been adjusted to handle these larger packets.

The device now reports the status of its battery in wireless mode and libratbag now recognizes the device and it can be configured with Piper.

This receiver has new descriptors, which have been added. The mouse descriptor has 5 extra vendor defined bytes at the end, while the keyboard one has a different report layout and minimums/maximums. As such, mice with key press macros and keyboards that use this receiver misbehave without them.

---
V2 -> V3: Fixed regression which broke keyboard related input V1 -> V2: Addressed review comment for commit message

 drivers/hid/hid-ids.h         |   1 +
 drivers/hid/hid-logitech-dj.c | 105 ++++++++++++++++++++++++++++++++--
 2 files changed, 102 insertions(+), 4 deletions(-)
drivers/hid/hid-ids.h +1 -0
index 72d56ee7ce1b..f9ff306fdebd 100644
@@ -878,6 +878,7 @@
 #define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_2		0xc534
 #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	0xc547
 #define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_POWERPLAY	0xc53a
 #define USB_DEVICE_ID_SPACETRAVELLER	0xc623
 #define USB_DEVICE_ID_SPACENAVIGATOR	0xc626
drivers/hid/hid-logitech-dj.c +101 -4

155 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 13 lines · Mavroudis Chatzilazaridis

The lightspeed receiver for the Pro X Superlight uses 13 byte mouse reports without a report id. The workaround for such cases has been adjusted to handle these larger packets.

The device now reports the status of its battery in wireless mode and libratbag now recognizes the device and it can be configured with Piper.

This receiver has new descriptors, which have been added. The mouse descriptor has 5 extra vendor defined bytes at the end, while the keyboard one has a different report layout and minimums/maximums. As such, mice with key press macros and keyboards that use this receiver misbehave without them.

Quoted 8 lines

Given the regressions this caused in the previous attempt ... Benjamin, would it be possible to get some sort of extensive targetted testing in your CI, please?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw

On 2024-10-08 13:00, Jiri Kosina wrote:> Given the regressions this caused in the previous attempt ... Benjamin,

Quoted 9 lines

would it be possible to get some sort of extensive targetted testing in your CI, please?

Thanks,

--
Jiri Kosina
SUSE Labs

Thanks for looking into this!
If there's anything I can assist with, let me know.

#3 lore raw
In reply to Jiri Kosina
Quoted 24 lines · Jiri Kosina
Quoted 13 lines · Mavroudis Chatzilazaridis

The lightspeed receiver for the Pro X Superlight uses 13 byte mouse reports without a report id. The workaround for such cases has been adjusted to handle these larger packets.

The device now reports the status of its battery in wireless mode and libratbag now recognizes the device and it can be configured with Piper.

This receiver has new descriptors, which have been added. The mouse descriptor has 5 extra vendor defined bytes at the end, while the keyboard one has a different report layout and minimums/maximums. As such, mice with key press macros and keyboards that use this receiver misbehave without them.

Quoted 8 lines
Quoted 4 lines

Given the regressions this caused in the previous attempt ... Benjamin, would it be possible to get some sort of extensive targetted testing in your CI, please?

I wish it were that simple. I currently have a unifying receiver connected to the CI and checks that the driver brings it up. However, I do not have a full receiver emulation, meaning that I can not do full extensive testing :(
That's one of the reasons why I hate so much that driver now, because everything can fall apart so easily :(

Cheers,
Benjamin

#5 lore raw
Quoted 5 lines · Stuart Hayhurst

Is there any chance this can be updated for 6.16 / 6.17?
I'd like to test this with my G915 TKL, I came up with almost exactly this solution myself, then found this while troubleshooting it...

Thanks,
Stuart

Hi,

I have rebased it against the latest HID tree [0] and sent a v4 [1].

Please let us know if it works by replying to the v4 with a Tested-by.

Thanks!

[0] https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
[1] https://lore.kernel.org/linux-input/[email protected]/T/