[PATCH] thinkpad_acpi: Handle the Fn+F9..F12 HKEYS on the T440s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These 4 keys return 'KEY_UNKNOWN' when watching the events returned
to userland with libevdev.
http://www.thinkwiki.org/wiki/Default_meanings_of_special_keys and
Lenovo's user manual list them as:
F9: control panel/settings
F10: search
F11: show all open programs
F12: open 'computer'/view all programs

Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
---

Hey,

I'm not fully sure about the KEY_XXX constants I picked, KEY_CYCLEWINDOWS may not be the right fit for showing all open programs, moreover on my GNOME 3.12 it triggers a screen rotation for some reason (but I'll blame some userland layer here). I don't know if KEY_CONFIG or KEY_SETUP is better for Fn+F9. And there's also a KEY_DASHBOARD constant which might be a better fit for Fn+F11/Fn+F12.

Christophe


 drivers/platform/x86/thinkpad_acpi.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index defb6af..b4ba785 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -3167,8 +3167,12 @@ 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,
+		KEY_UNKNOWN,    /* 0x1b */
+
+                /* ACPI HKEY FN+F9-F12 on a Lenovo T440s
+                 * Scan Codes  0x1c to 0x1f
+                 */
+                KEY_SETUP, KEY_SEARCH, KEY_CYCLEWINDOWS, KEY_COMPUTER,
 		},
 	};
 
-- 
1.9.0


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel




[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux