A simple Linux script to disable Intel Turbo Boost on systems using the intel_pstate frequency driver.
This script disables Intel Turbo Boost technology on supported Linux distributions. It can be used with systemd, SysVinit, or manually through other startup mechanisms.
To check if your system supports the intel_pstate driver, run:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driverIf all outputs return intel_pstate, your system is compatible.
-
Copy the
intel-noturbo.servicefile to the systemd directory:sudo cp etc/systemd/system/intel-noturbo.service /etc/systemd/system/
-
To automatically disable Turbo Boost at startup:
sudo systemctl enable --now intel-noturbo.serviceOr, to disable Turbo Boost manually on demand:
sudo systemctl start intel-noturbo.service
-
Check the service status:
sudo systemctl status intel-noturbo.service
-
You can verify the Turbo Boost status at any time with:
cat /sys/devices/system/cpu/intel_pstate/no_turbo
0: Turbo Boost is enabled1: Turbo Boost is disabled
-
Copy the init script to
/etc/init.d/:sudo cp etc/init.d/intel_noturbo /etc/init.d/ sudo chmod +x /etc/init.d/intel_noturbo
-
Enable the script to run at boot:
sudo update-rc.d intel_noturbo defaults
-
To disable Turbo Boost immediately without rebooting:
sudo /etc/init.d/intel_noturbo start
Or:
sudo service intel_noturbo start
If your system uses OpenRC, runit, s6, or other init systems, you can still disable Turbo Boost manually or set it to run at startup via alternative methods.
sudo sh -c 'echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo'-
Ensure
cronieis installed:-
Debian/Ubuntu:
sudo apt install cronie
-
Fedora/RHEL:
sudo yum install cronie
-
Arch Linux:
sudo pacman -S cronie
-
-
Verify installation:
crond -V
-
Edit the root crontab:
sudo crontab -e
-
Add the following line to disable Turbo Boost at startup:
@reboot echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
-
Disable and stop the service:
sudo systemctl disable --now intel-noturbo.service
-
Mask the service to prevent accidental activation:
sudo systemctl mask intel-noturbo.service
-
Remove installed files:
sudo rm /etc/systemd/system/intel-noturbo.service
-
Reboot to apply changes.
-
Remove the service from startup:
sudo update-rc.d -f intel_noturbo remove
-
Delete installed files:
sudo rm /etc/init.d/intel_noturbo
-
Reboot to apply changes.
-
Remove the
@rebootline from the root crontab:sudo crontab -e
- Licensed under the GNU General Public License v3.0.
- Copyright © @ShyVortex, 2023.