Skip to content

Commit 3c75dc4

Browse files
elenrilij-intel
authored andcommitted
platform/x86: asus-wmi: map more keys on ExpertBook B9
* there is a dedicated "noise cancel" key in top row, between mic mute and PrintScreen; it sends 0xCA when pressed by itself (mapped to F13), 0xCB with Fn (mapped to F14) * Fn+f sends 0x9D; it is not documented in the manual, but some web search results mention "asus intelligent performance"; mapped to FN_F Signed-off-by: Anton Khirnov <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 132bfcd commit 3c75dc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
632632
{ KE_KEY, 0x93, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV + DVI */
633633
{ KE_KEY, 0x95, { KEY_MEDIA } },
634634
{ KE_KEY, 0x99, { KEY_PHONE } }, /* Conflicts with fan mode switch */
635+
{ KE_KEY, 0X9D, { KEY_FN_F } },
635636
{ KE_KEY, 0xA0, { KEY_SWITCHVIDEOMODE } }, /* SDSP HDMI only */
636637
{ KE_KEY, 0xA1, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + HDMI */
637638
{ KE_KEY, 0xA2, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + HDMI */
@@ -646,6 +647,8 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
646647
{ KE_IGNORE, 0xC0, }, /* External display connect/disconnect notification */
647648
{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
648649
{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
650+
{ KE_KEY, 0xCA, { KEY_F13 } }, /* Noise cancelling on Expertbook B9 */
651+
{ KE_KEY, 0xCB, { KEY_F14 } }, /* Fn+noise-cancel */
649652
{ KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */
650653
{ KE_IGNORE, 0xCF, }, /* AC mode */
651654
{ KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */

0 commit comments

Comments
 (0)