platform/x86: asus-nb-wmi: Ignore spurious 0xe5 events on GU605MY
PATCH 1/1 platform/x86: asus-nb-wmi: Ignore spurious 0xe5 events on GU605MY
The ASUS ROG Zephyrus G16 GU605MY periodically emits an unrecognized WMI event (0xe5), approximately every 12 seconds.
The event is reported as KEY_UNKNOWN through the Asus WMI hotkeys input device. When the session is locked, it causes both the internal display and an external monitor connected through a Thunderbolt dock to wake up repeatedly.
Add a DMI-specific quirk to suppress this event on the GU605MY without affecting other ASUS notebook models.
Ignoring the event was first verified on a 7.2.7-based OGC kernel. The DMI-specific quirk was subsequently built against 7.2.8-ogc5 and tested on 7.2.9-ogc2 and 7.2.9-ogc4. On both 7.2.9 variants, the DMI match was confirmed and the unknown 0xe5 event messages disappeared.
--- drivers/platform/x86/asus-nb-wmi.c | 17 +++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 2 files changed, 18 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +17 -0
@@ -150,6 +150,10 @@ static struct quirk_entry quirk_asus_zenbook_duo_kbd = { .key_wlan_event = ASUS_WMI_KEY_IGNORE, }; +static struct quirk_entry quirk_asus_gu605my = { + .ignore_e5_wmi_event = true, +}; +static struct quirk_entry quirk_asus_z13 = { .key_wlan_event =ASUS_WMI_KEY_ARMOURY , .tablet_switch_mode = asus_wmi_kbd_dock_devid,
@@ -562,6 +566,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS ROG Zephyrus G16 GU605MY", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "ROG Zephyrus G16 GU605MY_GU605MY"), + }, + .driver_data = &quirk_asus_gu605my, + }, {}, };
@@ -690,6 +703,10 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,if (quirks->key_wlan_event) *code = quirks->key_wlan_event;break ; +case 0xE5 : +if (quirks->ignore_e5_wmi_event) + *code =ASUS_WMI_KEY_IGNORE ; +break ; } }
drivers/platform/x86/asus-wmi.h +1 -0
@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool ignore_e5_wmi_event;int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
Signature · 1 line
2.56.0
Denis Benato
maintainerQuoted 8 lines · Evgeny Volferts
The ASUS ROG Zephyrus G16 GU605MY periodically emits an unrecognized WMI event (
0xe5), approximately every 12 seconds.The event is reported as
KEY_UNKNOWNthrough the Asus WMI hotkeys input device. When the session is locked, it causes both the internal display and an external monitor connected through a Thunderbolt dock to wake up repeatedly.
Quoted 8 lines
Add a DMI-specific quirk to suppress this event on the GU605MY without affecting other ASUS notebook models.
Ignoring the event was first verified on a 7.2.7-based OGC kernel. The DMI-specific quirk was subsequently built against 7.2.8-ogc5 and tested on 7.2.9-ogc2 and 7.2.9-ogc4. On both 7.2.9 variants, the DMI match was confirmed and the unknown
0xe5event messages disappeared.
Hi Evgeny,
Thank you for your work!
I am thinking that a quirk with e5 in the name is a bit overly specific...
That code has never been handled and is just the EC repeating some settings.
I am thinking that perhaps the best thing to do is just create a case 0xE5 that simply does the ignore with no quirks check and a nice comment outlining why it is done.
I don't see asus repurposing that for something else honestly so it should be future-proof enough and will potentially avoid this to other models as well.
On the other end it would be cool to know what that really is telling us...
If you don't come up with an answer I would defer to Ilpo whether preferring reducing quirks or keeping the symmetry within that key_filter function.
I am fine either way.
Best regards,
Denis Benato
Quoted 60 lines
Signed-off-by Evgeny Volferts <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 17 +++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 2 files changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +17
-0@@ -150,6 +150,10 @@ static struct quirk_entry quirk_asus_zenbook_duo_kbd = { .key_wlan_event = ASUS_WMI_KEY_IGNORE, }; +static struct quirk_entry quirk_asus_gu605my = { + .ignore_e5_wmi_event = true, +}; +static struct quirk_entry quirk_asus_z13 = { .key_wlan_event =ASUS_WMI_KEY_ARMOURY , .tablet_switch_mode = asus_wmi_kbd_dock_devid,@@ -562,6 +566,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS ROG Zephyrus G16 GU605MY", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "ROG Zephyrus G16 GU605MY_GU605MY"), + }, + .driver_data = &quirk_asus_gu605my, + }, {}, };@@ -690,6 +703,10 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,if (quirks->key_wlan_event) *code = quirks->key_wlan_event;break ; +case 0xE5 : +if (quirks->ignore_e5_wmi_event) + *code =ASUS_WMI_KEY_IGNORE ; +break ; } }drivers/platform/x86/asus-wmi.h +1
-0@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool ignore_e5_wmi_event;int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
Quoted 5 lines · Denis Benato
I am thinking that a quirk with e5 in the name is a bit overly specific...
I am thinking that perhaps the best thing to do is just create a case
0xE5that simply does the ignore with no quirks check and a nice comment outlining why it is done.
Hi Denis,
Thank you for the review!
I agree that a DMI-specific quirk is probably unnecessary here, especially since the same event has been observed on other ASUS models.
I initially tested a global KE_IGNORE entry for 0xE5 on my GU605MY with a 7.2.7-based kernel, and it successfully stopped the repeated display wakeups.
I also noticed the related patch series from Seyed Mohammad Mahdi Hosseini, which proposes the same global KE_IGNORE approach:
https://lore.kernel.org/platform-driver-x86/[email protected]/
Since my patch was submitted first, I would be happy to prepare a v2 using the global KE_IGNORE approach, incorporating your feedback.
Would you prefer that I submit a v2, or should we wait for Ilpo's opinion on how to handle the overlapping submissions?
Best regards,
Evgeny
С уважением, Евгений.
+7 (926) 607-70-19
https://t.me/mreugene
Quoted 106 lines · Denis Benato
Quoted 8 lines · Evgeny Volferts
The ASUS ROG Zephyrus G16 GU605MY periodically emits an unrecognized WMI event (
0xe5), approximately every 12 seconds.The event is reported as
KEY_UNKNOWNthrough the Asus WMI hotkeys input device. When the session is locked, it causes both the internal display and an external monitor connected through a Thunderbolt dock to wake up repeatedly.Quoted 8 lines
Add a DMI-specific quirk to suppress this event on the GU605MY without affecting other ASUS notebook models.
Ignoring the event was first verified on a 7.2.7-based OGC kernel. The DMI-specific quirk was subsequently built against 7.2.8-ogc5 and tested on 7.2.9-ogc2 and 7.2.9-ogc4. On both 7.2.9 variants, the DMI match was confirmed and the unknown
0xe5event messages disappeared.Hi Evgeny,
Thank you for your work!
I am thinking that a quirk with e5 in the name is a bit overly specific...
That code has never been handled and is just the EC repeating some settings.
I am thinking that perhaps the best thing to do is just create a case
0xE5that simply does the ignore with no quirks check and a nice comment outlining why it is done.I don't see asus repurposing that for something else honestly so it should be future-proof enough and will potentially avoid this to other models as well.
On the other end it would be cool to know what that really is telling us...
If you don't come up with an answer I would defer to Ilpo whether preferring reducing quirks or keeping the symmetry within that
key_filterfunction.I am fine either way.
Best regards,
Denis BenatoQuoted 60 lines
Signed-off-by Evgeny Volferts <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 17 +++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 2 files changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +17
-0@@ -150,6 +150,10 @@ static struct quirk_entry quirk_asus_zenbook_duo_kbd = { .key_wlan_event = ASUS_WMI_KEY_IGNORE, }; +static struct quirk_entry quirk_asus_gu605my = { + .ignore_e5_wmi_event = true, +}; +static struct quirk_entry quirk_asus_z13 = { .key_wlan_event =ASUS_WMI_KEY_ARMOURY , .tablet_switch_mode = asus_wmi_kbd_dock_devid,@@ -562,6 +566,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS ROG Zephyrus G16 GU605MY", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "ROG Zephyrus G16 GU605MY_GU605MY"), + }, + .driver_data = &quirk_asus_gu605my, + }, {}, };@@ -690,6 +703,10 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,if (quirks->key_wlan_event) *code = quirks->key_wlan_event;break ; +case 0xE5 : +if (quirks->ignore_e5_wmi_event) + *code =ASUS_WMI_KEY_IGNORE ; +break ; } }drivers/platform/x86/asus-wmi.h +1
-0@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool ignore_e5_wmi_event;int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
Quoted 7 lines · Evgeny Volferts
I also noticed the related patch series from Seyed Mohammad Mahdi Hosseini, which proposes the same global
KE_IGNOREapproach:https://lore.kernel.org/platform-driver-x86/[email protected]/
Since my patch was submitted first, I would be happy to prepare a v2 using the global
KE_IGNOREapproach, incorporating your feedback.
Hi Evgeny,
Thanks for pointing to my series. Its patch 1 is the global ignore Denis suggested, a single KE_IGNORE entry for 0xE5 in the keymap:
https://lore.kernel.org/r/d3871d83ee3f5eea3900d8bc0da1de764a8fc2ec.1791672579.git.i@smmh.dev
I am fine with either version going in, your v2 or my patch 1, whichever Ilpo and Denis prefer to take.
Patch 2 of my series (0x4F, Fn+Windows) does not depend on 0xE5 and applies on its own either way.
Best regards,
Seyed Mohammad Mahdi Hosseini
Ilpo Järvinen
maintainerQuoted 35 lines · Denis Benato
Quoted 8 lines · Evgeny Volferts
The ASUS ROG Zephyrus G16 GU605MY periodically emits an unrecognized WMI event (
0xe5), approximately every 12 seconds.The event is reported as
KEY_UNKNOWNthrough the Asus WMI hotkeys input device. When the session is locked, it causes both the internal display and an external monitor connected through a Thunderbolt dock to wake up repeatedly.Quoted 8 lines
Add a DMI-specific quirk to suppress this event on the GU605MY without affecting other ASUS notebook models.
Ignoring the event was first verified on a 7.2.7-based OGC kernel. The DMI-specific quirk was subsequently built against 7.2.8-ogc5 and tested on 7.2.9-ogc2 and 7.2.9-ogc4. On both 7.2.9 variants, the DMI match was confirmed and the unknown
0xe5event messages disappeared.Hi Evgeny,
Thank you for your work!
I am thinking that a quirk with e5 in the name is a bit overly specific...
That code has never been handled and is just the EC repeating some settings.
I am thinking that perhaps the best thing to do is just create a case
0xE5that simply does the ignore with no quirks check and a nice comment outlining why it is done.I don't see asus repurposing that for something else honestly so it should be future-proof enough and will potentially avoid this to other models as well.
Quoted 6 lines
On the other end it would be cool to know what that really is telling us...
If you don't come up with an answer I would defer to Ilpo whether preferring reducing quirks or keeping the symmetry within that
key_filterfunction.I am fine either way.
Don't we need to touch the code anyway if the code is repurposed, so having this behind a quirk doesn't really win us anything over just ignoring it for any model.
Signature · 1 line
i.
Quoted 64 lines
Best regards,
Denis BenatoQuoted 60 lines
Signed-off-by Evgeny Volferts <[email protected]>--- drivers/platform/x86/asus-nb-wmi.c | 17 +++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 + 2 files changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +17
-0@@ -150,6 +150,10 @@ static struct quirk_entry quirk_asus_zenbook_duo_kbd = { .key_wlan_event = ASUS_WMI_KEY_IGNORE, }; +static struct quirk_entry quirk_asus_gu605my = { + .ignore_e5_wmi_event = true, +}; +static struct quirk_entry quirk_asus_z13 = { .key_wlan_event =ASUS_WMI_KEY_ARMOURY , .tablet_switch_mode = asus_wmi_kbd_dock_devid,@@ -562,6 +566,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS ROG Zephyrus G16 GU605MY", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "ROG Zephyrus G16 GU605MY_GU605MY"), + }, + .driver_data = &quirk_asus_gu605my, + }, {}, };@@ -690,6 +703,10 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,if (quirks->key_wlan_event) *code = quirks->key_wlan_event;break ; +case 0xE5 : +if (quirks->ignore_e5_wmi_event) + *code =ASUS_WMI_KEY_IGNORE ; +break ; } }drivers/platform/x86/asus-wmi.h +1
-0@@ -41,6 +41,7 @@ struct quirk_entry {bool wmi_force_als_set;bool wmi_ignore_fan;bool filter_i8042_e1_extended_codes; +bool ignore_e5_wmi_event;int key_wlan_event;enum asus_wmi_tablet_switch_mode tablet_switch_mode;int wapf;
Denis Benato
maintainer20 ott 2026 13:12:11 Ilpo Järvinen <[email protected]>:
Quoted 39 lines · Denis Benato
Quoted 38 lines · Evgeny Volferts
Quoted 8 lines
The ASUS ROG Zephyrus G16 GU605MY periodically emits an unrecognized WMI event (
0xe5), approximately every 12 seconds.The event is reported as
KEY_UNKNOWNthrough the Asus WMI hotkeys input device. When the session is locked, it causes both the internal display and an external monitor connected through a Thunderbolt dock to wake up repeatedly.Quoted 8 lines
Add a DMI-specific quirk to suppress this event on the GU605MY without affecting other ASUS notebook models.
Ignoring the event was first verified on a 7.2.7-based OGC kernel. The DMI-specific quirk was subsequently built against 7.2.8-ogc5 and tested on 7.2.9-ogc2 and 7.2.9-ogc4. On both 7.2.9 variants, the DMI match was confirmed and the unknown
0xe5event messages disappeared.Hi Evgeny,
Thank you for your work!
I am thinking that a quirk with e5 in the name is a bit overly specific...
That code has never been handled and is just the EC repeating some settings.
I am thinking that perhaps the best thing to do is just create a case
0xE5that simply does the ignore with no quirks check and a nice comment outlining why it is done.I don't see asus repurposing that for something else honestly so it should be future-proof enough and will potentially avoid this to other models as well.
On the other end it would be cool to know what that really is telling us...
Quoted 9 lines
Quoted 4 lines
If you don't come up with an answer I would defer to Ilpo whether preferring reducing quirks or keeping the symmetry within that
key_filterfunction.I am fine either way.
Don't we need to touch the code anyway if the code is repurposed, so having this behind a quirk doesn't really win us anything over just ignoring it for any model.
Yeah, I expressed myself poorly: my reasoning was more like dev-oriented: if a feature doesn't work at all but a dmesg error appears then it's super easy to spot it... While if nothing happens that complicates things... And I like when the driver tells me "ehi, fill this TODO" / "complete this part".
Quoted 67 lines
--
i.Quoted 64 lines
Best regards,
Denis BenatoQuoted 60 lines
Signed-off-by Evgeny Volferts <[email protected]>---
drivers/platform/x86/asus-nb-wmi.c| 17 +++++++++++++++++ drivers/platform/x86/asus-wmi.h | 1 +2 files changed, 18 insertions(+)drivers/platform/x86/asus-nb-wmi.c +17
-0@@ -150,6 +150,10 @@ static struct quirk_entry quirk_asus_zenbook_duo_kbd = { .key_wlan_event = ASUS_WMI_KEY_IGNORE, }; +static struct quirk_entry quirk_asus_gu605my = { + .ignore_e5_wmi_event = true, +}; +static struct quirk_entry quirk_asus_z13 = { .key_wlan_event = ASUS_WMI_KEY_ARMOURY, .tablet_switch_mode = asus_wmi_kbd_dock_devid,@@ -562,6 +566,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_z13, }, + { + .callback = dmi_matched, + .ident = "ASUS ROG Zephyrus G16 GU605MY", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "ROG Zephyrus G16 GU605MY_GU605MY"), + }, + .driver_data = &quirk_asus_gu605my, + }, {}, };@@ -690,6 +703,10 @@ static void asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code, if (quirks->key_wlan_event) *code = quirks->key_wlan_event; break; + case 0xE5: + if (quirks->ignore_e5_wmi_event) + *code = ASUS_WMI_KEY_IGNORE; + break; } }drivers/platform/x86/asus-wmi.h +1
-0@@ -41,6 +41,7 @@ struct quirk_entry { bool wmi_force_als_set; bool wmi_ignore_fan; bool filter_i8042_e1_extended_codes; + bool ignore_e5_wmi_event; int key_wlan_event; enum asus_wmi_tablet_switch_mode tablet_switch_mode; int wapf;
PATCH v2 1/1 platform/x86: asus-nb-wmi: Ignore spurious 0xe5 events
In reply to Evgeny VolfertsSome ASUS laptops periodically emit WMI event 0xe5, which is not associated with a supported key or action.
On the ROG Zephyrus G16 GU605MY, this event occurs approximately every 12 seconds and is reported as KEY_UNKNOWN. When the session is locked, it repeatedly wakes both the internal display and an external monitor connected through a Thunderbolt dock.
Ignore event 0xe5 globally to prevent these spurious input events. The same event has also been observed on other ASUS laptop models.
---
Changes in v2:
- Replace the GU605MY-specific DMI quirk with a global KE_IGNORE entry for event 0xE5, following review feedback.
- Remove the DMI quirk and associated key filter logic.
A similar global fix was independently submitted by Seyed Mohammad Mahdi Hosseini:
https://lore.kernel.org/r/d3871d83ee3f5eea3900d8bc0da1de764a8fc2ec.1791672579.git.i@smmh.dev
drivers/platform/x86/asus-nb-wmi.c | 1 + 1 file changed, 1 insertion(+)
drivers/platform/x86/asus-nb-wmi.c +1 -0
@@ -662,6 +662,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { { KE_KEY, 0xCB, { KEY_F14 } }, /* Fn+noise-cancel */ { KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */ { KE_IGNORE, 0xCF, }, /* AC mode */ + { KE_IGNORE, 0xE5, }, /* Periodic EC notification */ { KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */ { KE_KEY, 0xBD, { KEY_PROG2 } }, /* Lid flip action on ROG xflow laptops */ { KE_KEY, ASUS_WMI_KEY_ARMOURY, { KEY_PROG3 } },
Signature · 1 line
2.56.0