Skip to contentSkip to conversation

ideapad_laptop: Add platform_profile support for IdeaPad L340-15IRH

DISCUSSION Jan Szumotalski 1 participant 1 message Jul 12 x86 platform drivers

lore
Share & tools
lore
#0 lore 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