Skip to content

Instantly share code, notes, and snippets.

@bprosnitz
Created March 15, 2016 17:37
Show Gist options
  • Save bprosnitz/3c1ca15beae189f22c5e to your computer and use it in GitHub Desktop.
Save bprosnitz/3c1ca15beae189f22c5e to your computer and use it in GitHub Desktop.
Reset the CPU speed to "ondemand" after benchmarks
#!/bin/bash
# sudo apt-get install cpufrequtils
sudo cpufreq-set -c 0 -g ondemand
sudo cpufreq-set -c 1 -g ondemand
sudo cpufreq-set -c 2 -g ondemand
sudo cpufreq-set -c 3 -g ondemand
sudo cpufreq-set -c 4 -g ondemand
sudo cpufreq-set -c 5 -g ondemand
sudo cpufreq-set -c 6 -g ondemand
sudo cpufreq-set -c 7 -g ondemand
sudo cpufreq-set -c 8 -g ondemand
sudo cpufreq-set -c 9 -g ondemand
sudo cpufreq-set -c 10 -g ondemand
sudo cpufreq-set -c 11 -g ondemand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment