auto-epp-go is a program that manages the energy performance preferences (EPP) of your AMD CPU using the AMD-Pstate driver. It adjusts the EPP settings based on whether your system is running on AC power or battery power, helping optimize power consumption and performance. This project is a rewrite of the original Python version jothi-prasath/auto-epp in Golang, aiming to improve memory efficiency and overall performance.
- AMD CPU with the AMD-Pstate-EPP driver enabled.
- Linux 6.3+
- Golang (make deps)
Note: Since Linux 6.5, amd-pstate-epp is enabled by default, so you can skip this section.
This can be done by editing the GRUB_CMDLINE_LINUX_DEFAULT params in /etc/default/grub. Follow these steps:
- Open the grub file using the following command:
sudoedit /etc/default/grub- Within the file, modify the
GRUB_CMDLINE_LINUX_DEFAULTline to include the setting for AMD P-State EPP:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_pstate=active"This can be done by editing the options params in /efi/loader/entries/your-entry.conf. Follow these steps:
- Open the grub file using the following command:
sudoedit /efi/loader/entries/your-entry.conf- Within the file, modify the
optionsline to include the setting for AMD P-State EPP:
options ... amd_pstate=activeOn Arch Linux, and Arch-based distributions, auto-epp-go can be found in the AUR. Install with an AUR helper like yay:
yay -S auto-epp-gogit clone https://github.com/tfkhdyt/auto-epp-go
cd auto-epp-go
sudo make installMonitor the service status
systemctl status auto-epp-goTo restart the service
sudo systemctl restart auto-epp-goTo stop the service
sudo systemctl stop auto-epp-goEdit the config file
sudoedit /etc/auto-epp-go.conf