Re: [PATCH v4 1/2] Input: Add a Kconfig to emulate KEY_SCREENLOCK with META + L

From: Mario Limonciello
Date: Sat Apr 26 2025 - 19:45:05 EST




On 4/26/25 13:41, Pavel Machek wrote:
Hi!

In the PC industry KEY_SCREENLOCK isn't used as frequently as it used
to be. Modern versions of Windows [1], GNOME and KDE support "META" + "L"
to lock the screen. Modern hardware [2] also sends this sequence of
events for keys with a silkscreen for screen lock.

Introduced a new Kconfig option that will change KEY_SCREENLOCK when
emitted by driver to META + L.

Fix gnome and kde, do not break kernel...

I'm sorry; fix them to do what exactly? Switch to KEY_SCREENLOCK?

That's going to break modern hardware lockscreen keys. They've all
obviously moved to META+L because that's what hardware today uses.

Gnome / KDE should accept either META+L _or_ KEY_SCREENLOCK to do the
screen locking, no?


This was actually the first path I looked down before I even started the kernel patch direction for this problem.

GNOME doesn't support assigning more than one shortcut key for an action.