]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
platform/x86: thinkpad_acpi: add mapping for new hotkeys
authorChristian Kellner <christian@kellner.me>
Wed, 19 Jul 2017 04:56:58 +0000 (21:56 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 9 Aug 2017 14:38:13 +0000 (16:38 +0200)
commit80174d600256a0b0dce5b49949fe1f370d52ae1d
treefa1291a9dcc29a39673ea1d89e0728dde5c4f283
parentacd39f35dc481c64417d98aa30fecc1044823663
platform/x86: thinkpad_acpi: add mapping for new hotkeys

BugLink: http://bugs.launchpad.net/bugs/1705169
The T470, X270 emits new hkey events in the 0x1311 - 0x1315 range.
According to the user manual they should launch a user selected
favorite application (star icon, 0x1311), snipping tool (0x1312,
currently ignored), enable/disable bluetooth (0x1314) and open they
keyboard settings (0x1315).

The third nibble (0xf00) is used to differentiate between the original
hotkeys, the adaptive keyboard codes and the new, additional ones.

Signed-off-by: Christian Kellner <ckellner@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(cherry picked from commit 696c6523ec8f2a8f30f3dffef7e382f0fe5c2010)
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Acked-by: Hui Wang <Wang <hui.wang@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/platform/x86/thinkpad_acpi.c