[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241015084043.f2yzv4j7rvf6kajf@pali>
Date: Tue, 15 Oct 2024 10:40:43 +0200
From: Pali Rohár <pali@...nel.org>
To: Armin Wolf <W_Armin@....de>
Cc: hdegoede@...hat.com, ilpo.jarvinen@...ux.intel.com,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
siddharth.manthan@...il.com
Subject: Re: [PATCH] platform/x86: dell-wmi: Ignore suspend notifications
On Tuesday 15 October 2024 00:05:29 Armin Wolf wrote:
> Some machines like the Dell G15 5155 emit WMI events when
> suspending/resuming. Ignore those WMI events.
>
> Tested-by: siddharth.manthan@...il.com
> Signed-off-by: Armin Wolf <W_Armin@....de>
Looks good,
Acked-by: Pali Rohár <pali@...nel.org>
> ---
> For some reason mjg59@...f.ucam.org causes a local error in processing.
> ---
> drivers/platform/x86/dell/dell-wmi-base.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/platform/x86/dell/dell-wmi-base.c b/drivers/platform/x86/dell/dell-wmi-base.c
> index 502783a7adb1..24fd7ffadda9 100644
> --- a/drivers/platform/x86/dell/dell-wmi-base.c
> +++ b/drivers/platform/x86/dell/dell-wmi-base.c
> @@ -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 } },
>
> --
> 2.39.5
>
Powered by blists - more mailing lists