Change CPUFreq governor on all CPUs
While I love KDE, I still prefer to use command line for almost everything.
A simple bash function to set/list all governors.
set-cpufreq() {
if [ -z "$1" ]; then
echo "Available : $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)"
find /sys/devices/system/cpu -name scaling_governor | while read f; do echo $f : $(cat $f); done
else
find /sys/devices/system/cpu -name scaling_governor | while read f; do echo $1 > $f; done
fi
}
Tags: bash, cpufreq, Linux Development