0

I don't want a command line solution that includes installing anything at all. Ubuntu configures the CPU governor in a configuration file AFAIK. I want to locate and change the file correctly.

I don't want to disable the default governor instead, learn how to correctly set one.

userDepth
  • 2,010

1 Answers1

1

The file is /etc/init.d/ondemand.

Without any additional packages, you can manipulate the frequency scaling governors using primitive commands.

First, determine what available governors you have available:

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

Perhaps see what you currently have:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

And then, if different than what you want, just set one of the other available governors, in this example performance:

$ sudo su
# for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done
# exit

Example:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
performance powersave
performance powersave
performance powersave
performance powersave
performance powersave
performance powersave
performance powersave
performance powersave
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
powersave
powersave
powersave
powersave
$ sudo su
# for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done
# exit
exit
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance
performance
performance
performance
performance
Doug Smythies
  • 15,448
  • 5
  • 44
  • 61