summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavon John Lukose <navonjohnlukose@gmail.com>2026-09-14 19:12:16 +0530
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-09-16 02:18:28 +0300
commit995b085f0e287fcab7075d635580dcf436cc8bab (patch)
tree55374d7136c7cbbcaedbbac9ad5831d4791f7dda
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-995b085f0e287fcab7075d635580dcf436cc8bab.tar.gz
linux-next-995b085f0e287fcab7075d635580dcf436cc8bab.zip
platform/x86: ideapad-laptop: Add Yoga Pro 7 14IAH10 Mode key
The F9 "Mode" key emits WMI fn-key event 0x46, which the keymap does not cover, so it reaches userspace as KEY_UNKNOWN and cannot be remapped from there. Under Windows it opens a performance profile chooser. The Fn+Q button already cycles platform_profile through ideapad_check_special_buttons(), so map 0x46 to KEY_PROG4 as a user-assignable key rather than cycling the profile a second way. Signed-off-by: Navon John Lukose <navonjohnlukose@gmail.com> Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Link: https://patch.msgid.link/20260914134216.1295740-1-navonjohnlukose@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
-rw-r--r--drivers/platform/x86/lenovo/ideapad-laptop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index 8213524504ee..35c13d98b989 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -1360,6 +1360,8 @@ static const struct key_entry ideapad_keymap[] = {
{ KE_KEY, 0x45 | IDEAPAD_WMI_KEY, { KEY_PROG3 } },
/* Performance toggle also Fn+Q, handled inside ideapad_wmi_notify() */
{ KE_KEY, 0x3d | IDEAPAD_WMI_KEY, { KEY_PROG4 } },
+ /* Mode, opens a profile chooser; the Fn+Q button cycles the profile */
+ { KE_KEY, 0x46 | IDEAPAD_WMI_KEY, { KEY_PROG4 } },
/* shift + prtsc */
{ KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } },
{ KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } },