]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: bpf: Suppress bogus F13 trigger on Sirius keyboard full fan shortcut
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 7 Feb 2025 13:55:58 +0000 (14:55 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 24 Feb 2025 08:25:33 +0000 (09:25 +0100)
commit43db1911f807741fe987ee644fb6ee3642e1bd06
treeb971a5c012d96184f9715beb35f50760e34fc292
parent56be863932145e4e5a24e179ed6d1a6ea6b32227
HID: bpf: Suppress bogus F13 trigger on Sirius keyboard full fan shortcut

The TUXEDO Sirius 16 Gen1 and the TUXEDO Sirius 16 Gen2 Notebooks have an
additional "fan" key next to F12.

Pressing it alone sends a F14 key press which can be bound by user space.

Pressing it while holding the FN key triggers two things:
- The EC firmware locks the fan speed of the internal fans at 100%
- F13 key press is registered which by default is already bound in xkb and
  desktop environments (e.g. in KDE Plasma it launches system settings)

To avoid this unexpected double duty of the FN shortcut, this bpf program
suppresses the F13 key press.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/166
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://patch.msgid.link/20250207-bpf-import-2025-02-07-v1-2-6048fdd5a206@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/bpf/progs/TUXEDO__Sirius-16-Gen1-and-Gen2.bpf.c [new file with mode: 0644]