Re: [PATCH] platform/x86: ideapad-laptop: Do not warn if KBLC reports no backlight

From: Punnay Sharma

Date: Tue Dec 01 2026 - 09:00:32 EST


On Tue, 1 Dec 2026 at 18:33, Ilpo Järvinen
<ilpo.jarvinen@xxxxxxxxxxxxxxx> wrote:

> 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@xxxxxxxxx/

Hi all,

So, to answer Ilpo's question: on my LOQ 15IRX10 the answer is No, KBLC sets
BIT(0) first (RETD |= One) and only then checks the command, so every
result has BIT(0) set and the actual data sits in the bits above it,
like 0x5 -> 2 (KBD_BL_TRISTATE), 0x7 -> 3 (KBD_BL_TRISTATE_AUTO) and
0x1 -> 0, and the brightness read already drops BIT(0) with
FIELD_GET(KBD_BL_GET_BRIGHTNESS, value), it's only the type check that
uses it

Arnav's V14 G2 ITL is a bit different though, as his patch says its
type query always returns Zero, so BIT(0) is just clear there

so I thought of a v2 where the type check looks at BIT(0) and gets the
type from the bits above this, but I need your guidance on it

btw the ThinkBook question from bug 221198 is still open

Thanks,
Punnay