* [PATCH] platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys
@ 2024-11-02 18:31 Renato Caldas
2024-11-04 10:46 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Renato Caldas @ 2024-11-02 18:31 UTC (permalink / raw)
To: platform-driver-x86; +Cc: Ike Panhc, Renato Caldas
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@calgera.com>
---
drivers/platform/x86/ideapad-laptop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index c64dfc56651d..c908f52ed717 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -1294,6 +1294,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 },
};
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys
2024-11-02 18:31 [PATCH] platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys Renato Caldas
@ 2024-11-04 10:46 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2024-11-04 10:46 UTC (permalink / raw)
To: Renato Caldas, platform-driver-x86; +Cc: Ike Panhc
Hi,
On 2-Nov-24 7:31 PM, Renato Caldas wrote:
> 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@calgera.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
I will include this patch in my next fixes pull-req to Linus
for the current kernel development cycle.
Regards,
Hans
> ---
> drivers/platform/x86/ideapad-laptop.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
> index c64dfc56651d..c908f52ed717 100644
> --- a/drivers/platform/x86/ideapad-laptop.c
> +++ b/drivers/platform/x86/ideapad-laptop.c
> @@ -1294,6 +1294,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 },
> };
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-04 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-02 18:31 [PATCH] platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys Renato Caldas
2024-11-04 10:46 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox