关闭turboboost,当使用电池时
brew cask install sleepwatcher
brew services start sleepwatcher
mkdir -p ~/code/python/utils/
wget -P ~/code/python/utils/ https://raw.githubusercontent.com/wanghuangjie/sleepwatcher_turboboost_on_battery/master/boostoff_battery.py
wget -P ~ -O .wakeup https://raw.githubusercontent.com/wanghuangjie/sleepwatcher_turboboost_on_battery/master/wakeup
chmod 755 ~/.wakeup
- sudo visudo 添加到最底部
%admin ALL=(root) NOPASSWD: /Applications/Utilities/voltageshift/voltageshift
睡眠再唤醒,如未接电源,应有关闭turbo_boost的提示。