syscl / CPUTune

An open source kernel extension enables dynamic CPU performance tuning at runtime for macOS.
162 stars 36 forks source link

[recommendation] "CPUTune" on MacOS Mojave (10.14.3) - MacBook Pro Late 2013 with dead battery #36

Open 3c1a opened 2 years ago

3c1a commented 2 years ago

Hello,

My battery stopped charging, I noticed very slow performance (CPU core max was locked 0.8 Ghz) and after some search on google I found https://portugnole.blogspot.com/2020/05/running-macbook-without-battery-lets-go.html. I had no experince with Xcode nor commands mendtioned in the guide. I followed all the steps and succesfully compiled "CPUTuneCore.kext" (in the guide it is named "CPUTune.kext", probably older version!?). I could use this kext file with "kextutil" command and managed to use my CPU @ 2.3 Ghz. But after wake-up from sleep, I was forced to unload & load the kext otherwise CPU was again locked @0.8Ghz. I could even activate TurboBoost by modifying "Info.plist" but always eneded up with crashes after a while.

However all my attempts to autoload "CPUTuneCore.kext" in "/Library/Extensions" ended up with failure. I was forced to SafeBoot and delete "CPUTuneCore.kext" eachtime to recover. After days of trailing I found this https://github.com/syscl/CPUTune/issues/4#issuecomment-869146300. I decided test "CPUTune(v2.1.7)" shared by @syscl and bingo, I could finally load CPUTune in "/Library/Extensions" with success. Now the CPU is always @2.3Ghz after restarts or wake-up from sleep.

Here are the steps I followed to load CPUTune in "/Library/Extensions" on my Mac:

downloaded CPUTune(v2.1.7): https://github.com/syscl/CPUTune/files/4807644/CPUTune.v2.1.7.zip

sudo kextutil -v CPUTune.kext sudo cp -R CPUTune.kext /Library/Extensions sudo chown -R root:wheel /Library/Extensions/CPUTune.kext sudo touch /Library/Extensions sudo kextcache -i / sudo reboot

I don't know why but still no log file generated ; "cat /var/log/cputune.kext.log".

Thank you @syscl and @christophe-duc !!!

balfabb87 commented 2 years ago

I have the same macbook with Mojave and also have a problem when CPU stuck 0.8 Ghz. I upload CPUTune.kext to extantion directory, open terminal and after the first line in your instruction (sudo kextutil -v CPUTune.kext). i get this message:''cp: CPUTune.kext: No such file or directory''. What did i do wrong?

3c1a commented 2 years ago

I have the same macbook with Mojave and also have a problem when CPU stuck 0.8 Ghz. I upload CPUTune.kext to extantion directory, open terminal and after the first line in your instruction (sudo kextutil -v CPUTune.kext). i get this message:''cp: CPUTune.kext: No such file or directory''. What did i do wrong?

"sudo kextutil -v CPUTune.kex" will work if "CPUTune.kext" file copied under user folder of the account. To point the file under extensions folder; "sudo kextutil -v /Library/Extensions/CPUTune.kext"