[PATCH] HID: quirks: add ALWAYS_POLL quirk for Pimax P3C headsets
From: Finn Zeruhn
Date: Thu Dec 03 2026 - 19:02:39 EST
The main board of the Pimax Dream Air (34a4:0044) streams an IMU report
on HID interface 2 at about 496 Hz from power-on. usbhid only polls the
interrupt IN endpoint while the device is open, so otherwise nothing
reads it. The firmware's queue fills up, its USB stack soft-detaches,
and the device re-enumerates every 5.1 s for as long as it is plugged in
and unused, including after a VR runtime that had it open exits. On the
desktop this shows up as constant stuttering. dmesg shows the
disconnects without any error, and the board itself does not reset. The
Dream Air SE (0042), Crystal Light (0018) and Crystal Super (0040) are
the same platform and get the same quirk.
Set HID_QUIRK_ALWAYS_POLL so that usbhid polls from usbhid_start(). The
reports are dropped in the kernel while nothing has the device open. On
a Dream Air with usbhid.quirks=0x34a4:0x0044:0x400 and nothing opening
the device, there was no disconnect in 10.5 minutes, against 40 in the
first 4 minutes without it, and the board stayed on the bus across
multiple starts and stops of a VR runtime. With the quirk built into the
kernel, the board also stayed on the bus after a replug. The cost is
about 494 interrupts/s while the headset is plugged in.
This patch and idea were proposed by ultradev in the Linux VR
Adventures Discord.
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Finn Zeruhn <fzeruhn@xxxxxxxxxx>
---
Notes:
usbhid.quirks=0x34a4:0x0044:0x400 works around it on current kernels.
drivers/hid/hid-ids.h | 6 ++++++
drivers/hid/hid-quirks.c | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index f841667078..60148de2e9 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -1242,6 +1242,12 @@
#define USB_VENDOR_ID_PI_ENGINEERING 0x05f3
#define USB_DEVICE_ID_PI_ENGINEERING_VEC_USB_FOOTPEDAL 0xff
+#define USB_VENDOR_ID_PIMAX 0x34a4
+#define USB_DEVICE_ID_PIMAX_CRYSTAL_LIGHT 0x0018
+#define USB_DEVICE_ID_PIMAX_CRYSTAL_SUPER 0x0040
+#define USB_DEVICE_ID_PIMAX_DREAM_AIR_SE 0x0042
+#define USB_DEVICE_ID_PIMAX_DREAM_AIR 0x0044
+
#define USB_VENDOR_ID_PIXART 0x093a
#define USB_DEVICE_ID_PIXART_USB_OPTICAL_MOUSE_ID2 0x0137
#define USB_DEVICE_ID_PIXART_USB_OPTICAL_MOUSE 0x2510
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
index b4de1a6de2..9edb92ab1d 100644
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@ -172,6 +172,10 @@ static const struct hid_device_id hid_quirks[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_PENMOUNT, USB_DEVICE_ID_PENMOUNT_1610), HID_QUIRK_NOGET },
{ HID_USB_DEVICE(USB_VENDOR_ID_PENMOUNT, USB_DEVICE_ID_PENMOUNT_1640), HID_QUIRK_NOGET },
{ HID_USB_DEVICE(USB_VENDOR_ID_PI_ENGINEERING, USB_DEVICE_ID_PI_ENGINEERING_VEC_USB_FOOTPEDAL), HID_QUIRK_HIDINPUT_FORCE },
+ { HID_USB_DEVICE(USB_VENDOR_ID_PIMAX, USB_DEVICE_ID_PIMAX_CRYSTAL_LIGHT), HID_QUIRK_ALWAYS_POLL },
+ { HID_USB_DEVICE(USB_VENDOR_ID_PIMAX, USB_DEVICE_ID_PIMAX_CRYSTAL_SUPER), HID_QUIRK_ALWAYS_POLL },
+ { HID_USB_DEVICE(USB_VENDOR_ID_PIMAX, USB_DEVICE_ID_PIMAX_DREAM_AIR_SE), HID_QUIRK_ALWAYS_POLL },
+ { HID_USB_DEVICE(USB_VENDOR_ID_PIMAX, USB_DEVICE_ID_PIMAX_DREAM_AIR), HID_QUIRK_ALWAYS_POLL },
{ HID_USB_DEVICE(USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN1), HID_QUIRK_NO_INIT_REPORTS },
{ HID_USB_DEVICE(USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN2), HID_QUIRK_NO_INIT_REPORTS },
{ HID_USB_DEVICE(USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN), HID_QUIRK_NO_INIT_REPORTS },
base-commit: 47d0d5ce3cfca63a04eabcbeef7086d06240ff97
--
2.43.0