Skip to contentSkip to conversation

New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key

Bug 220566 [email protected] 1 participant 4 messages Sep 11, 2025 – Feb 10 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=220566

Bug ID: 220566
Summary: Lenovo Ideapad laptops wrongly assign "Cut" intstead
of "Selective_screenshot" to the corresponding hardware key
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Platform_x86
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 308661
--> https://bugzilla.kernel.org/attachment.cgi?id=308661&action=edit
The key in question

Lenovo ideapad laptops have a key (picture attached) that as per official Lenovo documentation
(https://support.lenovo.com/au/en/documentation/SG10220/ref_hotkey_icons?language=en
) is supposed to mean this:

"Opens the Snipping tool. (Windows operating systems)"

Right now, as per line 1331 (
https://github.com/torvalds/linux/blob/master/drivers/platform/x86/lenovo/ideapad-laptop.c#L1331C1-L1332C1
) of linux/blob/master/drivers/platform/x86/lenovo/ideapad-laptop.c:

        { KE_KEY,   0x2d | IDEAPAD_WMI_KEY, { KEY_CUT } },

"Cut" is assigned (i.e. action usually triggered by CTRL+X).

I think your key is actually supposed to be Selective_screenshot (
https://github.com/torvalds/linux/blob/7aac71907bdea16e2754a782b9d9155449a9d49d/include/uapi/linux/input-event-codes.h#L675
) and is mislabeled.

Therefore the appropriate line should be:

        { KE_KEY,   0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } },

(note that on other Lenovo Laptops like for example some Thinkpads, this is already used, even though the physical icon on the screenshot looks a bit differently, see for example here:
https://download.lenovo.com//pccbbs/pubs/x1_extreme_p1_2nd_ug/html_en/index.html#t=en%2FUse_the_keyboard_shortcuts_(topic)_T0000709565.html&rhsearch=keyboard&rhhlterm=keyboard&rhsyns=%20
"Open the Snipping Tool program.")

It makes sense - this key is produced by pressing "FN+PRINT_SCREEN", so using "Cut" for it is odd.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key

https://bugzilla.kernel.org/show_bug.cgi?id=220566

Hans de Goede ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Hans de Goede ([email protected]) ---
I believe that you are right. Chances are KEY_CUT was selected in the past because it has a keycode < 248 where as KEY_SELECTIVE_SCREENSHOT is 0x27a .

And keycodes >= 248 do not work under X11.

We have slowly been moving all these to use the correct keycodes though, there are options to remap this in userspace if desired.

So yes you're right and this should be changed to KEY_SELECTIVE_SCREENSHOT .

Can you submit a patch to make this change?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220566

--- Comment #2 from Tomáš Hnyk ([email protected]) ---
This is my first time sending a kernel patch so I hope I did it correctly, I sent it to the mailing list here:
https://lore.kernel.org/platform-driver-x86/[email protected]/#r

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=220566

Tomáš Hnyk ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #3 from Tomáš Hnyk ([email protected]) --- My patch was accepted and released in 6.19, so closing this.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.