X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v2 1/2] eeepc-wmi: add additional hotkeys
@ 2010-10-11 23:47 chris
  2010-10-11 23:47 ` [PATCH v2 2/2] eeepc-wmi: Add cpufv sysfs interface chris
  2010-10-21  6:40 ` [PATCH v2 1/2] eeepc-wmi: add additional hotkeys Corentin Chary
  0 siblings, 2 replies; 7+ messages in thread
From: chris @ 2010-10-11 23:47 UTC (permalink / raw)
  To: platform-driver-x86, acpi4asus-user, corentin.chary, 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.

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

diff --git a/drivers/platform/x86/eeepc-wmi.c b/drivers/platform/x86/eeepc-wmi.c
index 9dc50fb..21df266 100644
--- a/drivers/platform/x86/eeepc-wmi.c
+++ b/drivers/platform/x86/eeepc-wmi.c
@@ -69,6 +69,11 @@ 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_END, 0},
 };
 
-- 
1.7.3.1

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

end of thread, other threads:[~2010-10-21 14:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 23:47 [PATCH v2 1/2] eeepc-wmi: add additional hotkeys chris
2010-10-11 23:47 ` [PATCH v2 2/2] eeepc-wmi: Add cpufv sysfs interface chris
2010-10-21  6:45   ` Corentin Chary
2010-10-21 13:06     ` Chris Bagwell
2010-10-21 13:31       ` Corentin Chary
2010-10-21 14:09   ` Matthew Garrett
2010-10-21  6:40 ` [PATCH v2 1/2] eeepc-wmi: add additional hotkeys Corentin Chary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox