Skip to content

Commit a799095

Browse files
Wer-Wolfjwrdegoede
authored andcommitted
platform/x86: dell-wmi: Ignore suspend notifications
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>
1 parent 48771da commit a799095

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/platform/x86/dell/dell-wmi-base.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,15 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
264264
/*Speaker Mute*/
265265
{ KE_KEY, 0x109, { KEY_MUTE} },
266266

267+
/* S2Idle screen off */
268+
{ KE_IGNORE, 0x120, { KEY_RESERVED }},
269+
270+
/* Leaving S4 or S2Idle suspend */
271+
{ KE_IGNORE, 0x130, { KEY_RESERVED }},
272+
273+
/* Entering S2Idle suspend */
274+
{ KE_IGNORE, 0x140, { KEY_RESERVED }},
275+
267276
/* Mic mute */
268277
{ KE_KEY, 0x150, { KEY_MICMUTE } },
269278

0 commit comments

Comments
 (0)