platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] eeepc-wmi: add additional hotkeys
@ 2010-10-11  1:48 chris
  2010-10-11  1:48 ` [PATCH 2/2] eeepc-wmi: Add cpufv sysfs interface chris
  2010-10-11  6:26 ` [PATCH 1/2] eeepc-wmi: add additional hotkeys Corentin Chary
  0 siblings, 2 replies; 11+ messages in thread
From: chris @ 2010-10-11  1:48 UTC (permalink / raw)
  To: platform-driver-x86, acpi4asus-user, yong.y.wang; +Cc: Chris Bagwell

From: Chris Bagwell <chris@cnpbagwell.com>

Added 4 hotkeys using same keymap values as eeepc-latop.
These are mousepad toggle, resolution change, screen off,
and task manager.  These were tested on 1005PE and are the
Fn-F3, F4, F7, and F9, respectively.

Also, added a new hot key for power toggles (Fn-Space on 1005PE)
and is meant to drive cpufv interface from userspace.

Finally, added several keys to be ignored that are being emitted
but do not mapped to any useful or documented hotkeys.  This is
purely cosmetic to prevent uknown key reports on console/log files.
These keys are reported on 1005PE's.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
---
 drivers/platform/x86/eeepc-wmi.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c
index 9dc50fb..441b000 100644
--- a/drivers/platform/x86/eeepc-wmi.c
+++ b/drivers/platform/x86/eeepc-wmi.c
@@ -60,6 +60,10 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 
 #define EEEPC_WMI_DEVID_BACKLIGHT	0x00050012
 
+/* Keys marked with KE_IGNORE and KEY_RESERVE are keys known to
+ * not be useful to userspace and prevents printing to console
+ * about unknown key received.
+ */
 static const struct key_entry eeepc_wmi_keymap[] = {
 	/* Sleep already handled via generic ACPI code */
 	{ KE_KEY, 0x5d, { KEY_WLAN } },
@@ -69,6 +73,17 @@ static const struct key_entry eeepc_wmi_keymap[] = {
 	{ KE_IGNORE, NOTIFY_BRNDOWN_MIN, { KEY_BRIGHTNESSDOWN } },
 	{ KE_IGNORE, NOTIFY_BRNUP_MIN, { KEY_BRIGHTNESSUP } },
 	{ KE_KEY, 0xcc, { KEY_SWITCHVIDEOMODE } },
+	{ KE_KEY, 0x6b, { KEY_F13 } }, /* Disable Touchpad */
+	{ KE_KEY, 0xe1, { KEY_F14 } },
+	{ KE_KEY, 0xe9, { KEY_DISPLAY_OFF } },
+	{ KE_KEY, 0xe0, { KEY_PROG1 } },
+	{ KE_KEY, 0x5c, { KEY_F15 } },
+	{ KE_IGNORE, 0x83, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xeb, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xec, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xed, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xee, { KEY_RESERVED } },
+	{ KE_IGNORE, 0xef, { KEY_RESERVED } },
 	{ KE_END, 0},
 };
 
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-11-06  9:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11  1:48 [PATCH 1/2] eeepc-wmi: add additional hotkeys chris
2010-10-11  1:48 ` [PATCH 2/2] eeepc-wmi: Add cpufv sysfs interface chris
2010-10-11  6:44   ` Corentin Chary
2010-10-11 13:29     ` Chris Bagwell
2010-10-11  6:26 ` [PATCH 1/2] eeepc-wmi: add additional hotkeys Corentin Chary
2010-10-11 13:25   ` Chris Bagwell
2010-10-11 13:57     ` Corentin Chary
     [not found]   ` <AANLkTin3J3oOaYD8G=YSrBr0AKzw7mY7v0BQssw5z2Z6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-11 17:10     ` Dmitry Torokhov
2010-11-06  3:02       ` Chris Bagwell
2010-11-06  7:42         ` Corentin Chary
2010-11-06  9:39           ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).