Patch "platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     platform-x86-ideapad-laptop-add-missing-ideapad-pro-.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a43b3d9cdfae3af19dd2e0ba2a16f9cbd808f0e9
Author: Renato Caldas <renato@xxxxxxxxxxx>
Date:   Sat Nov 2 18:31:16 2024 +0000

    platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys
    
    [ Upstream commit 36e66be874a7ea9d28fb9757629899a8449b8748 ]
    
    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 <renato@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20241102183116.30142-1-renato@xxxxxxxxxxx
    Reviewed-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index b58df617d4fda..2fde38f506508 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -1159,6 +1159,9 @@ static const struct key_entry ideapad_keymap[] = {
 	{ KE_KEY,	0x27 | IDEAPAD_WMI_KEY, { KEY_HELP } },
 	/* Refresh Rate Toggle */
 	{ KE_KEY,	0x0a | IDEAPAD_WMI_KEY, { KEY_REFRESH_RATE_TOGGLE } },
+	/* Specific to some newer models */
+	{ KE_KEY,	0x3e | IDEAPAD_WMI_KEY, { KEY_MICMUTE } },
+	{ KE_KEY,	0x3f | IDEAPAD_WMI_KEY, { KEY_RFKILL } },
 
 	{ KE_END },
 };




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux