Skip to contentSkip to conversation

Suppress bogus F13 trigger on Sirius keyboard full fan shortcut

PATCH In review Werner Sembach 1 participant 2 messages Jan 9, 2025 – Jan 10, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Suppress bogus F13 trigger on Sirius keyboard full fan shortcut

The TUXEDO Sirius 15 Gen1 and the TUXEDO Sirius 15 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.

---
 MAINTAINERS                                   |  6 +++
 .../TUXEDO__Sirius-15-Gen1-and-Gen2.bpf.c     | 51 +++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 drivers/hid/bpf/progs/TUXEDO__Sirius-15-Gen1-and-Gen2.bpf.c
MAINTAINERS +6 -0
index 30cbc3d44cd53..cdd86aaa4d979 100644
@@ -23924,6 +23924,12 @@ T:	git git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git turbostat
 F:	tools/power/x86/turbostat/
 F:	tools/testing/selftests/turbostat/
 
+TUXEDO SIRIUS 15 GEN1 AND GEN2 BPF KEYBOARD FIX
+M:	Werner Sembach <[email protected]>
+L:	[email protected]
+S:	Supported
+F:	drivers/hid/bpf/progs/TUXEDO__Sirius-15-Gen1-and-Gen2.bpf.c
+
 TW5864 VIDEO4LINUX DRIVER
 M:	Bluecherry Maintainers <[email protected]>
 M:	Andrey Utkin <[email protected]>
drivers/hid/bpf/progs/TUXEDO__Sirius-15-Gen1-and-Gen2.bpf.c new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw

Am 09.01.25 um 19:37 schrieb Werner Sembach:

Quoted 10 lines

The TUXEDO Sirius 15 Gen1 and the TUXEDO Sirius 15 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)

Quoted 4 lines

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

This patch is also discussed (and more up to date) here: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/166