Skip to content

Commit f56e676

Browse files
Misaka19465jwrdegoede
authored andcommitted
platform/x86: asus-wmi: Add key mappings
On laptops like ASUS TUF Gaming A15, which have hotkeys to start Armoury Crate or AURA Sync, these hotkeys are unavailable. This patch add mappings for them. Signed-off-by: Misaka19465 <misaka19465@olddoctor.net> Link: https://lore.kernel.org/r/20220710113727.281634-1-misaka19465@olddoctor.net Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent d40908f commit f56e676

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
522522
{ KE_KEY, 0x31, { KEY_VOLUMEDOWN } },
523523
{ KE_KEY, 0x32, { KEY_MUTE } },
524524
{ KE_KEY, 0x35, { KEY_SCREENLOCK } },
525+
{ KE_KEY, 0x38, { KEY_PROG3 } }, /* Armoury Crate */
525526
{ KE_KEY, 0x40, { KEY_PREVIOUSSONG } },
526527
{ KE_KEY, 0x41, { KEY_NEXTSONG } },
527528
{ KE_KEY, 0x43, { KEY_STOPCD } }, /* Stop/Eject */
@@ -574,6 +575,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
574575
{ KE_KEY, 0xA5, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + TV + HDMI */
575576
{ KE_KEY, 0xA6, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV + HDMI */
576577
{ KE_KEY, 0xA7, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV + HDMI */
578+
{ KE_KEY, 0xB3, { KEY_PROG4 } }, /* AURA */
577579
{ KE_KEY, 0xB5, { KEY_CALC } },
578580
{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
579581
{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },

0 commit comments

Comments
 (0)