Skip to content

Instantly share code, notes, and snippets.

@abenbachir
Forked from tuxology/disCPUscaling.sh
Created December 8, 2016 22:53
Show Gist options
  • Save abenbachir/942c1c5e42e73496aac42c0fd169af6d to your computer and use it in GitHub Desktop.
Save abenbachir/942c1c5e42e73496aac42c0fd169af6d to your computer and use it in GitHub Desktop.
Disable CPU Scaling
#!/bin/bash
# For more info : https://wiki.archlinux.org/index.php/CPU_frequency_scaling
set_scaling_gov() {
gov=${1-performance}
for i in $(ls -1 /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor); do
echo ${gov} | sudo tee $i > /dev/null
done
}
set_scaling_gov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment