From: Rong Zhang <i@rong.moe>
To: Andrea Rabbaglietti <rabbagliettiandrea@gmail.com>,
mpearson-lenovo@squebb.ca
Cc: Qiling Zhu <kmatzkaczor244@gmail.com>,
Derek John Clark <derekjohn.clark@gmail.com>,
hansg@kernel.org, hmh@hmh.eng.br,
ibm-acpi-devel@lists.sourceforge.net,
ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org,
platform-driver-x86@vger.kernel.org, vishnuocv@gmail.com,
vsankar@lenovo.com
Subject: Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: Add Auto mode support with dynamic max_brightness
Date: Sat, 07 Nov 2026 23:11:08 +0800 [thread overview]
Message-ID: <a21d1b534d4b7c8cd27811e1c1f5c8be790cbdeb.camel@rong.moe> (raw)
In-Reply-To: <CAENjc+w0Rqy=kDSew7XtNJCSvyPiXPJ5faWdmCr5RGYFhpunCA@mail.gmail.com>
Hi Andrea,
On Sat, 2026-11-07 at 14:23 +0100, Andrea Rabbaglietti wrote:
> On Mon, Feb 23, 2026, at 6:19 PM, Mark Pearson wrote:
> > Hi Hans - do you have an opinion on the path forwards?
>
> Hi all,
>
> a data point from a user, since this thread seems to have stalled.
See https://msgid.link/20261101100123.28749-1-kmatzkaczor244@gmail.com
>
> On a ThinkPad X9-14 Gen 1 (21QA, BIOS 1.25) running 7.2.15, the
> firmware already enters Auto mode on its own: Fn+Space cycles
>
> 0 -> 3 (Auto) -> 1 -> 2 -> 0 -> ...
>
> so with the current driver tpacpi::kbd_backlight reports brightness 3
> while max_brightness is 2, and brightness_hw_changed emits 3 as well.
>
> This is not only cosmetic. UPower 1.91.x treats 3 as out of range and
> stops watching brightness_hw_changed altogether, so the desktop no
> longer follows the hotkey at all after the first time Auto is reached:
> https://gitlab.freedesktop.org/upower/upower/-/work_items/367
+CC Qiling
Oops, this indeed needs a fix patch for backporting.
Qiling, while you series will fix this, it may be better to add a fix
patch CC'ing stable@vger.kernel.org to the very beginning of the series,
so that the fix can be easily backported.
>
> Whatever interface is chosen for exposing Auto mode (separate attribute
> or hw-control trigger),
>
We've chosen the hw control trigger approach. The relevant support code
has landed in the LED subsystem.
> would a minimal fix in the meantime be
> acceptable? Following Hans' suggestion earlier in the thread, the driver
> would report max_brightness (2) in brightness and brightness_hw_changed
> while MLCG says Auto,
>
My opinion:
If auto mode disables keyboard backlight most of the time, it should
report 0. For example, when the auto mode if backed by an ALS sensor, it
should disable keyboard backlight most of the time, because most users
seldom use the laptop in dark environments.
Same for proximity- or activity-based control, as it only illuminates
when the user touches the keyboard.
The ideapad-laptop driver and Qiling's series have already taken this
strategy.
Thanks,
Rong
> and leave the ABI otherwise unchanged. That keeps
> the 0-2 contract userspace relies on and is easy to backport to stable.
>
> I am happy to write and test such a patch on this machine, or to test
> a v2 of this series, whichever you prefer.
>
> Thanks,
> Andrea Rabbaglietti
next prev parent reply other threads:[~2026-11-07 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 13:23 Andrea Rabbaglietti
2026-11-07 15:11 ` Rong Zhang [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-03 23:22 Vishnu Sankar
2026-02-08 10:54 ` Hans de Goede
2026-02-08 20:58 ` Rong Zhang
2026-02-09 15:46 ` Mark Pearson
2026-02-09 18:14 ` Rong Zhang
2026-02-09 18:44 ` Mark Pearson
2026-02-10 10:31 ` Hans de Goede
2026-02-10 16:11 ` Rong Zhang
2026-02-10 21:17 ` Mark Pearson
2026-02-23 18:19 ` [ibm-acpi-devel] " Mark Pearson
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=a21d1b534d4b7c8cd27811e1c1f5c8be790cbdeb.camel@rong.moe \
--to=i@rong.moe \
--cc=derekjohn.clark@gmail.com \
--cc=hansg@kernel.org \
--cc=hmh@hmh.eng.br \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kmatzkaczor244@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rabbagliettiandrea@gmail.com \
--cc=vishnuocv@gmail.com \
--cc=vsankar@lenovo.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®