mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marco Giunta <marco_giunta@outlook.it>
To: dcemin@nvidia.com
Cc: W_Armin@gmx.de, ciro.pedrini@gmail.com,
	derekjohn.clark@gmail.com, hansg@kernel.org, i@rong.moe,
	ilpo.jarvinen@linux.intel.com, ldemarchi@nvidia.com,
	linux-kernel@vger.kernel.org, marco_giunta@outlook.it,
	mpearson-lenovo@squebb.ca, platform-driver-x86@vger.kernel.org,
	xy-jackie@139.com
Subject: Re: [PATCH v5 4/4] platform: lenovo: wmi-fn-keys: ignore all Legion keyboard backlight events
Date: Thu,  3 Dec 2026 11:29:20 +0100	[thread overview]
Message-ID: <SN6PR19MB230393D4F637949EFFB6A2DBFC4B2@SN6PR19MB2303.namprd19.prod.outlook.com> (raw)
In-Reply-To: <20261203000251.1006053-5-dcemin@nvidia.com>

Hi David,

thanks for picking this up, and sorry for the late reply.

The patch looks correct to me, so if you prefer to keep it as is:

Reviewed-by: Marco Giunta <marco_giunta@outlook.it>

Alternatively, since the commit message currently reads a bit like a
second-hand report, and since I wrote these KE_IGNORE entries myself after
gathering the data with evtest on my 16AFR10H, I'm also happy to
co-sign the commit.

In that case something like this might read better:

    platform: lenovo: wmi-fn-keys: ignore all Legion keyboard backlight events

    On the Legion Pro 7 16AFR10H and 16IAX10H, the WMI events emitted
    by Fn+Up/Down and Fn+Space do not name a key, but encode the state
    that was reached: Fn+Up/Down report the new brightness level (0x18 off,
    0x19 low, 0x1a medium, 0x26 high), and Fn+Space reports the new lighting
    preset (0x20 to 0x25 for presets 1 to 6).

    Commit eb119fefaae6 ("platform/x86: ideapad-laptop: Ignore keyboard
    backlight hotkeys") ignored only 0x19, 0x1a and 0x21, so the other seven
    still reach userspace as KEY_UNKNOWN.

    The keyboard controller handles these keys itself and reports the
    brightness on its own HID interface, so none of these WMI events
    carries an action for the OS. Ignore all ten.

    Fixes: eb119fefaae6 ("platform/x86: ideapad-laptop: Ignore keyboard backlight hotkeys")
    Co-developed-by: Marco Giunta <marco_giunta@outlook.it>
    Signed-off-by: Marco Giunta <marco_giunta@outlook.it>
    Signed-off-by: David Cemin <dcemin@nvidia.com>

The message above is just a draft based on your current commit message,
so feel free to reword it, drop the Fixes: tag, or change anything else
as you see fit; what matters is that you have my consent for the
Co-developed-by and Signed-off-by should you go with this option.
I'm fine with either option, so pick whichever you and the maintainers
prefer.

Note that Ciro also planned to send these seven codes as a follow-up
on top of Ilpo's branch [1]; since your 4/4 already carries them and
Rong asked for it here to avoid conflicts, I guess Ciro can drop his.
Ciro, does that work for you? If so, a Tested-by from you on the 16IAX10H
(and/or a Reviewed-by, if you like) on this patch would be nice.

[1]: https://lore.kernel.org/platform-driver-x86/20261201-legion-lighting-rfc-v4-1-02acc82bc0b6@gmail.com/

Thanks,
Marco

  reply	other threads:[~2026-12-03 10:29 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 22:27 [RFC PATCH 0/3] platform: lenovo: architecture independent home for the Lenovo WMI drivers David Cemin
2026-11-13 22:27 ` [RFC PATCH 1/3] platform: lenovo: move the architecture independent WMI drivers out of x86 David Cemin
2026-11-15 21:50   ` Mark Pearson
2026-11-16  4:42     ` David Cemin
2026-11-16 16:59       ` Mark Pearson
2026-11-17  2:27     ` Jackie Dong
2026-11-13 22:27 ` [RFC PATCH 2/3] platform: lenovo: add WMI hotkeys driver David Cemin
2026-11-15 16:12   ` Armin Wolf
2026-11-16  4:42     ` David Cemin
2026-11-17  1:39       ` Armin Wolf
2026-11-16 10:55   ` Marco Giunta
2026-11-17  3:27   ` Jackie Dong
2026-11-19  2:29   ` David Cemin
2026-11-19 12:12     ` Jackie Dong
2026-11-13 22:27 ` [RFC PATCH 3/3] platform/x86: ideapad-laptop: do not bind the WMI event devices without the VPC David Cemin
2026-11-15 15:33 ` [RFC PATCH 0/3] platform: lenovo: architecture independent home for the Lenovo WMI drivers Hans de Goede
2026-11-15 16:02   ` Armin Wolf
2026-11-15 18:02     ` Hans de Goede
2026-11-15 20:10   ` Hans de Goede
2026-11-15 20:12     ` Hans de Goede
2026-11-15 21:48       ` Mark Pearson
2026-11-16  4:42       ` David Cemin
2026-11-19  2:27 ` [PATCH v2 " David Cemin
2026-11-19  2:27   ` [PATCH v2 1/3] platform: lenovo: move the architecture independent WMI drivers out of x86 David Cemin
2026-11-19 12:49     ` Rong Zhang
2026-11-19  2:27   ` [PATCH v2 2/3] platform: lenovo: add WMI hotkeys driver David Cemin
2026-11-19  6:10     ` Armin Wolf
2026-11-19 12:56     ` Rong Zhang
2026-11-19  2:27   ` [PATCH v2 3/3] platform/x86: ideapad-laptop: consume the Fn key events from the " David Cemin
2026-11-19  6:16     ` Armin Wolf
2026-11-19 13:00     ` Rong Zhang
2026-11-21  3:33   ` [PATCH v3 0/3] platform: lenovo: architecture independent home for the Lenovo WMI drivers David Cemin
2026-11-21  3:33     ` [PATCH v3 1/3] platform: lenovo: move the architecture independent WMI drivers out of x86 David Cemin
2026-11-21  3:33     ` [PATCH v3 2/3] platform: lenovo: add WMI Fn keys driver and use it from ideapad-laptop David Cemin
2026-11-21 10:42       ` Rong Zhang
2026-11-21 20:53         ` Rong Zhang
2026-11-30  4:31         ` David Cemin
2026-11-21  3:33     ` [PATCH v3 3/3] platform: lenovo: wmi-fn-keys: ignore the keyboard backlight level events David Cemin
2026-11-21 10:44       ` Rong Zhang
2026-11-30  4:31         ` David Cemin
2026-11-30  4:32     ` [PATCH v4 0/3] platform: lenovo: architecture independent home for the Lenovo WMI drivers David Cemin
2026-11-30  4:32       ` [PATCH v4 1/3] platform: lenovo: move the architecture independent WMI drivers out of x86 David Cemin
2026-12-02 11:36         ` Rong Zhang
2026-11-30  4:32       ` [PATCH v4 2/3] platform: lenovo: add WMI Fn keys driver and use it from ideapad-laptop David Cemin
2026-11-30  4:32       ` [PATCH v4 3/3] platform: lenovo: wmi-fn-keys: ignore the keyboard backlight level events David Cemin
2026-12-03  0:02       ` [PATCH v5 0/4] platform: lenovo: architecture independent home for the Lenovo WMI drivers David Cemin
2026-12-03  0:02         ` [PATCH v5 1/4] platform: lenovo: move the architecture independent WMI drivers out of x86 David Cemin
2026-12-03  0:02         ` [PATCH v5 2/4] platform: lenovo: add WMI Fn keys driver and use it from ideapad-laptop David Cemin
2026-12-03  0:02         ` [PATCH v5 3/4] platform: lenovo: wmi-fn-keys: ignore the keyboard backlight level events David Cemin
2026-12-03  0:02         ` [PATCH v5 4/4] platform: lenovo: wmi-fn-keys: ignore all Legion keyboard backlight events David Cemin
2026-12-03 10:29           ` Marco Giunta [this message]
2026-12-03 12:09           ` Rong Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR19MB230393D4F637949EFFB6A2DBFC4B2@SN6PR19MB2303.namprd19.prod.outlook.com \
    --to=marco_giunta@outlook.it \
    --cc=W_Armin@gmx.de \
    --cc=ciro.pedrini@gmail.com \
    --cc=dcemin@nvidia.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=hansg@kernel.org \
    --cc=i@rong.moe \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=ldemarchi@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=xy-jackie@139.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®