Skip to content

Instantly share code, notes, and snippets.

@kimjayney
Last active May 30, 2020 04:20
Show Gist options
  • Save kimjayney/f2b0ad89db41310d48545b5b191294d8 to your computer and use it in GitHub Desktop.
Save kimjayney/f2b0ad89db41310d48545b5b191294d8 to your computer and use it in GitHub Desktop.
MacBook Air Turbo Boost Disable/Enable command line / script

Turbo Boost Disabler/Enabler

  • Macbook Air i5 2020 Catalina 10.15.5 works.
  • but sleep after sometimes t/b enabled. - need to fix
  • no reboot required

requirements

  • clone repository
git clone https://github.com/rugarciap/Turbo-Boost-Switcher/
  • enable csrutil without kext (boot to recovery mode. Method: Power On > Command + R)
  • Go to Terminal
csrutil enable --without kext
  • preparement for enable / disable script
mkdir -p ~/Documents/System
  • copy DisableTurboBoost Kernel Extension file from cloned repository
cp -rf Turbo-Boost-Switcher-master/Turbo\ Boost\ Disabler/DisableTurboBoost.64bits.kext ~/Documents/System
  • place DisableTurboBoost.64bits.kext to ~/Documents/System
~/Documents/System # ls -al                                                                                                     
total 32
drwxr-xr-x  6 test  staff   192  5 28 21:15 .
drwx------+ 5 test  staff   160  5 28 21:00 ..
-rw-r--r--@ 1 test  staff  6148  5 28 21:09 .DS_Store
drwxr-xr-x@ 3 root   wheel    96 11 30 01:49 DisableTurboBoost.64bits.kext
~/Documents/System #
  • disable script preparement
touch disable_turbo_boost.sh
chmod 777 disable_turbo_boost.sh
  • enable script preparement
touch enable_turbo_boost.sh
chmod 777 enable_turbo_boost.sh
  • disable_turbo_boost.sh
#!/bin/bash
echo "1. Permission Set."
sudo chmod -R 755 DisableTurboBoost.64bits.kext
sudo chown -R root:wheel DisableTurboBoost.64bits.kext
echo "2. Copy DisableTurboBoost.64bitss.kext to /Library/Extensions"
sudo cp -rf DisableTurboBoost.64bits.kext /Library/Extensions/
echo "3. unload kext (if not exist it will displayed not found error)"
sudo kextunload /Library/Extensions/DisableTurboBoost.64bits.kext
echo "4. load kext"
sudo kextload /Library/Extensions/DisableTurboBoost.64bits.kext
  • enable_turbo_boost.sh
#!/bin/bash
sudo kextunload /Library/Extensions/DisableTurboBoost.64bits.kext
  • enable turbo boost
~/Documents/System # ./enable_turbo_boost                                                                                     
Password:
~/Documents/System #
  • disable turbo boost
~/Documents/System # ./disable_turbo_boost                                                                                       ✔  311  21:15:45
1. Permission Set.
2. Copy DisableTurboBoost.64bitss.kext to /Library/Extensions
3. unload kext (if not exist it will displayed not found error)
(kernel) Kext com.rugarciap.DisableTurboBoost not found for unload request.
Failed to unload com.rugarciap.DisableTurboBoost - (libkern/kext) not found.
4. load kext
~/Documents/System #
  • Then, you can disable turbo boost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment