- Changes the default cpu governor to
conservative
, helps save battery (you should test it). - When the laptop is plugged in the cpu governor is chaged to
performance
and the scaling driver is changed toamd-pstate epp
. - When the laptop is unplugged
conservative
is set as the cpu governor, the power profile is set topower-saver
and the performance scaling driver is changed toamd-pstate
.
- amd cpu (at least zen2)
- kernel >= 6.3 or a patched kernel with amd-pstate epp
In order to test if conservative cpu governor actually helps you save battery you can use tools such as battop to see the real time discharge rate of your laptop.
To see the current governor:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
git clone https://github.com/cch000/power_management.git
cd power_management
chmod +x install
sudo ./install
Reboot
chmod +x uninstall
sudo ./uninstall
Don't forget to reboot.