• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

stevezhengshiqi/one-key-cpufriend: Generate customized CPUFriendDataProvider.kex ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

stevezhengshiqi/one-key-cpufriend

开源软件地址(OpenSource Url):

https://github.com/stevezhengshiqi/one-key-cpufriend

开源编程语言(OpenSource Language):

Shell 100.0%

开源软件介绍(OpenSource Introduction):

Modify macOS CPU Performance

English | 中文

Instruction

The script is only for most 5th-10th 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, often injected by SSDT-PLUG or SSDT-XCPM

NOTE: It is recommended to disable CPUFriend.kext and CPUFriendDataProvider.kext before a macOS upgrade. You need to re-generate CPUFriendDataProvider.kext whenever you update to a new macOS version; otherwise, you may suffer from bad PM or even kernel panic.

How to install

  • Run the following command in Terminal:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/stevezhengshiqi/one-key-cpufriend/main/one-key-cpufriend.sh)"
  • For Clover users:

    • Copy CPUFriend.kext and CPUFriendDataProvider.kext from desktop to /CLOVER/kexts/Other/ and restart.
  • For OC users:

    • Copy CPUFriend.kext and CPUFriendDataProvider.kext from desktop to /OC/Kexts/.
    • Open /OC/config.plist and add the following code into Kernel - Add:
<dict>
    <key>Arch</key>
    <string>x86_64</string>
    <key>BundlePath</key>
    <string>CPUFriend.kext</string>
    <key>Comment</key>
    <string>Power management data injector</string>
    <key>Enabled</key>
    <true/>
    <key>ExecutablePath</key>
    <string>Contents/MacOS/CPUFriend</string>
    <key>MaxKernel</key>
    <string></string>
    <key>MinKernel</key>
    <string></string>
    <key>PlistPath</key>
    <string>Contents/Info.plist</string>
</dict>
<dict>
    <key>Arch</key>
    <string>x86_64</string>
    <key>BundlePath</key>
    <string>CPUFriendDataProvider.kext</string>
    <key>Comment</key>
    <string>Power management data</string>
    <key>Enabled</key>
    <true/>
    <key>ExecutablePath</key>
    <string></string>
    <key>MaxKernel</key>
    <string></string>
    <key>MinKernel</key>
    <string></string>
    <key>PlistPath</key>
    <string>Contents/Info.plist</string>
</dict>

Recovery

  • For Clover users:

    • 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
  • For OC users:

Credits




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap