Skip to content

Instantly share code, notes, and snippets.

@tuxology
Created October 27, 2015 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxology/f42823d962c98c53a354 to your computer and use it in GitHub Desktop.
Save tuxology/f42823d962c98c53a354 to your computer and use it in GitHub Desktop.
#!/bin/bash
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