Re: [PATCH] platform/x86: bitland-mifs-wmi: Add Redmi G 2022 (TM2135) quirk
From: Ilpo Järvinen
Date: Thu Nov 12 2026 - 16:31:44 EST
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@xxxxxxxxx>
> > Signed-off-by: Yun Wang <7z0423arsenova@xxxxxxxxx>
>
> 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@xxxxxxx>
Thanks all.
I've applied this patch now to the review-ilpo-next branch resolving the
conflict.
--
i.