HID: quirks: add ALWAYS_POLL quirk for Keychron Link receiver
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
@@ -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
@@ -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
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