Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LegionGoLED

A Decky Loader plugin to toggle the power LED on/off on the Lenovo Legion Go 2 running SteamOS.

Prerequisites

The acpi_call kernel module must be installed. On SteamOS:

sudo steamos-readonly disable
sudo pacman-key --init && sudo pacman-key --populate
sudo pacman -S --noconfirm linux-neptune-618-headers acpi_call-dkms dkms
sudo steamos-readonly enable
sudo modprobe acpi_call

Note: acpi_call must be loaded after each reboot. Add acpi_call to /etc/modules-load.d/acpi_call.conf to auto-load it.

Install

Copy the plugin files to your Decky plugins directory:

sudo mkdir -p ~/homebrew/plugins/LegionGoLED
sudo cp plugin.json main.py ~/homebrew/plugins/LegionGoLED/
sudo cp -r dist ~/homebrew/plugins/LegionGoLED/
sudo systemctl restart plugin_loader.service

Build from Source

Requires Node.js and pnpm:

pnpm install
pnpm build

How It Works

The plugin uses the acpi_call kernel module to invoke Lenovo's WMI method (\_SB.GZFD.WMAF) which controls hardware features on the Legion Go 2. The power LED is Lighting ID 0x03.

See writeup.md for a detailed technical writeup including explanations of ACPI, WMI, kernel modules, and the full investigation process.

License

MIT

About

Decky Loader plugin to toggle the power LED on the Lenovo Legion Go 2 (SteamOS)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages