* [PATCH 0/1] dell-wmi: Add support for keys present on Inspiron 15R SE.
@ 2013-03-26 11:36 Danny Baumann
2013-03-26 11:36 ` [PATCH 1/1] " Danny Baumann
0 siblings, 1 reply; 2+ messages in thread
From: Danny Baumann @ 2013-03-26 11:36 UTC (permalink / raw)
To: Matthew Garrett; +Cc: platform-driver-x86, linux-kernel, Danny Baumann
This patch adds support for some keys of the newer Inspiron models not
yet supported (the two buttons in the upper right corner in [1]). I'm not
yet entirely sure what the best way to handle the audio one (in the middle)
is (whether it's best to handle the key-down or the key-up event, and what
scancode to use), I would appreciate input on that.
Regards,
Danny
[1] http://www.tomshw.it/files/2012/08/collezioni/1752/32067_b.jpg
Danny Baumann (1):
dell-wmi: Add support for keys present on Inspiron 15R SE.
drivers/platform/x86/dell-wmi.c | 9 +++++++++
1 file changed, 9 insertions(+)
--
1.8.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] dell-wmi: Add support for keys present on Inspiron 15R SE.
2013-03-26 11:36 [PATCH 0/1] dell-wmi: Add support for keys present on Inspiron 15R SE Danny Baumann
@ 2013-03-26 11:36 ` Danny Baumann
0 siblings, 0 replies; 2+ messages in thread
From: Danny Baumann @ 2013-03-26 11:36 UTC (permalink / raw)
To: Matthew Garrett; +Cc: platform-driver-x86, linux-kernel, Danny Baumann
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-26 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 11:36 [PATCH 0/1] dell-wmi: Add support for keys present on Inspiron 15R SE Danny Baumann
2013-03-26 11:36 ` [PATCH 1/1] " Danny Baumann
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®