From patchwork Wed Mar 2 16:57:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCHv2,1/4] UBUNTU: eeepc-wmi: add additional hotkeys Date: Wed, 02 Mar 2011 06:57:55 -0000 From: Keng-Yu Lin X-Patchwork-Id: 85100 Message-Id: <1299085078-20622-2-git-send-email-keng-yu.lin@canonical.com> To: kernel-team@lists.ubuntu.com, vanhoof@canonical.com Cc: kevin.huang@canonical.com, cyrus.lien@canonical.com, jamie.chang@canonical.com From: Chris Bagwell 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. BugLink: http://bugs.launchpad.net/bugs/689393 (cherry picked from commit eda1748418beb1b9a75d0cea3304edf922c66134 mainline) Signed-off-by: Chris Bagwell Signed-off-by: Matthew Garrett Signed-off-by: Keng-Yu Lin --- 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}, };