Skip to content

Commit e9fba20

Browse files
Wer-Wolfij-intel
authored andcommitted
platform/x86: asus-nb-wmi: Ignore unknown event 0xCF
On the Asus X541UAK an unknown event 0xCF is emited when the charger is plugged in. This is caused by the following AML code: If (ACPS ()) { ACPF = One Local0 = 0x58 If (ATKP) { ^^^^ATKD.IANE (0xCF) } } Else { ACPF = Zero Local0 = 0x57 } Notify (AC0, 0x80) // Status Change If (ATKP) { ^^^^ATKD.IANE (Local0) } Sleep (0x64) PNOT () Sleep (0x0A) NBAT (0x80) Ignore the 0xCF event to silence the unknown event warning. Reported-by: Pau Espin Pedrol <pespin@espeweb.net> Closes: https://lore.kernel.org/platform-driver-x86/54d4860b-ec9c-4992-acf6-db3f90388293@espeweb.net Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20241123224700.18530-1-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent 25fb5f4 commit e9fba20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/x86/asus-nb-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
623623
{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
624624
{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
625625
{ KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */
626+
{ KE_IGNORE, 0xCF, }, /* AC mode */
626627
{ KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */
627628
{ KE_KEY, 0xBD, { KEY_PROG2 } }, /* Lid flip action on ROG xflow laptops */
628629
{ KE_END, 0},

0 commit comments

Comments
 (0)