* [PATCH] platform/x86: lg-laptop: Fix input of super key
@ 2026-11-03 18:07 Armin Wolf
2026-11-17 22:32 ` Armin Wolf
2026-12-01 14:50 ` Ilpo Järvinen
0 siblings, 2 replies; 5+ messages in thread
From: Armin Wolf @ 2026-11-03 18:07 UTC (permalink / raw)
To: matan
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel,
helian.caumeil
From: Helian Caumeil <helian.caumeil@clever.cloud>
Some devices emit special event codes when the super key is pressed.
Mapping those events onto KEY_UNKNOWN by the sparse keymap seems to
confuse userspace, causing duplicated super key input events.
Prevent this by ignoring those event codes.
Signed-off-by: Helian Caumeil <helian.caumeil@clever.cloud>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222161
Co-developed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/platform/x86/lg-laptop.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c
index 36ad1e269443..49e3029d4b95 100644
--- a/drivers/platform/x86/lg-laptop.c
+++ b/drivers/platform/x86/lg-laptop.c
@@ -138,6 +138,10 @@ static const struct key_entry wmi_keymap[] = {
{ KE_IGNORE, 0x30010001, { KEY_UNKNOWN }},
/* Change fan mode */
{ KE_KEY, 0x30010051, { KEY_PERFORMANCE }},
+ /* Super key pressed */
+ { KE_IGNORE, 0x30020000, { KEY_LEFTMETA }},
+ /* Super key released */
+ { KE_IGNORE, 0x30020001, { KEY_LEFTMETA }},
/* Disable camera */
{ KE_KEY, 0x40020000, { KEY_CAMERA_ACCESS_TOGGLE }},
/* Mute microphone */
--
2.56.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] platform/x86: lg-laptop: Fix input of super key
2026-11-03 18:07 [PATCH] platform/x86: lg-laptop: Fix input of super key Armin Wolf
@ 2026-11-17 22:32 ` Armin Wolf
2026-12-01 14:50 ` Ilpo Järvinen
1 sibling, 0 replies; 5+ messages in thread
From: Armin Wolf @ 2026-11-17 22:32 UTC (permalink / raw)
To: matan
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel,
helian.caumeil
Am 03.11.26 um 19:07 schrieb Armin Wolf:
> From: Helian Caumeil <helian.caumeil@clever.cloud>
>
> Some devices emit special event codes when the super key is pressed.
> Mapping those events onto KEY_UNKNOWN by the sparse keymap seems to
> confuse userspace, causing duplicated super key input events.
>
> Prevent this by ignoring those event codes.
Any updates on this? More users have reported the same issue.
Thanks,
Armin Wolf
> Signed-off-by: Helian Caumeil <helian.caumeil@clever.cloud>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222161
> Co-developed-by: Armin Wolf <W_Armin@gmx.de>
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> drivers/platform/x86/lg-laptop.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c
> index 36ad1e269443..49e3029d4b95 100644
> --- a/drivers/platform/x86/lg-laptop.c
> +++ b/drivers/platform/x86/lg-laptop.c
> @@ -138,6 +138,10 @@ static const struct key_entry wmi_keymap[] = {
> { KE_IGNORE, 0x30010001, { KEY_UNKNOWN }},
> /* Change fan mode */
> { KE_KEY, 0x30010051, { KEY_PERFORMANCE }},
> + /* Super key pressed */
> + { KE_IGNORE, 0x30020000, { KEY_LEFTMETA }},
> + /* Super key released */
> + { KE_IGNORE, 0x30020001, { KEY_LEFTMETA }},
> /* Disable camera */
> { KE_KEY, 0x40020000, { KEY_CAMERA_ACCESS_TOGGLE }},
> /* Mute microphone */
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] platform/x86: lg-laptop: Fix input of super key
2026-11-03 18:07 [PATCH] platform/x86: lg-laptop: Fix input of super key Armin Wolf
2026-11-17 22:32 ` Armin Wolf
@ 2026-12-01 14:50 ` Ilpo Järvinen
2026-12-01 21:18 ` Armin Wolf
1 sibling, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2026-12-01 14:50 UTC (permalink / raw)
To: matan, Armin Wolf
Cc: hansg, platform-driver-x86, linux-kernel, helian.caumeil
On Tue, 03 Nov 2026 19:07:14 +0100, Armin Wolf wrote:
> Some devices emit special event codes when the super key is pressed.
> Mapping those events onto KEY_UNKNOWN by the sparse keymap seems to
> confuse userspace, causing duplicated super key input events.
>
> Prevent this by ignoring those event codes.
>
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.
The list of commits applied:
[1/1] platform/x86: lg-laptop: Fix input of super key
commit: 9e60bf3fb734f8de4eda159fe7d0bac465cb32d6
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] platform/x86: lg-laptop: Fix input of super key
2026-12-01 14:50 ` Ilpo Järvinen
@ 2026-12-01 21:18 ` Armin Wolf
2026-12-01 21:30 ` Ilpo Järvinen
0 siblings, 1 reply; 5+ messages in thread
From: Armin Wolf @ 2026-12-01 21:18 UTC (permalink / raw)
To: Ilpo Järvinen, matan
Cc: hansg, platform-driver-x86, linux-kernel, helian.caumeil
Am 01.12.26 um 15:50 schrieb Ilpo Järvinen:
> On Tue, 03 Nov 2026 19:07:14 +0100, Armin Wolf wrote:
>
>> Some devices emit special event codes when the super key is pressed.
>> Mapping those events onto KEY_UNKNOWN by the sparse keymap seems to
>> confuse userspace, causing duplicated super key input events.
>>
>> Prevent this by ignoring those event codes.
>>
>>
>> [...]
>
> Thank you for your contribution, it has been applied to my local
> review-ilpo-next branch. Note it will show up in the public
> platform-drivers-x86/review-ilpo-next branch only once I've pushed my
> local branch there, which might take a while.
>
> FYI [if applicable to your patch], as per Linus' policy change, also
> fixes are mostly routed through for-next unless the fix is for a
> commit introduced in the most recent cycle or is clearly a regression
> fix.
Thank you :)
Could you please route this commit thru the fixes branch? I think this
would be justified in this case because the underlying error causes a
regression in functionality (super key issues) on existing devices.
Thanks,
Armin Wolf
> The list of commits applied:
> [1/1] platform/x86: lg-laptop: Fix input of super key
> commit: 9e60bf3fb734f8de4eda159fe7d0bac465cb32d6
>
> --
> i.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] platform/x86: lg-laptop: Fix input of super key
2026-12-01 21:18 ` Armin Wolf
@ 2026-12-01 21:30 ` Ilpo Järvinen
0 siblings, 0 replies; 5+ messages in thread
From: Ilpo Järvinen @ 2026-12-01 21:30 UTC (permalink / raw)
To: Armin Wolf
Cc: matan, Hans de Goede, platform-driver-x86, LKML, helian.caumeil
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
On Tue, 1 Dec 2026, Armin Wolf wrote:
> Am 01.12.26 um 15:50 schrieb Ilpo Järvinen:
> > On Tue, 03 Nov 2026 19:07:14 +0100, Armin Wolf wrote:
> >
> > > Some devices emit special event codes when the super key is pressed.
> > > Mapping those events onto KEY_UNKNOWN by the sparse keymap seems to
> > > confuse userspace, causing duplicated super key input events.
> > >
> > > Prevent this by ignoring those event codes.
> > >
> > >
> > > [...]
> >
> > Thank you for your contribution, it has been applied to my local
> > review-ilpo-next branch. Note it will show up in the public
> > platform-drivers-x86/review-ilpo-next branch only once I've pushed my
> > local branch there, which might take a while.
> >
> > FYI [if applicable to your patch], as per Linus' policy change, also
> > fixes are mostly routed through for-next unless the fix is for a
> > commit introduced in the most recent cycle or is clearly a regression
> > fix.
>
> Thank you :)
>
> Could you please route this commit thru the fixes branch? I think this would
> be justified in this case because the underlying error causes a
> regression in functionality (super key issues) on existing devices.
Hi,
We're now at -rc5, so that would win approx 2 weeks depending on how slow
LKP is, doesn't seem a big difference.
--
i.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-01 21:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 18:07 [PATCH] platform/x86: lg-laptop: Fix input of super key Armin Wolf
2026-11-17 22:32 ` Armin Wolf
2026-12-01 14:50 ` Ilpo Järvinen
2026-12-01 21:18 ` Armin Wolf
2026-12-01 21:30 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox