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

From: Pavel Machek
Date: Sun Apr 27 2025 - 02:10:51 EST


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.

So if I want to start calculator on meta+c on internal keyboard, and
have calculator button on USB keyboard, I'm out of luck?

Sounds that should be fixed :-).

Alternatively, you can just turn KEY_SCREENLOCK into META+L inside
Gnome.

BR,
Pavel
--
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, and Musk!

Attachment: signature.asc
Description: PGP signature