2 Unstar Star 6 Fork 3

stevezhengshiqi / one-key-cpufriendShell

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
生成定制的CPUFriendDataProvider.kext来实现动态macOS CPU电源管理 spread retract

Clone or download
Notice: Creating folder will generate an empty file .keep, because not support in Git

Modify macOS CPU Performance

English | 中文


I am really a newcomer for bash language, and welcome pros to help improve the script.

The script is only for most 5th-8th generation CPU yet. I will try to add support for more models if needed.

The script can modify low frequency mode and energy performance preference, and use ResourceConverter.sh to generate customized CPUFriendDataProvider.kext.

By using this script, no file under the System folder will be edited. If you are not happy with the modification, just remove CPUFriend*.kext from /CLOVER/kexts/Other/ and restart.

Before install

  • Read CPUFriend WARNING
  • Good network
  • If you have FakeCPUID argument in config.plist, this script may cause issue
  • Make sure IOPlatformPluginFamily.kext untouched
  • Make sure Lilu is working
  • Make sure you are using correct SMBIOS model
  • plugin-type=1

How to install

  • Run this script in Terminal
bash -c "$(curl -fsSL https://raw.githubusercontent.com/stevezhengshiqi/one-key-cpufriend/master/one-key-cpufriend.sh)"
  • Copy CPUFriend.kext and CPUFriendDataProvider.kext from desktop to /CLOVER/kexts/Other/ and restart.


If you are not happy with the modification, just remove CPUFriend.kext and CPUFriendDataProvider.kext from /CLOVER/kexts/Other/ and restart.

If unfortunately, you can't boot into the system, and you are sure the issue is caused by CPUFriend*.kext,

  • Press Space when you are in Clover page
  • Use keyboard to choose Block Injected kexts - Other
  • Check CPUFriend.kext and CPUFriendDataProvider.kext
  • Return to the main menu and boot into the system, then delete CPUFriend*.kext from your CLOVER folder


Thanks to Acidanthera and PMHeart for providing CPUFriend.

Thanks to shuhung for providing configuration modification ideas.

Thanks to PMheart and xzhih for giving me advice.

Comments ( 0 )

Sign in for post a comment



131423 f1aaba0b 1899542 094922 1c74bed3 1899542