[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <52DD4096.6020408@gmail.com>
Date: Mon, 20 Jan 2014 09:28:22 -0600
From: Souvik Banerjee <souvik1997@...il.com>
To: Matthew Garrett <mjg59@...f.ucam.org>, matthew.garrett@...ula.com,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] dell-wmi: Add KEY_SWITCHVIDEOMODE for Dell N4110.
This key is reported by the keyboard controller but also generates WMI
events. By adding it to the legacy keymap the WMI messages can be
silenced.
---
drivers/platform/x86/dell-wmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/x86/dell-wmi.c
b/drivers/platform/x86/dell-wmi.c
index 60e0900..72f6cc8 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -92,6 +92,9 @@ static const struct key_entry dell_wmi_legacy_keymap[]
__initconst = {
{ KE_IGNORE, 0xe025, { KEY_RESERVED } },
{ KE_IGNORE, 0xe026, { KEY_RESERVED } },
+ /* For laptops like the Dell Inspiron N4110 with a monitor hotkey */
+ { KE_KEY, 0xe027, { KEY_SWITCHVIDEOMODE } },
+
{ KE_IGNORE, 0xe02e, { KEY_VOLUMEDOWN } },
{ KE_IGNORE, 0xe030, { KEY_VOLUMEUP } },
{ KE_IGNORE, 0xe033, { KEY_KBDILLUMUP } },
--
1.8.5.3
View attachment "0001-dell-wmi-Add-KEY_SWITCHVIDEOMODE-for-Dell-N4110.patch" of type "text/x-patch" (1077 bytes)
Download attachment "signature.asc" of type "application/pgp-signature" (902 bytes)
Powered by blists - more mailing lists