Table of Contents
Currently, it only supports AMD processors and is being tested on my laptop powered by an AMD Ryzen 7 7840HS that runs Fedora 40. I don't have an Intel machine to learn about
intel_pstate
. If you have an Intel machine and would like to contribute, please do so (see #4).
Set Energy Performance Preference based on charging status and battery capacity.
Default behavior if cpu_performance_config.conf
is not edited:
- If plugged in, sets EPP to
performance
if battery capacity is greater than 50, else sets tobalance_performance
. - If not plugged in, sets EPP to
balance_performance
if battery capacity is greater than 50, else sets topower
.
- Your distro must have systemd.
- The
amd_pstate_epp
scaling driver must be installed/enabled. Runningcat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
will returnamd-pstate-epp
if it is enabled.
-
Clone the repository and change into the directory.
git clone https://github.com/realKarthikNair/EPP-systemd cd EPP-systemd
-
Customize thresholds and EPP by editing
cpu_performance_config.conf
if needed. The file is self explanatory. -
Run
install-and-enable.sh
after making it executable to install the service and enable it.chmod +x install-and-enable.sh ./install-and-enable.sh
-
Run
uninstall.sh
after making it executable to uninstall the service.chmod +x uninstall.sh ./uninstall.sh