From: Danny Baumann <dannybaumann@web.de>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Danny Baumann <dannybaumann@web.de>
Subject: [PATCH 1/1] dell-wmi: Add support for keys present on Inspiron 15R SE.
Date: Tue, 26 Mar 2013 12:36:34 +0100 [thread overview]
Message-ID: <1364297794-3931-2-git-send-email-dannybaumann@web.de> (raw)
In-Reply-To: <1364297794-3931-1-git-send-email-dannybaumann@web.de>
Those devices have some additional buttons:
- A 'Windows Mobility Center' button that sends Windows+X
- A 'Dell audio preset switch' button that sends key code 0xe02a on
press (with auto-repeat) and 0xe02c on release
- An 'instant launch' button that sends key code 0xe024
The first one doesn't require handling; the two latter ones do not have
a real meaning in Linux, so bind them to launcher keycodes.
Signed-off-by: Danny Baumann <dannybaumann@web.de>
---
drivers/platform/x86/dell-wmi.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index fa9a217..7b1ffd3 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -88,6 +88,15 @@ static const struct key_entry dell_wmi_legacy_keymap[] __initconst = {
{ KE_IGNORE, 0xe020, { KEY_MUTE } },
+ /* Instant launch button */
+ { KE_KEY, 0xe024, { KEY_PROG3 } },
+
+ /* 'Dell audio with preset switch' button -
+ 0xe02a is fired on press (with auto-repeat),
+ 0xe02c is fired on release */
+ { KE_IGNORE, 0xe02a, { KEY_RESERVED } },
+ { KE_KEY, 0xe02c, { KEY_PROG4 } },
+
/* Shortcut and audio panel keys */
{ KE_IGNORE, 0xe025, { KEY_RESERVED } },
{ KE_IGNORE, 0xe026, { KEY_RESERVED } },
--
1.8.1.4
prev parent reply other threads:[~2013-03-26 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 11:36 [PATCH 0/1] " Danny Baumann
2013-03-26 11:36 ` Danny Baumann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364297794-3931-2-git-send-email-dannybaumann@web.de \
--to=dannybaumann@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®