I'm new to Ubuntu and want to disable the turbo boost. I tried with cpufreq but i cant get it to work. is there any other way to do it.
In windows it was as easy as changing the CPU speed from 100 to 99.
I'm new to Ubuntu and want to disable the turbo boost. I tried with cpufreq but i cant get it to work. is there any other way to do it.
In windows it was as easy as changing the CPU speed from 100 to 99.
If your system is using the intel_pstate frequency scaling driver:
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
intel_pstate
Then you can inquire as to the turbo enabled or disabled status:
$ cat /sys/devices/system/cpu/intel_pstate/no_turbo
0
Where 0 means turbo is enabled and 1 means it is disabled. And you can change it by writting (as sudo) to the same location.
$ echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
1
I never remember the location or how to do the `tee' thing properly, so I prefer scripts to be run as sudo:
$ cat set_cpu_turbo_off
#! /bin/bash
echo "1" > /sys/devices/system/cpu/intel_pstate/no_turbo
$ cat set_cpu_turbo_on
#! /bin/bash
echo "0" > /sys/devices/system/cpu/intel_pstate/no_turbo