Skip to content

Commit ae9416f

Browse files
nathanrossiJiri Kosina
authored andcommitted
HID: logitech-dj: Add support for G Pro X Superlight 2 receiver
The Logitech G Pro X Superlight 2 has a lightspeed receiver with a product id of 0xc54d, this receiver behaves like the receiver used in the original Logitech G Pro X Superlight (id 0xc547) including the 13 byte mouse reports. This change adds a definition for this receiver id, and a mapping for the recvr_type_gaming_hidpp_ls_1_3 type. With this change in place the receiver now reports the battery status of the connected mouse over wireless as well as exposing the HID interface needed for userspace to perform additional configuration with libratbag/Piper. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent aba7963 commit ae9416f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@
913913
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_1 0xc53f
914914
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_2 0xc543
915915
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_3 0xc547
916+
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_4 0xc54d
916917
#define USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_POWERPLAY 0xc53a
917918
#define USB_DEVICE_ID_LOGITECH_BOLT_RECEIVER 0xc548
918919
#define USB_DEVICE_ID_SPACETRAVELLER 0xc623

drivers/hid/hid-logitech-dj.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,6 +2091,10 @@ static const struct hid_device_id logi_dj_receivers[] = {
20912091
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
20922092
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_3),
20932093
.driver_data = recvr_type_gaming_hidpp_ls_1_3},
2094+
{ /* Logitech lightspeed receiver (0xc54d) */
2095+
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH,
2096+
USB_DEVICE_ID_LOGITECH_NANO_RECEIVER_LIGHTSPEED_1_4),
2097+
.driver_data = recvr_type_gaming_hidpp_ls_1_3},
20942098

20952099
{ /* Logitech 27 MHz HID++ 1.0 receiver (0xc513) */
20962100
HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_MX3000_RECEIVER),

0 commit comments

Comments
 (0)