]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
thinkpad_acpi: Add mappings for F9 - F12 hotkeys on X240 / T440 / T540
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Apr 2014 09:46:46 +0000 (11:46 +0200)
committerMatthew Garrett <matthew.garrett@nebula.com>
Tue, 10 Jun 2014 23:11:10 +0000 (19:11 -0400)
The T440s user guide says that when Fn-lock is not active, the *40s' F9 - F12
keys should be mapped to: control-panel, search, show-all-windows and Computer.

These keys generate the sofar unused 28 - 31 hotkey scancodes.

For the first 2 this nicely matches the icons on the keys, for the latter 2
the icons are somewhat creative, which is why I ended up looking them up in
the user manual.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/thinkpad_acpi.c

index 15e61c16736ef7d68c0fc439baaed760262d2b94..d82f196e3cfe7044266b0d022a48f8866fa1dc5a 100644 (file)
@@ -3171,8 +3171,10 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
                KEY_MICMUTE,    /* 0x1a: Mic mute (since ?400 or so) */
 
                /* (assignments unknown, please report if found) */
-               KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN,
                KEY_UNKNOWN,
+
+               /* Extra keys in use since the X240 / T440 / T540 */
+               KEY_CONFIG, KEY_SEARCH, KEY_SCALE, KEY_COMPUTER,
                },
        };