Skip to content

Commit

Permalink
platform/x86: dell-wmi: Ignore suspend notifications
Browse files Browse the repository at this point in the history
Some machines like the Dell G15 5155 emit WMI events when
suspending/resuming. Ignore those WMI events.

Tested-by: siddharth.manthan@gmail.com
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Acked-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20241014220529.397390-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
Wer-Wolf authored and jwrdegoede committed Oct 21, 2024
1 parent 48771da commit a799095
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/platform/x86/dell/dell-wmi-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,15 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
/*Speaker Mute*/
{ KE_KEY, 0x109, { KEY_MUTE} },

/* S2Idle screen off */
{ KE_IGNORE, 0x120, { KEY_RESERVED }},

/* Leaving S4 or S2Idle suspend */
{ KE_IGNORE, 0x130, { KEY_RESERVED }},

/* Entering S2Idle suspend */
{ KE_IGNORE, 0x140, { KEY_RESERVED }},

/* Mic mute */
{ KE_KEY, 0x150, { KEY_MICMUTE } },

Expand Down

0 comments on commit a799095

Please sign in to comment.