Skip to content

Commit

Permalink
dell-wmi: Add a WMI event code for display on/off
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Hung authored and Darren Hart committed Jun 21, 2016
1 parent e075b3c commit ab9bb11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/platform/x86/dell-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }, */

Expand Down

0 comments on commit ab9bb11

Please sign in to comment.