Skip to content

ShyVortex/intel-noturbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

intel-noturbo

A simple Linux script to disable Intel Turbo Boost on systems using the intel_pstate frequency driver.


Description

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_driver

If all outputs return intel_pstate, your system is compatible.


Installation

Systemd-Based Systems

  1. Copy the intel-noturbo.service file to the systemd directory:

    sudo cp etc/systemd/system/intel-noturbo.service /etc/systemd/system/
  2. To automatically disable Turbo Boost at startup:

    sudo systemctl enable --now intel-noturbo.service

    Or, to disable Turbo Boost manually on demand:

    sudo systemctl start intel-noturbo.service
  3. Check the service status:

    sudo systemctl status intel-noturbo.service
  4. You can verify the Turbo Boost status at any time with:

    cat /sys/devices/system/cpu/intel_pstate/no_turbo
    • 0: Turbo Boost is enabled
    • 1: Turbo Boost is disabled

SysVinit-Based Systems

  1. 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
  2. Enable the script to run at boot:

    sudo update-rc.d intel_noturbo defaults
  3. To disable Turbo Boost immediately without rebooting:

    sudo /etc/init.d/intel_noturbo start

    Or:

    sudo service intel_noturbo start

Manual or Alternative Startup Methods

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.

Manual Execution

sudo sh -c 'echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo'

Automatic Execution via Cron (Example)

  1. Ensure cronie is installed:

    • Debian/Ubuntu:

      sudo apt install cronie
    • Fedora/RHEL:

      sudo yum install cronie
    • Arch Linux:

      sudo pacman -S cronie
  2. Verify installation:

    crond -V
  3. Edit the root crontab:

    sudo crontab -e
  4. Add the following line to disable Turbo Boost at startup:

    @reboot echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
    

Removal

Systemd

  1. Disable and stop the service:

    sudo systemctl disable --now intel-noturbo.service
  2. Mask the service to prevent accidental activation:

    sudo systemctl mask intel-noturbo.service
  3. Remove installed files:

    sudo rm /etc/systemd/system/intel-noturbo.service
  4. Reboot to apply changes.


SysVinit

  1. Remove the service from startup:

    sudo update-rc.d -f intel_noturbo remove
  2. Delete installed files:

    sudo rm /etc/init.d/intel_noturbo
  3. Reboot to apply changes.


Cron Installation

  1. Remove the @reboot line from the root crontab:

    sudo crontab -e

License

About

Linux script to disable Turbo Boost on Intel CPUs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages