From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Punnay Sharma <punnaysharma805@gmail.com>,
Arnav Kapoor <kapoorarnav43@gmail.com>, Rong Zhang <i@rong.moe>,
Mark Pearson <mpearson-lenovo@squebb.ca>
Cc: Hans de Goede <hansg@kernel.org>, Ike Panhc <ikepanhc@gmail.com>,
"Derek J. Clark" <derekjohn.clark@gmail.com>,
Stuart Hayhurst <stuart.a.hayhurst@gmail.com>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: ideapad-laptop: Do not warn if KBLC reports no backlight
Date: Tue, 1 Dec 2026 15:03:44 +0200 (EET) [thread overview]
Message-ID: <43b41d16-499f-b3bb-82f3-ea82f7ea99db@linux.intel.com> (raw)
In-Reply-To: <20261107140700.16036-1-punnaysharma805@gmail.com>
On Sat, 7 Nov 2026, Punnay Sharma wrote:
> On probe, the driver asks KBLC for the keyboard backlight type and
> warns about any result other than 0x5 or 0x7.
>
> The LOQ 15IRX10 with an RGB keyboard returns 0x1. Its KBLC sets bit 0
> in every result, and sets bit 2 for the type query only if the EC field
> GZ35 is 0. On this model GZ35 is not 0, and a separate USB controller
> (048d:c693) drives the keyboard lights. So 0x1 means that KBLC controls
> no keyboard backlight, but the driver logs on every boot:
>
> ideapad_acpi VPC2004:00: Unknown keyboard type: 1
>
> Add KBD_BL_NONE_TYPE for 0x1 and do not warn about it.
Hi all,
Given what Punnay says above about BIT(0) and what Arnav's device reports
[1], does the BIT(0) have anything to do with the backlight type? If not,
why are we using that bit while reporting an error about unknown backlight
type?
[1] https://lore.kernel.org/all/20261126073107.765676-1-kapoorarnav43@gmail.com/
--
i.
> Tested on a Lenovo LOQ 15IRX10 (BIOS R3CN44WW).
>
> Signed-off-by: Punnay Sharma <punnaysharma805@gmail.com>
> ---
> KBD_BL_NONE_TYPE is placed last to avoid a conflict with Rong Zhang's
> pending keyboard backlight series.
>
> The same warning appears on other models, e.g. LOQ 15AHP10 [1] and
> Legion 5 Pro 16ACH6H [2].
>
> [1] https://lore.kernel.org/all/3f03931e7eafcb1781ca3cf922e588ab57caadcf@lavx.hu/
> [2] https://github.com/johnfanv2/LenovoLegionLinux/issues/336
>
> drivers/platform/x86/lenovo/ideapad-laptop.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
> index fcb5ed7035f5..eb4158bed264 100644
> --- a/drivers/platform/x86/lenovo/ideapad-laptop.c
> +++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
> @@ -148,6 +148,7 @@ enum {
> #define KBD_BL_QUERY_TYPE 0x1
> #define KBD_BL_TRISTATE_TYPE 0x5
> #define KBD_BL_TRISTATE_AUTO_TYPE 0x7
> +#define KBD_BL_NONE_TYPE 0x1 /* No backlight through KBLC */
>
> #define KBD_BL_COMMAND_GET 0x2
> #define KBD_BL_COMMAND_SET 0x3
> @@ -2246,7 +2247,7 @@ static int ideapad_check_features(struct ideapad_private *priv)
> } else if (val == KBD_BL_TRISTATE_AUTO_TYPE) {
> priv->features.kbd_bl = true;
> priv->kbd_bl.type = KBD_BL_TRISTATE_AUTO;
> - } else {
> + } else if (val != KBD_BL_NONE_TYPE) {
> dev_warn(&priv->platform_device->dev,
> "Unknown keyboard type: %lu",
> val);
>
> base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8
>
--
i.
prev parent reply other threads:[~2026-12-01 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 14:05 Punnay Sharma
2026-11-07 14:49 ` Rong Zhang
2026-11-10 1:29 ` Mark Pearson
2026-12-01 13:03 ` Ilpo Järvinen [this message]
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=43b41d16-499f-b3bb-82f3-ea82f7ea99db@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=derekjohn.clark@gmail.com \
--cc=hansg@kernel.org \
--cc=i@rong.moe \
--cc=ikepanhc@gmail.com \
--cc=kapoorarnav43@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@vger.kernel.org \
--cc=punnaysharma805@gmail.com \
--cc=stuart.a.hayhurst@gmail.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®