Skip to contentSkip to conversation

HID: quirks: add ALWAYS_POLL quirk for Keychron Link receiver

PATCH Applied Viktor Sharha 2 participants 2 messages Oct 28 – Nov 19 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: quirks: add ALWAYS_POLL quirk for Keychron Link receiver

The Keychron Link 2.4 GHz receiver (3434:d030) exposes a joystick on an interface of its own. Keychron's Hall-effect keyboards, such as the K4 HE, send a burst of joystick reports on that interface every time the user switches actuation profile, even when no profile uses the joystick.

Desktop environments do not open joystick devices, so usbhid does not poll that interface and the reports are never read. The receiver then stops delivering keyboard input on its other interfaces until the host re-enumerates it or the keyboard is switched to wired mode and back. A key held during the switch also keeps auto-repeating, because its release never arrives.

Holding the joystick device open, or booting with usbhid.quirks=0x3434:0xd030:0x00000400, avoids the problem. Windows is not affected, as it polls every HID interface.

---
 drivers/hid/hid-ids.h    | 3 +++
 drivers/hid/hid-quirks.c | 2 ++
 2 files changed, 5 insertions(+)
drivers/hid/hid-ids.h +3 -0
index 91319aa65..856181478 100644
@@ -802,6 +802,9 @@
 #define USB_VENDOR_ID_KENSINGTON	0x047d
 #define USB_DEVICE_ID_KS_SLIMBLADE	0x2041
 
+#define USB_VENDOR_ID_KEYCHRON		0x3434
+#define USB_DEVICE_ID_KEYCHRON_LINK	0xd030
+
 #define USB_VENDOR_ID_KWORLD		0x1b80
 #define USB_DEVICE_ID_KWORLD_RADIO_FM700	0xd700
 
drivers/hid/hid-quirks.c +2 -0
index 793db001a..d56516aad 100644
@@ -116,6 +116,8 @@ static const struct hid_device_id hid_quirks[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_INNOMEDIA, USB_DEVICE_ID_INNEX_GENESIS_ATARI), HID_QUIRK_MULTI_INPUT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_JESS, USB_DEVICE_ID_AULA_MINI_60_HE_PRO),
 		HID_QUIRK_ALWAYS_POLL },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_KEYCHRON, USB_DEVICE_ID_KEYCHRON_LINK),
+		HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_PIXART_USB_OPTICAL_MOUSE_ID2), HID_QUIRK_ALWAYS_POLL },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M406), HID_QUIRK_MULTI_INPUT },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M506), HID_QUIRK_MULTI_INPUT },
Signature · 1 line
2.56.0
maintainer Applied
#1 lore raw
Quoted 13 lines · Viktor Sharha

The Keychron Link 2.4 GHz receiver (3434:d030) exposes a joystick on an interface of its own. Keychron's Hall-effect keyboards, such as the K4 HE, send a burst of joystick reports on that interface every time the user switches actuation profile, even when no profile uses the joystick.

Desktop environments do not open joystick devices, so usbhid does not poll that interface and the reports are never read. The receiver then stops delivering keyboard input on its other interfaces until the host re-enumerates it or the keyboard is switched to wired mode and back. A key held during the switch also keeps auto-repeating, because its release never arrives.

Quoted 6 lines

Holding the joystick device open, or booting with usbhid.quirks=0x3434:0xd030:0x00000400, avoids the problem. Windows is not affected, as it polls every HID interface.

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs