This DKMS driver is specifically designed for Lenovo's Legion Go S platform, primarily enabling the switching of performance modes and the configuration of CPU power settings.
- Compile Source Code
- make
- Install Driver
- sudo make install
- Uninstall Driver
- sudo make clean
- Set Mode
- echo "SetSmartFanMode,1/2/3/255" | sudo tee /proc/acpi/legion_go_call
- Read Mode
- echo "GetSmartFanMode" | sudo tee /proc/acpi/legion_go_call
- Set SPL
- echo "SetSPL,X" | sudo tee /proc/acpi/legion_go_call
- Read SPL
- echo "GetSPL" | sudo tee /proc/acpi/legion_go_call
- Set sPPT
- echo "SetSPPT,X" | sudo tee /proc/acpi/legion_go_call
- Read sPPT
- echo "GetSPPT" | sudo tee /proc/acpi/legion_go_call
- Set fPPT
- echo "SetFPPT,X" | sudo tee /proc/acpi/legion_go_call
- Read fPPT
- echo "GetFPPT" | sudo tee /proc/acpi/legion_go_call
- Read the Latest Settings (only the latest settings can be read)
- sudo cat /proc/acpi/legion_go_call
- Return Values
- GetSmartFanMode,X
- GetSPL,X
- GetSPPT,X
- GetFPPT,X
- The settings for SPL, fPPT, and sPPT are only effective when SetSmartFanMode is set to 255.
- If the value read is not the last one set, you need to first invoke the corresponding read command, and then use sudo cat /proc/acpi/legion_go_call.
- In the commands, "X" represents the value to be set.
- The parameter for SetSmartFanMode can only be one of 1, 2, 3, or 255.