Skip to content

Commit 362c1f2

Browse files
bno1jwrdegoede
authored andcommitted
platform/x86: asus-wmi: Ignore WMI events with codes 0x7B, 0xC0
On ASUS GU604V the key 0x7B is issued when the charger is connected or disconnected, and key 0xC0 is issued when an external display is connected or disconnected. This commit maps them to KE_IGNORE to slience kernel messages about unknown keys, such as: kernel: asus_wmi: Unknown key code 0x7b Signed-off-by: Alexandru Sorodoc <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 3d43f9f commit 362c1f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
555555
{ KE_KEY, 0x71, { KEY_F13 } }, /* General-purpose button */
556556
{ KE_IGNORE, 0x79, }, /* Charger type dectection notification */
557557
{ KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
558+
{ KE_IGNORE, 0x7B, }, /* Charger connect/disconnect notification */
558559
{ KE_KEY, 0x7c, { KEY_MICMUTE } },
559560
{ KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */
560561
{ KE_KEY, 0x7E, { KEY_BLUETOOTH } }, /* Bluetooth Disable */
@@ -584,6 +585,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
584585
{ KE_KEY, 0xAE, { KEY_FN_F5 } }, /* Fn+F5 fan mode on 2020+ */
585586
{ KE_KEY, 0xB3, { KEY_PROG4 } }, /* AURA */
586587
{ KE_KEY, 0xB5, { KEY_CALC } },
588+
{ KE_IGNORE, 0xC0, }, /* External display connect/disconnect notification */
587589
{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
588590
{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
589591
{ KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */

0 commit comments

Comments
 (0)