The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v5 0/6] platform/x86: thinkpad_acpi: Add a keyboard backlight auto-mode trigger
@ 2026-11-30 13:12 Qiling Zhu
  2026-11-30 13:12 ` [PATCH v5 1/6] platform/x86: thinkpad_acpi: Report auto keyboard backlight mode as off Qiling Zhu
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Qiling Zhu @ 2026-11-30 13:12 UTC (permalink / raw)
  To: Mark Pearson, Derek J. Clark, Rong Zhang, Hans de Goede,
	Ilpo Järvinen, Henrique de Moraes Holschuh
  Cc: platform-driver-x86, linux-kernel, ibm-acpi-devel, Lee Jones,
	Pavel Machek, Griffin Kroah-Hartman, linux-leds, vishnuocv,
	vsankar, Andrea Rabbaglietti

Hi all,

On supported ThinkPads, Fn+Space can select automatic keyboard
backlight control.  This series exposes that mode through the private
LED trigger "tpacpi-kbd-auto".  The first patch fixes an out-of-range
brightness value that was reported to make UPower stop tracking hotkey
changes on a ThinkPad X9-14 Gen 1.

This is v5 of the series.  Thank you, Rong and Mark, for reviewing v4.
The changes are small: the code at the end of the series is the same as
in v4 apart from one comment dropped in 5/6, and what moved is in the
patch boundaries and the commit messages.  For reference, v4 is here:

  https://lore.kernel.org/r/20261125084644.137506-1-kmatzkaczor244@gmail.com/

Changes since v4:

- 2/6 now contains the two changes that 4/6 used to make to the notify
  helpers, which let them work in EC levels, as Rong suggested while
  reviewing 4/6.  The commit message describes how this differs from
  the original inline code: a change between off and the auto mode is
  reported through brightness_hw_changed when the cached value holds
  the EC level, and a failed read of the level sends no notification.

- 4/6 is smaller accordingly and no longer touches the helpers; its
  commit message is adjusted to match.

- 5/6 drops the comment that repeated the one above
  TPACPI_KBD_LIGHT_AUTO_CAPABLE_BIT, as Rong suggested.

- 1/6, 3/6 and 6/6 are unchanged in code.

On the Reviewed-by tags: I have added the tags that Rong and Mark gave
on v4 and on earlier versions to the patches they reviewed, and kept
them where a patch changed a little afterwards.  My understanding is
that small changes do not invalidate a tag.  If a tag does not fit the
patch it is on now, please tell me and I will remove it.

As the end result is unchanged, I have not repeated the hardware tests
from v4: they cover s2idle and S4 on a ThinkPad X1 Carbon Gen 14, from
manual levels and from auto mode.  S3-capable models and other models
are still untested, and testing there would be very welcome.  Each
commit of this version builds without warnings.

The checkpatch.pl --strict warnings I see are for three commit IDs that
are missing from my shallow clone.

This series was developed with LLM assistance; I reviewed every design
decision against the framework sources and validated the behavior on
real hardware myself.

Regards,
Qiling Zhu

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-30 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:12 [PATCH v5 0/6] platform/x86: thinkpad_acpi: Add a keyboard backlight auto-mode trigger Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 1/6] platform/x86: thinkpad_acpi: Report auto keyboard backlight mode as off Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 2/6] platform/x86: thinkpad_acpi: Extract kbdlight notify helpers Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 3/6] platform/x86: thinkpad_acpi: Don't poke keyboard backlight's LED core brightness Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 4/6] platform/x86: thinkpad_acpi: Restore keyboard backlight level ourselves Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 5/6] platform/x86: thinkpad_acpi: Detect auto-mode capability via MLCG Qiling Zhu
2026-11-30 13:12 ` [PATCH v5 6/6] platform/x86: thinkpad_acpi: Add a keyboard backlight auto-mode trigger Qiling Zhu
2026-11-30 15:04 ` [PATCH v5 0/6] " Lee Jones
2026-11-30 15:46   ` Qiling Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox