Unofficial control application for Legion laptops. Tested on Gen9 and Gen 10.
This project is not affiliated with Lenovo in any way Lenovo Legion Linux Toolkit brings additional drivers and tools for Legion laptops Gen9 and Gen 10. It is the alternative to Lenovo Vantage, Legion Zone or Legion Space (Windows only). It allows you to control features like the fan curve, power mode, power limits, and more. This has been achieved through reverse engineering and disassembling the ACPI firmware, as well as the firmware and memory of the embedded controller (EC).
[ 3.881427] lenovo-legion VPC2004:00: WMI Fan method driver was initialized
[ 3.881469] lenovo-legion VPC2004:00: HwMon driver was initialized
[ 3.881477] lenovo-legion VPC2004:00: RAPL driver was initialized
[ 3.881487] lenovo-legion VPC2004:00: RAPL MMIO driver was initialized
[ 3.882145] lenovo-legion VPC2004:00: Intel MSR driver was initialized
[ 3.882153] lenovo-legion VPC2004:00: RAPL MMIO synchronization only
[ 3.882155] lenovo-legion VPC2004:00: Legion platform driver was loaded
This module is responsible about comunication with HW your fan, power on GPU and CPU, temperature limits, switch modes (QUIET, BALANCED, PERFORMANCE, CUSTOM). Is neccessary if you need adjust this components. Part of the source code are files which disable modules in kernel which are in conflict. See the guid for installation on github.
Supported kernels (tested): since 6.12.
Daemon
Name of applications is LenovoLegion-Daemon. Standard path after installation is /opt/LenovoLegion. Structure of this folder is. If you look at this folder you shoulds see data subfolder and log subfolder. Please note that modules subfolder is present as well but should be empty and is not used.
data subfolder is used for storing configuration. If you stop daemon here is stored information about disabled cpus, governour and power profiles. Name of file is LenovoLegion-Daemon.ini.
log subfolder is used for storing log information. There are LenovoLegion-Daemon.log LenovoLegion.log.
Please note that data and log folder should have permision 777. Daemon has no params and is used for comunication with drivers under root privileges. Needs sysfs.
GUI
Name of applications is LenovoLegion. Standard path after installation is /opt/LenovoLegion. Needs QT and use LenovoLegion-Daemon for comunication with HW (needs root privileges). GUI part must be stareted under user privileges..