This project is not affiliated with Lenovo in any way
Lenovo Legion Linux (LLL) brings additional drivers and tools for Lenovo Legion series laptops to Linux. It
is the alternative to Lenovo Vantage or Legion Zone (both Windows only).
It allows you to control features like the fan curve, power mode, power limits, rapid charging, 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).
:star: Please star this repository if this is useful or might be useful in the future.
:star2: My goal is to merge the driver into the main Linux kernel so it comes automatically with Linux and no recompilation is required after a Linux update
:boom: Starring shows that this is useful to me and the Linux community so hopefully a merge into the Kernel is possible.
:rocket: Features
Light on RAM and CPU and without telemetry
Fully controllable using scripts or from the command-line
Simple GUI replacement for Lenovo Vantage: Fan curve, FN Lock, Win Key, Touchpad Power, Camera Power, Battery Conservation, Rapid Charging, Charge output from always on USB, Display Overdrive, Y-Logo LED Light, IO-Port LED Light, Hybrid Mode (GSync), CPU and GPU Overclock:
Toggle Fn lock; Use special function on F1-F12 keys without pressing the Fn key
Enable or disable touchpad
Set a fully featured custom fan curve with up to 10 points:
Set temperature points for when the fan speed (level) should change
Use CPU, GPU and IC temperature to control the fan all at the same time
Set the fan speed (RPM) at each level
Even allows speed below 1600 RPM
Set minimum temperature for each level that must be fallen below before slowing down the fans again
Set acceleration and deceleration for each the fan when the fan speed should increase or decrease
Save and load presets for different modes
Lock and unlock the fan controller and fan speed
Lift the firmware-imposed fan ceiling on supported models (fan_unlock sysfs / legion_cli fan-unlock-{enable,disable,status}). On the Legion Pro 7 16IRX8H (BIOS KWCN54WW) this raises the cap from ~4400 RPM to ~7100 RPM. Discovered via WMAA(0, 0x0D, 0x01) — see issue #429. The sysfs node is gated behind a has_fan_unlock model/BIOS allowlist and only exposed on validated firmwares (currently KWCN54WW).
Switch power mode (quiet, balanced, performance) using software
Now you can do it using software in your system settings
Changing with Fn+Q is also possible
Depending on your desktop environment, you could automatically switch to quiet mode if you are on battery or performance mode when on AC power (e.g. KDE's Energy Saving settings)
Monitor fan speeds and temperatures (CPU, GPU, IC) using the now available sensors
Enable or disable automatic switching to a "Mini Fan Curve" if temperatures are low for a long time
SmartFan — lightweight shell-based fan daemon for Legion 7 Gen 10+ using acpi_call (no full kernel module needed). 4 modes, smooth ramping, LED sync, TUI switcher. See extra/smartfan/
:mega: Overview
it comes with a driver (kernel module) that implements the Linux standard interfaces (sysfs, debugfs, hwmon)
using standard Linux interfaces makes it is compatible with the command line/file interface or standard GUI tools like psensor
compared to vendor tools for Windows, it even allows to set the fan curve. This allows to keep the fans
slowly and quietly running instead of constantly switching between fans off and loud fans. Perfect for quiet office work. :office:
[^1]: Build with latest commit every day at midnight GMT
:pushpin: Confirmed Compatible Models
Lenovo Legion models from 2020 up to the latest 2025 models probably work — the driver is actively maintained and new models are added regularly. The following models were confirmed. If you have a model with a BIOS version with the same leading letters, e.g. EFCN (like EFCN54WW) then it will probably work. If you want to confirm that your model works or if it does not work, please raise a issue.
Lenovo Legion 5 15IMH05, 15IMH05H (BIOS EFCN54WW): sensors, fan curve, power profile
Lenovo Legion 5 15ACH6H (BIOS GKCN58WW or GKCN57WW), Gen 6: sensors, fan curve, power profile
Lenovo Legion R9000 (R9000K2021H) (BIOS GKCN59WW): sensors, fan curve, power profile
Lenovo Legion 5 Pro 16ACH6H (82JQ) (BIOS GKCN58WW) x 2: sensors, fan curve, power profile
Legion 5 Pro 16ACH6H (AMD 5800H + Nvidia RTX 3070): sensors, fan curve, power profile
Lenovo Legion 5 15ARH05A (BIOS FSCN14WW), Gen 5: sensors, fan curve
Lenovo Legion 5 15ARH05H (BIOS FSCN14WW or FSCN26WW), Gen 5: sensors, fan curve, power profile
Lenovo Legion 5 15ITH6H (BIOS H1CN49WW, Intel): sensors, fan curve, power profile
Lenovo Legion 5 15ARH7H (BIOS JUCN55WW), Gen7: sensors, fan curve, power profile
Lenovo Legion 5 15ACH6 (BIOS HHCN31WW): sensors, fan curve, power profile
Lenovo Legion S7 16ARHA7 (BIOS KFCN32WW): sensors, fan curve (no minifancurve), power profile
Lenovo Legion 5 Pro 16ITH6 (BIOS H1CN52WW (there was an error in CPU temp with H1CN51WW)): sensors, fan curve, power profile
Lenovo Legion 5 15ACH6A (BIOS G9CN30WW), all AMD variant: sensors, fan curve (with mini fan curve), power profile
Lenovo Legion 5 17ACH6 (BIOS HHCN31WW): sensors, fan curve, power profile
Lenovo Legion 7i 16ITHG6 (BIOS H1CN35WW): sensors, fan curve, power profile
Lenovo Legion 7 Pro 16ARX8H (BIOS LPCN47WW): sensors, fan curve, power profile
Lenovo Legion Pro 5 16ARX8 (82WM) (BIOS LPCN65WW): sensors, fan curve (speed points only, see LPCN note below), power profile
Lenovo Legion 7 16IAX7 (82TD) (BIOS K1CN48WW): sensors, fan curve (write works; WMI readback returns empty buffer), power profile
Lenovo Legion Pro 7 16IRX8H (BIOS KWCN54WW): sensors, fan curve, power profile, fan unlock (lifts the fan ceiling from ~4400 to ~7100 RPM)
Lenovo Legion Pro 5 16IRX8 (82WK, BIOS KWCN54WW): sensors, fan curve (level indices 0-10, custom power mode), power profile, power limits and fan full speed through the Other Method WMI path; fan curve verified on Linux in custom power mode (level 9 → 4400/4600 RPM, level 10 → 5400/5400 RPM)
Lenovo Legion Pro 7 16IAX10H (83F5, BIOS Q7CN78WW), Gen 10: sensors, power profile, fan curve (level indices 1-10 via WMI, applied by the EC in custom power mode on AC), no keyboard/light control; verified on Linux (custom mode entered, table point written and read back from EC RAM); see Q7CN notes
Lenovo Legion Pro 5 16ADR10 (83LT, BIOS RLCN31WW), Gen 10 (AMD): sensors, power profile, fan curve (level indices 1-10 via WMI, applied by the EC in custom power mode on AC), keyboard backlight and Y-logo light, fan full speed (custom power mode only); enablement derived from the DSDT analysis in issue #445 with runtime validation in progress; see RLCN notes
Lenovo Legion 7 16IRX9, Gen 9: sensors, fan curve, power profile; also supported by SmartFan without the kernel module
Lenovo Legion 5 16IAX10 (83NX, BIOS Q6CN32WW), Gen 10 (Intel): sensors, power-limit attributes (cpu_temperature_limit, cpu_l1_tau, gpu_power_target_offset, long/short-term power limits) via WMI3; fan curve reads populate correctly but custom power mode does not currently activate (known gap); verified on Linux across five reloads, a main merge, and a BIOS update; see Q6CN notes
Many more models — including LOQ models and 2024/2025 Legions like the Legion 7 16IAX10 — are supported; see the DMI allowlist in kernel_module/legion-laptop.c for the full list.
Note: Features that are not confirmed probably also work. They were just not tested.
Currently fan control is not working for the following models. Other features, probably work:
Pull requests are very welcome! Filing an issue alone is helpful, but there is only so much developers can do without access to your hardware — especially for "does not work on my model" reports. If you can, please try to fix it yourself:
Clone the repo and modify the code locally (e.g. add your model to the DMI allowlist in kernel_module/legion-laptop.c). AI coding assistants work well for this — the repo ships an AGENTS.md with build and test instructions written for them.
Test it on your own laptop until everything works (see the verification commands in AGENTS.md and the tests in this README).
Open a pull request that references your issue.
Most of the model support in this project was contributed exactly this way. Also see CONTRIBUTING.md.
:warning: Disclaimer
the tool comes with no warranty. Use at your own risk.
this project is not affiliated with Lenovo in any way.
this is a small hobby project; please be patient and read through this readme carefully before you ask for support
if your Lenovo Legion laptop is not supported and you are ready to perform some tests please notify me
this is a Linux only tool and will probably not run in WSL; for Windows use one of the available Windows tools
You will need to install the following to download and build it. If there is an error of any package, find the alternative name in your distribution and install them.