Skip to content

Commit 04fd0f4

Browse files
rmscopsiff
authored andcommitted
platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys
[ Upsream commit 36e66be ] The scancodes for the Mic Mute and Airplane keys on the Ideapad Pro 5 (14AHP9 at least, probably the other variants too) are different and were not being picked up by the driver. This adds them to the keymap. Apart from what is already supported, the remaining fn keys are unfortunately producing windows-specific key-combos. Signed-off-by: Renato Caldas <[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]> [ Backport from v6.12 ] Reported-by: Qiongjie Wen <[email protected]> Signed-off-by: Yuan Feng <[email protected]> Signed-off-by: WangYuli <[email protected]>
1 parent ff978a2 commit 04fd0f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/platform/x86/ideapad-laptop.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,9 @@ static const struct key_entry ideapad_keymap[] = {
11021102
{ KE_KEY, 0x27 | IDEAPAD_WMI_KEY, { KEY_HELP } },
11031103
/* Refresh Rate Toggle */
11041104
{ KE_KEY, 0x0a | IDEAPAD_WMI_KEY, { KEY_DISPLAYTOGGLE } },
1105+
/* Specific to some newer models */
1106+
{ KE_KEY, 0x3e | IDEAPAD_WMI_KEY, { KEY_MICMUTE } },
1107+
{ KE_KEY, 0x3f | IDEAPAD_WMI_KEY, { KEY_RFKILL } },
11051108
/* Touchpad Toggle */
11061109
{ KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } },
11071110

0 commit comments

Comments
 (0)