]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
platform/x86: asus-wmi: Re-add extra keys to ignore_key_wlan quirk
authorAntheas Kapenekakis <lkml@antheas.dev>
Tue, 16 Sep 2025 07:28:18 +0000 (09:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:53 +0000 (11:16 +0200)
commit 225d1ee0f5ba3218d1814d36564fdb5f37b50474 upstream.

It turns out that the dual screen models use 0x5E for attaching and
detaching the keyboard instead of 0x5F. So, re-add the codes by
reverting commit cf3940ac737d ("platform/x86: asus-wmi: Remove extra
keys from ignore_key_wlan quirk"). For our future reference, add a
comment next to 0x5E indicating that it is used for that purpose.

Fixes: cf3940ac737d ("platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk")
Reported-by: Rahul Chandra <rahul@chandra.net>
Closes: https://lore.kernel.org/all/10020-68c90c80-d-4ac6c580@106290038/
Cc: stable@kernel.org
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://patch.msgid.link/20250916072818.196462-1-lkml@antheas.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/asus-nb-wmi.c

index 6928bb6ae0f3c83169ec88bf179d0426fd4c0bc5..ce177c379941400b58d8c73c18edc599c545db2f 100644 (file)
@@ -670,6 +670,8 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,
                if (atkbd_reports_vol_keys)
                        *code = ASUS_WMI_KEY_IGNORE;
                break;
+       case 0x5D: /* Wireless console Toggle */
+       case 0x5E: /* Wireless console Enable / Keyboard Attach, Detach */
        case 0x5F: /* Wireless console Disable / Special Key */
                if (quirks->key_wlan_event)
                        *code = quirks->key_wlan_event;