A Decky Loader plugin to toggle the power LED on/off on the Lenovo Legion Go 2 running SteamOS.
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_callNote:
acpi_callmust be loaded after each reboot. Addacpi_callto/etc/modules-load.d/acpi_call.confto auto-load it.
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.serviceRequires Node.js and pnpm:
pnpm install
pnpm buildThe 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.
MIT