From: Jan Szumotalski <jszumotalski@gmail.com>
To: platform-driver-x86@vger.kernel.org
Subject: ideapad_laptop: Add platform_profile support for IdeaPad L340-15IRH
Date: Sun, 12 Jul 2026 16:34:38 +0200 [thread overview]
Message-ID: <OSEVhC5AQ9yvDspKVkNPlA@gmail.com> (raw)
Hello,
I am trying to get the native performance mode toggles (Fn + Q) working on my
Lenovo IdeaPad L340-15IRH. Currently, the ideapad_laptop driver does not
expose platform_profile paths because standard DYTC methods are missing or
failing.
After decompiling my DSDT table, I have mapped out how the hardware handles
the performance profile switching internally:
1. The Fn + Q event fires method `_Q13`.
2. `_Q13` modifies an Embedded Controller variable named `SPMO`.
3. The current state of `SPMO` can be evaluated via the existing `HALS`
method. When `SPMO == 0x01` (Quiet), the `HALS` method flips the `0x2000`
bitmask flag (Local0 |= 0x2000).
Testing via acpi_call confirms that evaluating `\_SB.PCI0.LPCB.EC0.VPC0.HALS`
changes its return value by exactly 0x2000 when cycling modes via the hardware
shortcut.
I don't know how to implement it into the current driver, but I am willing to
test any fixes on my end.
Best regards,
Jan Szumotalski
reply other threads:[~2026-07-12 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=OSEVhC5AQ9yvDspKVkNPlA@gmail.com \
--to=jszumotalski@gmail.com \
--cc=platform-driver-x86@vger.kernel.org \
/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