From: Hans de Goede <hansg@kernel.org>
To: "Tomáš Hnyk" <tomashnyk@gmail.com>, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] platform/x86: lenovo: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT for Ideapad laptops
Date: Thu, 11 Sep 2025 16:18:11 +0200 [thread overview]
Message-ID: <321a7ad0-03e1-4a73-a0b3-e9f9ecf2c7d5@kernel.org> (raw)
In-Reply-To: <1757599473382.2879968666.2275695113@gmail.com>
Hi,
On 11-Sep-25 4:13 PM, Tomáš Hnyk wrote:
> This key is produced by FN+PRINT_SCREEN and as per Lenovo documentation,
> it should be "Open the Snipping tool". This corresponds to
> KEY_SELECTIVE_SCRENSHOT, whose keycode is 0x27a. Previously, keycodes
> under 248 were preferred due to X11 limitations, so KEY_CUT was used.
> This is now being corrected.
>
> Signed-off-by: Tomáš Hnyk <tomashnyk@gmail.com>
> ---
> Fixes https://bugzilla.kernel.org/show_bug.cgi?id=220566
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hansg@kernel.org>
Regards,
Hans
> drivers/platform/x86/lenovo/ideapad-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
> index fcebfbaf0460..556d50fb7996 100644
> --- a/drivers/platform/x86/lenovo/ideapad-laptop.c
> +++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
> @@ -1328,7 +1328,7 @@ static const struct key_entry ideapad_keymap[] = {
> /* Performance toggle also Fn+Q, handled inside ideapad_wmi_notify() */
> { KE_KEY, 0x3d | IDEAPAD_WMI_KEY, { KEY_PROG4 } },
> /* shift + prtsc */
> - { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_CUT } },
> + { KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } },
> { KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } },
> { KE_KEY, 0x2a | IDEAPAD_WMI_KEY, { KEY_ROOT_MENU } },
>
next prev parent reply other threads:[~2025-09-11 14:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-11 14:13 [PATCH] platform/x86: lenovo: Reassign KEY_CUT to KEY_SELECTIVE_SCREENSHOT for Ideapad laptops Tomáš Hnyk
2025-09-11 14:18 ` Hans de Goede [this message]
2025-12-23 18:36 ` Tomáš Hnyk
2025-09-15 10:11 ` Ilpo Järvinen
2025-12-26 20:37 ` Tomáš Hnyk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=321a7ad0-03e1-4a73-a0b3-e9f9ecf2c7d5@kernel.org \
--to=hansg@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tomashnyk@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox