gentoo-legion-python/udev/99-power-profile.rules
2026-02-05 18:05:06 -05:00

4 lines
322 B
Plaintext

# Automatic power profile switching based on AC state
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="1", RUN+="/usr/bin/powerprofilesctl set performance"
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="0", RUN+="/usr/bin/powerprofilesctl set power-saver"