]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb: Mute SW rfkill keys on MSI Wind U100
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Thu, 3 Aug 2023 14:40:15 +0000 (17:40 +0300)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Aug 2023 17:18:13 +0000 (02:18 +0900)
commitfa8216e20605ff42054ee316201a13ac6cdd4cd1
treef523ad3adf9d1e6b020092868f4d5213fb4c9164
parent48575a59d2756c4df6122debbaf3f5001d6df3b5
hwdb: Mute SW rfkill keys on MSI Wind U100

Kernel patch [1] fixed bugs in rfkill handling on MSI Wind U100. Now
that the HW rfkill reports the correct state, and the SW rfkill is
controllable from userspace, it's necessary to mute KEY_WLAN and
KEY_BLUETOOTH generated on HW rfkill state changes. Otherwise, the
userspace will react to these keys and toggle the SW rfkill as well,
which is not desired, because the user may end up with non-functional
radios if HW and SW rfkills are out of sync.

Blocking these keycodes doesn't impair user experience, because the
desktop environment can still react to HW rfkill events and act
accordingly (for example, show notifications).

While at it, use "unknown" instead of "reserved" to mute keys, to avoid
the "atkbd serio0: Unknown key pressed" flood in dmesg.

[1]: https://lore.kernel.org/all/20230721145423.161057-1-maxtram95@gmail.com/
hwdb.d/60-keyboard.hwdb