History

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.

Misaka19465 committed 4 years ago

Commit f56e6761 parent d40908f1 file · +2 −0Browse files

Showing the changes to drivers/platform (1 of 1 file). Show all

Unified · Split

drivers/platform/x86/asus-nb-wmi.c+2−0
@@ -522,6 +522,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { · 521 unmodified lines
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[] = { · 46 unmodified lines
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 } },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t