From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Neko <neko205@aosc.io>, Yun Wang <7z0423arsenova@proton.me>
Cc: Hans de Goede <hansg@kernel.org>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
Mingyou Chen <qby140326@gmail.com>,
Ilya Gladyshev <ilya.gladyshev@linux.dev>,
Armin Wolf <W_Armin@gmx.de>, Chris Taraszka <chris@miget.com>,
kexybiscuit@aosc.io, jeffbai@aosc.io
Subject: Re: [PATCH] platform/x86: bitland-mifs-wmi: Add Redmi G 2022 (TM2135) quirk
Date: Thu, 12 Nov 2026 22:51:09 +0200 (EET) [thread overview]
Message-ID: <2d2f41a0-2bc9-98e5-b6c6-5975a7e3dfb9@linux.intel.com> (raw)
In-Reply-To: <9a26c741-6217-4155-a3dc-e34b4015f71c@aosc.io>
[-- Attachment #1: Type: text/plain, Size: 2470 bytes --]
On Fri, 13 Nov 2026, Neko wrote:
> 在 2026/11/6 22:33, Yun Wang 写道:
> > The Redmi G 2022 (board TM2135, BIOS RMGAD6T0P1313) implements only
> > three modes: 0x02 for quiet, 0x01 for balanced and 0x03 for performance.
> > The default profile table maps balanced to 0x00, but this firmware
> > recognizes it as the performance mode. Because the firmware does not
> > implement the AC adapter type query, setting balanced-performance or
> > performance fails with -ENODATA.
> >
> > Add a DMI entry with a three-entry profile table for this model and
> > enable skip_ac_type_check. 0x04 is not used for performance: writing it
> > succeeds and the value reads back as 0x04, but in three test runs on
> > 7.2.11 the firmware did not emit WMI event 0x16, which it emits after
> > every other mode change. The Fn+K hotkey also cycles only through the
> > three modes above.
> >
> > Tested on this machine with this patch and the series it depends on,
> > built as an out-of-tree module and loaded on a 7.2.14 kernel. Writing
> > low-power, balanced, and performance succeeds, the profile reads back
> > correctly, and the firmware emits one 0x16 event for each (values 2, 1,
> > and 3). Writing balanced-performance is rejected, and Fn+K cycles
> > through low-power, balanced, and performance.
> >
> > Claude Code (claude-opus-5-5) analyzed the ACPI tables, wrote the test
> > scripts, specified the change and corrected this changelog. I wrote the
> > code and the changelog and ran the tests on this machine.
> >
> > Link:
> > https://lore.kernel.org/platform-driver-x86/OT2JfRLDi6yHShYvywRZoFBYdW-TUgdKqKtahRM5b0cZxNo6eGZHnO5dKf4oYFaEtZhEsqU-Q-2OFe0D-qToJMVUrS5_d2aa2Q5LD50ISIc=@proton.me/
> > Link:
> > https://lore.kernel.org/all/BelDdF5woNEBX6dZ3_zJDEbVkifs1pdxEjtQ1yC-aKyZahijFJCllxm0l_SqZ5Hsj61D8wfJNa7uDSuNKmyyxo2S0tZp9QS5yaafeZUxvxE=@proton.me/
> > Suggested-by: Mingyou Chen <qby140326@gmail.com>
> > Signed-off-by: Yun Wang <7z0423arsenova@proton.me>
>
> I have tested this patch on my Redmi G 2022 (board model TM2135) and have
> confirmed that I can now switch between "performance", "balanced", and
> "power-saver" power profiles via the KDE power manager tray.
>
> Stress testing with s-tui also shows different power draw under different
> profiles.
>
> Tested-by: Yu Pan <neko205@aosc.io>
Thanks all.
I've applied this patch now to the review-ilpo-next branch resolving the
conflict.
--
i.
prev parent reply other threads:[~2026-11-12 20:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 14:33 Yun Wang
2026-11-12 16:44 ` Neko
2026-11-12 20:51 ` 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=2d2f41a0-2bc9-98e5-b6c6-5975a7e3dfb9@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=7z0423arsenova@proton.me \
--cc=W_Armin@gmx.de \
--cc=chris@miget.com \
--cc=hansg@kernel.org \
--cc=ilya.gladyshev@linux.dev \
--cc=jeffbai@aosc.io \
--cc=kexybiscuit@aosc.io \
--cc=linux-kernel@vger.kernel.org \
--cc=neko205@aosc.io \
--cc=platform-driver-x86@vger.kernel.org \
--cc=qby140326@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®