All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 220566] New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key
@ 2025-09-11 12:20 bugzilla-daemon
  2025-09-11 13:18 ` [Bug 220566] " bugzilla-daemon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2025-09-11 12:20 UTC (permalink / raw)
  To: platform-driver-x86

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: drivers_platform_x86@kernel-bugs.osdl.org
          Reporter: tomashnyk@gmail.com
        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.

-- 
You may reply to this email to add a comment.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key
  2025-09-11 12:20 [Bug 220566] New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key bugzilla-daemon
@ 2025-09-11 13:18 ` bugzilla-daemon
  2025-09-11 14:20 ` bugzilla-daemon
  2026-02-10 11:03 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2025-09-11 13:18 UTC (permalink / raw)
  To: platform-driver-x86

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

Hans de Goede (hansg@kernel.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hansg@kernel.org

--- Comment #1 from Hans de Goede (hansg@kernel.org) ---
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?

-- 
You may reply to this email to add a comment.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key
  2025-09-11 12:20 [Bug 220566] New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key bugzilla-daemon
  2025-09-11 13:18 ` [Bug 220566] " bugzilla-daemon
@ 2025-09-11 14:20 ` bugzilla-daemon
  2026-02-10 11:03 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2025-09-11 14:20 UTC (permalink / raw)
  To: platform-driver-x86

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

--- Comment #2 from Tomáš Hnyk (tomashnyk@gmail.com) ---
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/1757599473382.2879968666.2275695113@gmail.com/#r

-- 
You may reply to this email to add a comment.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 220566] Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key
  2025-09-11 12:20 [Bug 220566] New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key bugzilla-daemon
  2025-09-11 13:18 ` [Bug 220566] " bugzilla-daemon
  2025-09-11 14:20 ` bugzilla-daemon
@ 2026-02-10 11:03 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2026-02-10 11:03 UTC (permalink / raw)
  To: platform-driver-x86

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

Tomáš Hnyk (tomashnyk@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #3 from Tomáš Hnyk (tomashnyk@gmail.com) ---
My patch was accepted and released in 6.19, so closing this.

-- 
You may reply to this email to add a comment.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-10 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-11 12:20 [Bug 220566] New: Lenovo Ideapad laptops wrongly assign "Cut" intstead of "Selective_screenshot" to the corresponding hardware key bugzilla-daemon
2025-09-11 13:18 ` [Bug 220566] " bugzilla-daemon
2025-09-11 14:20 ` bugzilla-daemon
2026-02-10 11:03 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.