Automatic power profile switching for AMD Ryzen APUs based on AC/battery state.
- Instant profile switching via udev + systemd
- Resume-aware (applies correct profile after suspend)
- Concurrent execution protection (flock)
- JSON configuration
- Logging
makepkg -siryzenadj- Ryzen power management toolryzen_smu-dkms-git- Kernel module (required)jq- JSON parser
Edit /etc/ryzen-pwr.conf:
{
"ac": {
"power_limit": 55000
},
"battery": {
"power_limit": 20000,
"max_freq": 4300000
}
}sudo ryzen-pwr ac # Apply AC profile
sudo ryzen-pwr battery # Apply battery profile
sudo ryzen-pwr auto # Auto-detect and apply
ryzen-pwr status # Show status| Trigger | Service | Action |
|---|---|---|
| AC plug | ryzen-pwr-ac.service |
AC profile |
| AC unplug | ryzen-pwr-battery.service |
Battery profile |
| Resume | ryzen-pwr-resume.service |
Auto-detect |
/var/log/ryzen-pwr/
GPLv2