]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
platform/x86: thinkpad_acpi: Change the keymap for Favorites hotkey
authorZhang Xianwei <zhang.xianwei8@zte.com.cn>
Thu, 11 Oct 2018 05:59:31 +0000 (13:59 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Nov 2018 13:56:42 +0000 (15:56 +0200)
commit8055db3a5b7508872a2d0ab55ff8688ce0b1df63
treec98ce2c5452671e0cfcc041d0ee545576f14358d
parent651022382c7f8da46cb4872a545ee1da6d097d2a
platform/x86: thinkpad_acpi: Change the keymap for Favorites hotkey

The keycode KEY_FAVORITES(0x16c) used in thinkpad_acpi driver is too
big (out of range > 255) for xorg to handle.
xkeyboard-config has already mapped KEY_BOOKMARKS(156) to
XF86Favorites:

keycodes/evdev:
    <I164> = 164;   // #define KEY_BOOKMARKS           156

symbols/inet:
    key <I164>   {      [ XF86Favorites         ]       };

So change the keymap to KEY_BOOKMARKS for Favorites hotkey.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c