]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Add fix for Trust Philips SPK6327 (145f:024b) modifier keys
authormuhammed Rishal <muhammedrishal7777777@gmail.com>
Fri, 3 Apr 2026 16:12:26 +0000 (18:12 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 8 Apr 2026 19:47:02 +0000 (21:47 +0200)
commit30fb45cc2e4aa1b215e0b4f5aeb757128811a3ff
treefe897998f73d61366ad4c0e7a6593fe78a17d939
parentcc3993d3484672635d14a9e5b17ec53920a34407
bpf: Add fix for Trust Philips SPK6327 (145f:024b) modifier keys

The Trust Philips SPK6327 keyboard (USB ID 145f:024b) has a broken HID
descriptor on interface 1. Byte 101 is 0x00 (Input Array) but should be
0x02 (Input Variable), causing LCtrl, LAlt, Super, RAlt, RCtrl and
RShift to all report as LShift on Linux.

This BPF fix patches byte 101 at runtime fixing all affected modifier
keys.

Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/234
Signed-off-by: muhammed Rishal <muhammedrishal7777777@gmail.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/bpf/progs/Trust__Philips-SPK6327.bpf.c [new file with mode: 0644]