Skip to contentSkip to conversation

HID: bpf: fix BTN_STYLUS for the XP Pen ACK05 remote

PATCH Applied Peter Hutterer 2 participants 2 messages Mar 24, 2025 – Apr 24, 2025 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: bpf: fix BTN_STYLUS for the XP Pen ACK05 remote

Usage_Dig_BarrelSwitch was applied in the UsagePage_Button which incorrectly mapped to BTN_TOOL_PENCIL

---
Please feel free to squash this one into the 834da375 if that's an option.

 drivers/hid/bpf/progs/XPPen__ACK05.bpf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hid/bpf/progs/XPPen__ACK05.bpf.c +1 -0
index 1a0aeea6a081..a754710fc90b 100644
@@ -157,6 +157,7 @@ static const __u8 fixed_rdesc_vendor[] = {
 			ReportCount(5) // padding
 			Input(Const)
 			// Byte 4 in report - just exists so we get to be a tablet pad
+			UsagePage_Digitizers
 			Usage_Dig_BarrelSwitch // BTN_STYLUS
 			ReportCount(1)
 			ReportSize(1)
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Peter Hutterer

Usage_Dig_BarrelSwitch was applied in the UsagePage_Button which incorrectly mapped to BTN_TOOL_PENCIL

Applied, thanks Peter.

Signature · 2 lines
Jiri Kosina
SUSE Labs