thinkpad_acpi: Add mappings for F9 - F12 hotkeys on T440s
PATCH 1/1 thinkpad_acpi: Add mappings for F9 - F12 hotkeys on T440s
The T440s user guide says that when Fn-lock is not active, the T440s' 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.
--- drivers/platform/x86/thinkpad_acpi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +3 -1
@@ -3167,8 +3167,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 found on the T440(s) */ + KEY_CONFIG, KEY_SEARCH, KEY_SCALE, KEY_COMPUTER, }, };
Signature · 1 line
1.8.5.3
drivers/platform/x86/thinkpad_acpi.c static int __init hotkey_init(struct ibm_init_struct *iibm) · line 3173
Quoted 2 lines · Hans de Goede
/* Extra keys found on the T440(s) */
drivers/platform/x86/thinkpad_acpi.c +1
-0+ KEY_CONFIG, KEY_SEARCH, KEY_SCALE, KEY_COMPUTER,
My recollection is that KEY_SCALE was initially intended for "Toggle whether my 640x480 desktop is scaled or letterboxed on my 1280x1024 display". Is this the most appropriate key?
Signature · 1 line
Matthew Garrett <[email protected]>
Hi,
Quoted 7 lines · Matthew Garrett
drivers/platform/x86/thinkpad_acpi.c static int __init hotkey_init(struct ibm_init_struct *iibm) · line 3173
Quoted 2 lines · Hans de Goede
/* Extra keys found on the T440(s) */
drivers/platform/x86/thinkpad_acpi.c +1
-0+ KEY_CONFIG, KEY_SEARCH, KEY_SCALE, KEY_COMPUTER,My recollection is that
KEY_SCALEwas initially intended for "Toggle whether my 640x480 desktop is scaled or letterboxed on my 1280x1024 display". Is this the most appropriate key?
linux/input.h says:
#define KEY_SCALE 120 /* AL Compiz Scale (Expose) */
And Lenovo describes the purpose of the key as "show all programs" which is exactly what expose does. With that said I'm open to suggestions for a better mapping.
Regards,
Hans