summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@canonical.com>2016-06-17 05:44:27 +0200
committerDarren Hart <dvhart@linux.intel.com>2016-06-21 18:24:01 +0200
commitab9bb11ccbaa9e84be2534b677fe5350c2cc2014 (patch)
tree006fbaf5ceacca557354a38e1153d8a0156d20c9
parentdell-wmi: Generate one sparse keymap for all machines (diff)
downloadlinux-ab9bb11ccbaa9e84be2534b677fe5350c2cc2014.tar.xz
linux-ab9bb11ccbaa9e84be2534b677fe5350c2cc2014.zip
dell-wmi: Add a WMI event code for display on/off
Some new Dell AIO systems have a button that generates a WMI event to turn the LCD on/off. Signed-off-by: Alex Hung <alex.hung@canonical.com> Acked-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--drivers/platform/x86/dell-wmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index b8ad055078cf..d2bc092defd7 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -133,6 +133,9 @@ static const struct key_entry dell_wmi_keymap_type_0000[] __initconst = {
/* Audio panel key */
{ KE_IGNORE, 0xe026, { KEY_RESERVED } },
+ /* LCD Display On/Off Control key */
+ { KE_KEY, 0xe027, { KEY_DISPLAYTOGGLE } },
+
/* Untested, Multimedia key on Dell Vostro 3560 */
/* { KE_IGNORE, 0xe028, { KEY_RESERVED } }, */