diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-04-04 11:04:29 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-04-07 13:48:19 +0300 |
commit | 617103246cfd19af837e4cb614ba9f877c4f7779 (patch) | |
tree | aaf1a25c194486a29965b6389a094088ca827a43 /drivers/hid/hid-creative-sb0540.c | |
parent | 8744eeec539aa760c41a64b3efbb77868b1d700a (diff) | |
download | linux-617103246cfd19af837e4cb614ba9f877c4f7779.tar.xz |
HID: lenovo: Map mic-mute button to KEY_F20 instead of KEY_MICMUTE
Mapping the mic-mute button to KEY_MICMUTE is technically correct but
KEY_MICMUTE translates to a scancode of 256 (248 + 8) under X,
which does not fit in 8 bits, so it does not work.
Because of this userspace is expecting KEY_F20 instead,
theoretically KEY_MICMUTE should work under Wayland but even
there it does not work, because the desktop-environment is
listening only for KEY_F20 and not for KEY_MICMUTE.
Fixes: bc04b37ea0ec ("HID: lenovo: Add ThinkPad 10 Ultrabook Keyboard support")
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-creative-sb0540.c')
0 files changed, 0 insertions, 0 deletions