Zero-dependency Linux bash script replicating Windows' native Processor Power Management (PPM) for CPU frequency scaling.
auto-detected hardware min/max/boost frequencies via sysfs for the governors in this ca ondemand, can operate inside those values
Compatible with Arch, Ubuntu, and all systemd-based distros.
This script makes that your cpu is running in powersave while having low usage
and automaticly scales the Frequency depending on the load,
So that you can brwose the internet without a noisy fan.
git clone https://github.com/Steinperfer/Linux-windows-cpu-scaler && cd Linux-windows-cpu-scaler && bash setup_autostart.sh
sudo chmod 777 /bin/Linux-windows-cpu-scaler/cpu_scaling.sh
sudo systemctl restart cpu-scaling
Images not uptodate, more optimised
Get Available governors:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governorsChange the governors for the script with:
for c in /sys/devices/system/cpu/cpu*/cpufreq
echo ondemand | sudo tee "$c/scaling_governor"
endStop script from autostarting if you ran setup_autostart.sh and want to stop it:
systemctl stop cpu-scaling
systemctl disable cpu-scalingif the script changed something in a wierd way you can reset everthing with
sudo cpupower frequency-set -d $(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq) -u $(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq)