Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Linux-cpu-freq/governors-manager

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.

Why?

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.

Install

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
cpu2 cpu1 Images not uptodate, more optimised

Get Available governors:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

Change the governors for the script with:

 for c in /sys/devices/system/cpu/cpu*/cpufreq
      echo ondemand | sudo tee "$c/scaling_governor"
  end

Stop script from autostarting if you ran setup_autostart.sh and want to stop it:

systemctl stop cpu-scaling
systemctl disable cpu-scaling

if 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)

About

Zero-dependency Linux bash script replicating Windows' native Processor Power Management (PPM) for CPU frequency scaling. load sampling, linear usage-to-frequency mapping, auto-detected hardware min/max/boost frequencies via sysfs. so that a scheduler can operate inside thos values Compatible with Arch, Ubuntu, and all systemd-based distros.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages