Re: [PATCH] HID: lenovo: Add keyboard backlight support for the X13 detachable folio

From: Vishnu Sankar

Date: Tue Dec 01 2026 - 23:15:29 EST


Hi Jiri,

Thank you!

On Tue, Dec 1, 2026 at 8:55 PM Jiri Kosina <jikos@xxxxxxxxxx> wrote:
>
> On Thu, 22 Oct 2026, Vishnu Sankar wrote:
>
> > The keyboard backlight of the ThinkPad X13 detachable folio is reached
> > over HID rather than through the EC, so thinkpad_acpi exposes nothing
> > for it and userspace can neither read the level nor set it.
> >
> > The folio takes and reports the level over the same vendor reports this
> > driver already uses for the Fn-lock, mute and mic-mute indicators, so
> > register a kbd_backlight LED class device on top of them.
> >
> > The firmware cycles the level on Fn+Space by itself. Report the
> > resulting state to the LED class device instead of the keypress, which
> > userspace would otherwise act on a second time.
> >
> > Tested on a ThinkPad X13 Detachable (17ef:62af), BIOS R3IET32WM.
> >
> > Suggested-by: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
> > Signed-off-by: Vishnu Sankar <vishnuocv@xxxxxxxxx>
>
> Applied to hid.git#for-7.5/lenovo, thanks.
>
> --
> Jiri Kosina
> SUSE Labs
>


--

Regards,

Vishnu Sankar