Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode compiling #4

Closed
lincolnlemos opened this issue May 21, 2020 · 97 comments
Closed

Xcode compiling #4

lincolnlemos opened this issue May 21, 2020 · 97 comments

Comments

@lincolnlemos
Copy link

Hey guys,

Found this repository at
https://portugnole.blogspot.com/2020/05/running-macbook-without-battery-lets-go.html

I'm trying to follow the instructions but I don't know how to compile the project at Xcode.
Can someone help me with clear instructions?

I never used XCode. I tried to google it but didn't have success.

@syscl
Copy link
Owner

syscl commented May 21, 2020

Hey @lincolnlemos , to compile you have to do the following step:

  1. Download Xcode from AppStore
  2. Download the repo via command line: git clone https://github.com/syscl/CPUTune then open CPUTune.xcodeproj under the folder.
  3. Click compile in the XCode ('play' icon). Then the CPUTune.kext will show on the left hand side.
    image

But you actually raised a really good point, I will make release for each version in the future so that you don't even need to download Xcode. Here's a precompiled
CPUTune.kext.zip for you.

@lincolnlemos
Copy link
Author

Thanks man! Looks like it worked here.

I have some extra questions:

  • I didn't configure any options as you mentioned at the readme of this repository. It's ok?

  • Do I need to load the CPUTune every time that I restart the MacBook?

  • When I got my new battery, I need to do anything?

Best!

@syscl
Copy link
Owner

syscl commented May 21, 2020

@lincolnlemos

Q1: It's OK to not change anything, which by default do nothing
Q2: You don't need to once the kext is in /Library/Extensions, the kext will be loaded properly per boot
Q3: You can leave it as it is or remove it if you want. The goal here is to provide user a fine granularity to control the cpu frequency, save battery life or maximum performance ...

@christophe-duc
Copy link
Contributor

Hey guys,

Found this repository at
https://portugnole.blogspot.com/2020/05/running-macbook-without-battery-lets-go.html

I'm trying to follow the instructions but I don't know how to compile the project at Xcode.
Can someone help me with clear instructions?

I never used XCode. I tried to google it but didn't have success.

Glad you find my how to and that it lead you here, great! If you have noticed any inconsistencies that I can correct, let me know. I wrote the How to from memory, so I hope I haven't forgot any steps.

I've just done a v2 of PROCHOT that is pending integration into the main repo.

@christophe-duc
Copy link
Contributor

@lincolnlemos

Q1: It's OK to not change anything, which by default do nothing
Q2: You don't need to once the kext is in /Library/Extensions, the kext will be loaded properly per boot
Q3: You can leave it as it is or remove it if you want. The goal here is to provide user a fine granularity to control the cpu frequency, save battery life or maximum performance ...

Damn! didn't know we could put the Kext into /Library/Extensions, I've learn something again!

Thanks!

@syscl
Copy link
Owner

syscl commented May 22, 2020

@christophe-duc In the meantime, I think can just use csrutil enable --without kext to keep CSR enable (if I remember correctly). I have CSR enabled while the kext installed.

@syscl
Copy link
Owner

syscl commented May 22, 2020

@christophe-duc as PR #5 I'm happy to review and should be merged soon. I think maybe I need to do a release per major change + add a script for easy install. What do you all think?

@christophe-duc
Copy link
Contributor

@christophe-duc In the meantime, I think can just use csrutil enable --without kext to keep CSR enable (if I remember correctly). I have CSR enabled while the kext installed.

Yes it should work, I unfortunately cannot boot in recovery without a battery as it takes forever to load if it even load... so I have mine set on disable for the moment

@syscl
Copy link
Owner

syscl commented May 22, 2020

@christophe-duc Maybe you can play around with SIPTune in the kext and welcome to add features that fit your needs (others must have the same requirement!) :)

The SIPTune is basically providing an easy way to control the CSR.

@syscl
Copy link
Owner

syscl commented May 24, 2020

@lincolnlemos @christophe-duc feel free to test out the latest (v2.0.0) CPUTune which contains a fantastic feature to control the HWP request at runtime. I will post more detail about the HWP request later on today.

@christophe-duc
Copy link
Contributor

Hi seems interesting, I found this to explain a little better what the HWP hex decimal value could be:

Where <HEX_VAL> is hexidecimal value for HWP settings cpu register. So, this setting looks scary as for now... lets learn a little...
Lets check example:
80002301 - you can divide into four parts:
80 - EPP profile (performance preference), can be value from 00 to FF (from 0 to 255 in decimal). Bigger value - more aggresive battery saving. With FF most part of time you CPU will be on lowest frequency. Find out what you like more clear.png Default is decimal 128 that gives 80 in hex
00 - reserved, should be zero
23 - maximum frequency, from hex 23 will give 35 that is maximum turbo freq for i7-6700HQ. If you have different CPU or you want to limit max freq - change this
01 - lowest frequency, just keep it as 01
So, looking on that, we can make few profiles:
80002301 - middle point
64002301 - little more performance (moderate mode)
94002301 - little more battery saving (same setting as on real MacBook9,1)

I think it would be good to explain a little bit more what those values should be in the doc but I am not an expert.

Should we create a binary release of the kext, so it is easier for people to download?

I am also researching on my side, why I cannot enable Turboboost when the battery is not present, with CPUTune if I try, I get a forced shutdown of the mac book. Maybe HWP will help, if someone knows let me know.

@syscl
Copy link
Owner

syscl commented May 24, 2020

@christophe-duc Yes, I will add a doc for the hwp request.

As for binary, I think it's ready to upload one for 2.0.0.

As for the turbo boost, maybe you need to restore IOPlatformPluginFamily.kext?

One quick question, what's the advantage of disabling ProcHot? Can we not touch it by default? From the description: "Please note that this is NOT recommended and can seriously damage your mac." I'm actually not sure if user need to disable it or enable it.

@christophe-duc
Copy link
Contributor

christophe-duc commented May 24, 2020 via email

@syscl
Copy link
Owner

syscl commented May 24, 2020

@christophe-duc By default we should enable ProcHot right (usually if they don't have battery remove)?

We can also add detection for battery exist or not in CPUTune

@christophe-duc
Copy link
Contributor

ProcHot is present I think only when the CPU is hot, I don't think it is activated during normal operations. But I cannot test this as I am running without battery for the moment.

@syscl
Copy link
Owner

syscl commented May 24, 2020

@christophe-duc Take a look at the log running from my MacBookPro with battery, no fan spining, it seems the ProcHot is enable if I understand correctly

CPUTune @ CPUInfo: cpu model: 0x9e
CPUTune @ cpu-tune-panic not existed in NVRAM property
CPUTune @ init: succeeded!
CPUTune @ disableTurboBoost: change 0x850089 to 0x4000850089 in MSR_IA32_MISC_ENABLE(0x1a0)
CPUTune @ disableProcHot: change 0x64005f to 0x64005e in MSR_IA32_POWERCTL(0x1fc)
CPUTune @ enableSpeedShift: 0x1 in MSR_IA32_PM_ENABLE(0x770) remains the same
CPUTune @ start: registerService
CPUTune @ readConfigAtRuntime: change MSR_IA32_HWP_REQUEST(0x774): 0x800d3008 -> 0x80193008
CPUTune @ readConfigAtRuntime: change MSR_IA32_HWP_REQUEST(0x774): 0x800d3008 -> 0x80193008
CPUTune @ stop: restore MSR_IA32_POWER_CTK from 0x64005e to 0x64005f
CPUTune @ stop: restore MSR_IA32_MISC_ENABLE from 0x4000850089 to 0x850089
CPUTune @ stop: restore MSR_IA32_PM_ENABLE from 0x1 to 0x0

@christophe-duc
Copy link
Contributor

christophe-duc commented May 24, 2020 via email

@christophe-duc
Copy link
Contributor

As for the turbo boost, maybe you need to restore IOPlatformPluginFamily.kext?

I tried to restore but it seems that IOPlatformPluginFamily takes over the control of the CPU and even if I have CPUTune.kext running I am not able to change the MSR register (or if they changed then IOPlatformPluginFamily change them back to the original value).

For this to work without a battery, it seems we do have to delete IOPlatformPluginFamily.

@syscl
Copy link
Owner

syscl commented May 24, 2020

@christophe-duc Do I understand it correctly: when IOPlatformPluginFamily is loaded, ProcHot cannot be overwritten in MSR? Because from what I've tried, I can change MSR for HWP, turbo boost ... So I'm curious about what's the problem we are seeing here.

@christophe-duc
Copy link
Contributor

christophe-duc commented May 24, 2020 via email

@christophe-duc
Copy link
Contributor

@syscl what's your original MSR_IA32_HWP_REQUEST setting? before modifying it.

Without battery I have:
CPUTune @ init: original value for MSR_IA32_HWP_REQUEST(0x774)=0x8000ff01

it does not seem right...

@nrdgnr
Copy link

nrdgnr commented May 25, 2020

Hi !

I m stuck at 800mhz with my 2011 MBP with oem battery. Is it enought to copy your kext file into /Library/Extensions folder?

Thanks in advance!

@christophe-duc
Copy link
Contributor

Hi !

I m stuck at 800mhz with my 2011 MBP with oem battery. Is it enought to copy your kext file into /Library/Extensions folder?

Thanks in advance!

It will start the kext automatically when loading the system. I would recommend to do a test first to see if it works and then after you have confirmed it is ok, you can put it permanently into the /Library/Extensions folder.

Check also the base CPU speed (without turbo boost) that's what you should get.

@nrdgnr
Copy link

nrdgnr commented May 25, 2020

Thank you for your quick response.

Do you mean to test with the xcode project?

Sorry for the questions..

@christophe-duc
Copy link
Contributor

just download the pre-compiled kext if you don't want to recompile it.

unzip it in your favorite directory, change the ownership to root:wheel, and load the kext.

sudo chown -R root:wheel CPUTune.kext
sudo kextutils -v 6 CPUTune.kext

see the how to if you need.

@syscl
Copy link
Owner

syscl commented May 25, 2020

@syscl what's your original MSR_IA32_HWP_REQUEST setting? before modifying it.

Without battery I have:
CPUTune @ init: original value for MSR_IA32_HWP_REQUEST(0x774)=0x8000ff01

it does not seem right...

My original value was 0x800d3008:

cat /var/log/cputune.kext.log
CPUTune @ CPUInfo: cpu model: 0x9e
CPUTune @ cpu-tune-panic not existed in NVRAM property
CPUTune @ init: succeeded!
CPUTune @ disableTurboBoost: change 0x850089 to 0x4000850089 in MSR_IA32_MISC_ENABLE(0x1a0)
CPUTune @ disableProcHot: change 0x64005f to 0x64005e in MSR_IA32_POWERCTL(0x1fc)
CPUTune @ enableSpeedShift: 0x1 in MSR_IA32_PM_ENABLE(0x770) remains the same
CPUTune @ start: registerService
CPUTune @ readConfigAtRuntime: change MSR_IA32_HWP_REQUEST(0x774): 0x800d3008 -> 0x80193008
// repeat ...
CPUTune @ readConfigAtRuntime: change MSR_IA32_HWP_REQUEST(0x774): 0x800d3008 -> 0x80193008
CPUTune @ stop: restore MSR_IA32_POWER_CTK from 0x64005e to 0x64005f
CPUTune @ stop: restore MSR_IA32_MISC_ENABLE from 0x4000850089 to 0x850089
CPUTune @ stop: restore MSR_IA32_PM_ENABLE from 0x1 to 0x0

@christophe-duc could you try to use the latest version (v2.0.2) and see? From the log you sent, it seems to be an old version.

@syscl
Copy link
Owner

syscl commented May 25, 2020

Hi !

I m stuck at 800mhz with my 2011 MBP with oem battery. Is it enought to copy your kext file into /Library/Extensions folder?

Thanks in advance!

@nrdgnr Yes, but I would recommend you test it before putting into /L*/E*.

Here's a precompiled binary(v2.0.2).

You can also try to enable turbo boost via echo 1 >/tmp/CPUTuneTurboBoostRT.conf to see if this enable turbo boost on your MBP.

@nrdgnr
Copy link

nrdgnr commented May 25, 2020

Thank you for your answers. I will try tonight..

All the best !

@syscl
Copy link
Owner

syscl commented May 26, 2020

Feel free to try the latest 2.0.7 which brings a new feature that can control the maximum frequency of each cores when turbo is enabled. :)

@nrdgnr
Copy link

nrdgnr commented May 27, 2020

just download the pre-compiled kext if you don't want to recompile it.

unzip it in your favorite directory, change the ownership to root:wheel, and load the kext.

sudo chown -R root:wheel CPUTune.kext
sudo kextutils -v 6 CPUTune.kext

see the how to if you need.

Hi , thank you for your support.

I’ve made a clean catalina install (dosdude1 method) to my 2011 mbp with defective gpu. I tried above but probably i missed something or i didn’t understad well because super noob here..

If we consider that i put the kext file into /users/shared folder , could you give me exact order for the terminal one more time please?

Thanks

@90111
Copy link

90111 commented Jun 13, 2020

@nrdgnr
I restore IOPlatformPluginFamily.kext, remove Nobattery.kext, move CPUTune /Library/Extensions

sudo chown
sudo kextcache -i /
sudo reboot

It have a panic when boot. What should I do?

@syscl
Copy link
Owner

syscl commented Jun 13, 2020

@90111 you should remove CPUTune from safe/recovery mode. Then reboot.

@nrdgnr
Copy link

nrdgnr commented Jun 13, 2020

@nrdgnr
I restore IOPlatformPluginFamily.kext, remove Nobattery.kext, move CPUTune /Library/Extensions

sudo chown
sudo kextcache -i /
sudo reboot

It have a panic when boot. What should I do?

Actually , those methods are not worked for me . Even i could not boot os in safe mode so i needed to restore macos.

I'm currently using nobatterynoproblem.kext and loading manually via terminal after reeboot and sleep mode all the time until a permanent solution will come up.

@90111
Copy link

90111 commented Jun 13, 2020

@syscl
I know I should remove first, but I can't boot in safe mode.
I think CPUTune1.9.5 may works, because only it can load without reboot instantly. But 1.9.5 can only enable Turbo, I have already type echo 0 > /tmp/CPUTuneProcHotRT.conf
the log only out something about Turbo.
Could you provide me a version based on 1.9.5 which could disable PROCHOT? In fact what I need is just when boot system it can disable PROCHOT automatically.
Thanks in advance.

@yyrikz
Copy link

yyrikz commented Jun 13, 2020

@syscl
I know I should remove first, but I can't boot in safe mode.
I think CPUTune1.9.5 may works, because only it can load without reboot instantly. But 1.9.5 can only enable Turbo, I have already type echo 0 > /tmp/CPUTuneProcHotRT.conf
the log only out something about Turbo.
Could you provide me a version based on 1.9.5 which could disable PROCHOT? In fact what I need is just when boot system it can disable PROCHOT automatically.
Thanks in advance.

https://www.youtube.com/watch?v=tGq8RlTYHwA remove in recovery mode.

@90111
Copy link

90111 commented Jun 14, 2020

@nrdgnr
Now I use NobatteryNoprblem.kext to disable PROCHOT, but it will disable Turbo too. So I use Turbo-Boost-Switcher to enable Turbo. It may be complex but it works well on my mbp.

@nrdgnr
Copy link

nrdgnr commented Jun 14, 2020

@nrdgnr
Now I use NobatteryNoprblem.kext to disable PROCHOT, but it will disable Turbo too. So I use Turbo-Boost-Switcher to enable Turbo. It may be complex but it works well on my mbp.

@90111
Thank you for the info. I'm gonna try it out tonight. Have you tried to copy NobatteryNoprblem.kext from /tmp folder to /Library/Extensions to auto-load on startup ?

@90111
Copy link

90111 commented Jun 15, 2020

@nrdgnr
I tried but it seems doesn't work. Can it load automatically with boot on you mac?

@nrdgnr
Copy link

nrdgnr commented Jun 15, 2020

@90111

Nope. I couldn't load on boot..

@christophe-duc
Copy link
Contributor

I created a slack channel here, if you find easier to discuss there:

https://join.slack.com/t/cputune/shared_invite/zt-f48vlclf-0JSwNRYMUNKwQnJtUSu7Jg

@yyrikz
Copy link

yyrikz commented Jun 19, 2020

I took a look in the cpu backtrace frame, here's what've found from @yyrikz and @nrdgnr 's screenshot

1.9.0 with ProcHot: Range: 0xffffff7f8fc96000->0xffffff7f8fca1fff

->0xffffff7f8fc99897 writeBufferToFile(char const*, char*) (in CPUTune) + 55
->0xffffff7f8fc99b5a cputune_os_log (in CPUTune) + 234
->0xffffff7f8fc99333 NVRAMUtils::getNVRAMEntry() const (in CPUTune) + 83
->0xffffff7f8fc9904e NVRAMUtils::getProperty(char const*, void*, unsigned long*) const (in CPUTune) + 78
->0xffffff7f8fc98f90 NVRAMUtils::isKextPanicLastBoot() const (in CPUTune) + 112
->0xffffff7f8fc97428 CPUTune::init(OSDictionary*) (in CPUTune) + 120

2.1.1: Range 0xffffff7f8a70f000 -> 0xffffff7f8a71bfff

->0xffffff7f8a7135f9 char getBuildMonth<1ul>() (in CPUTune) (kern_util.hpp:208)
->0xffffff7f8a7138d7 cputune_os_log (in CPUTune) (kern_util.cpp:125)
->0xffffff7f8a71241f CPUTune::free() (in CPUTune) (CPUTune.cpp:373)
->0xffffff7f8a7107e5 CPUTune::MetaClass::MetaClass() (in CPUTune) (CPUTune.cpp:16)

One thing may cause the panic will be the NVRAMUtils, which did the check at boot. Feel free to give NoNVRAM2.1.5.zip a try and let me know the result. Thanks.

When I try to load that kext, I have KP...

Only v 1.9.0 can load without reboot instantly...

Tks.

LOG:

panic(cpu 0 caller 0xffffff8008e4aa3a): Kernel trap at 0xffffff7f8c580e2c, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x000070000f6fb000, CR3: 0x000000000cf4b000, CR4: 0x00000000001626e0
RAX: 0x000000000004005f, RBX: 0x0000000000000000, RCX: 0x0000000000000774, RDX: 0x0000000000000000
RSP: 0xffffff90cc31bde4, RBP: 0xffffff90cc31bdf0, RSI: 0x000000000004005f, RDI: 0x0000000000000774
R8: 0x000000000004005f, R9: 0xffffff801730d200, R10: 0x0000000034afdd51, R11: 0x0000000000000000
R12: 0xffffff801c693400, R13: 0xffffff801f9dd020, R14: 0x0000000000000000, R15: 0xffffff801f980140
RFL: 0x0000000000010296, RIP: 0xffffff7f8c580e2c, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x000070000f6fb000, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff8008b51220 : 0xffffff8008d1f5cd
0xffffff8008b51270 : 0xffffff8008e58b05
0xffffff8008b512b0 : 0xffffff8008e4a68e
0xffffff8008b51300 : 0xffffff8008cc5a40
0xffffff8008b51320 : 0xffffff8008d1ec97
0xffffff8008b51420 : 0xffffff8008d1f087
0xffffff8008b51470 : 0xffffff80094c27cc
0xffffff8008b514e0 : 0xffffff8008e4aa3a
0xffffff8008b51660 : 0xffffff8008e4a738
0xffffff8008b516b0 : 0xffffff8008cc5a40
0xffffff8008b516d0 : 0xffffff7f8c580e2c
0xffffff90cc31bdf0 : 0xffffff7f8c580c3f
0xffffff90cc31be40 : 0xffffff8009407d71
0xffffff90cc31bef0 : 0xffffff800940757e
0xffffff90cc31bf50 : 0xffffff8009409d36
0xffffff90cc31bfa0 : 0xffffff8008cc513e
Kernel Extensions in backtrace:
org.syscl.driver.CPUTune(2.1.5)[B54CEDC5-B4E4-3BD4-AB9D-F3B58EAC059B]@0xffffff7f8c57f000->0xffffff7f8c588fff

System uptime in nanoseconds: 275534710937
last loaded kext at 275510716572: org.syscl.driver.CPUTune 2.1.5 (addr 0xffffff7f8c57f000, size 40960)

@syscl
Copy link
Owner

syscl commented Jun 20, 2020

@yyrikz @nrdgnr @90111 I've just fixed a kernel panic on platform that does not support HWP/SpeedShift. The CPUTune (v1.9.9+) reads MSR_IA32_HWP_REQUEST on no HWP CPUs, which cause the issue. Feel free to give CPUTune v2.1.6 a try and let me know if it works. Thanks!

@syscl
Copy link
Owner

syscl commented Jun 20, 2020

@lincolnlemos @nrdgnr @christophe-duc @90111 @yyrikz root cause the KP at boot time. I will file a fix shortly, after that feel free to enjoy reboot with CPUTune.kext!

@syscl
Copy link
Owner

syscl commented Jun 20, 2020

Feel free to test the CPUTune(v2.1.7) which fixed the kernel panic at bootstrap! No more KP!

@yyrikz
Copy link

yyrikz commented Jun 21, 2020

WOW! Looks like a charm!! NO KP!!! Huge thanks!!!

@yyrikz
Copy link

yyrikz commented Jun 24, 2020

The project works on the new Big Sur OS? I was thinking of installing it when a stable version came out.

@rnt0
Copy link

rnt0 commented Jul 30, 2020

Hey, I'm trying to use it on El Captain but everytime I load the kext the system crashes.
Tried also to compile it in Xcode 8.2 without any success.

Version 2.1.7 crashes the system and versions 2.1.5 noNVRAM can't load and I dont know why.

I also tried to use NoBatteryNoProblem and it solves the problem, however the system keeps at maximum power and heats a lot.

@syscl
Copy link
Owner

syscl commented Jul 30, 2020

@rnt0 could you please open a new issue and describe your case speicifically?

@rnt0
Copy link

rnt0 commented Jul 30, 2020

@rnt0 could you please open a new issue and describe your case speicifically?

Done:
#14

Thanks

@syscl syscl closed this as completed Jul 30, 2020
syscl pushed a commit that referenced this issue Aug 31, 2020
@Nick-Z0
Copy link

Nick-Z0 commented Jun 27, 2021

Hello everyone, I am also trying to run my macbook without a battery following the tutorial by @christophe-duc in the first post but after spending the whole day on it without any luck, I finally managed to do it on my last try before posting here and asking for a compiled version. I just want to share what helped me to spare other people some time.

I was unable to compile it. I am on MacOS 10.14.6, I had xcode 11.0 that did not work, tried to install SDK for 10.14 as per a commenter on the tutorial post, did not work, installed xcode 10.3 tried again but did not work either (always changing deployment info to 10.14).

In the end I after searching the errors I got, I found this answer on stackoverflow that opening .xcodeproj instead of .xcworkspace will cause some errors. I was trying to compile CPUTuneApp and CPUTuneCore separately, only managing to compile the latter with success.

So the proper way to compile it is:

  1. Use correct version of Xcode that has SDK for your OS.
  2. Open ONLY CPUTune.xworkspace
  3. Change deployment to match your OS (click blue icon on the left CPUTuneCore, select Build Settings, Levels, and then set everything in macOS Deployment target to your OS. Then on the second list directly left of the Deployment target, select the other files and also change Deployment target. Finally, select the other blue icon CPUTuneApp and repeat the steps to change deployment target for everything.
  4. Click Play icon/Compile and hopefully you will get build succeeded message.

And again, thanks @syscl and @christophe-duc for fixing the problems apple creates.

@christophe-duc
Copy link
Contributor

Hi @Nick-Z0

Thanks for the contribution, would you be ok if I include your instructions in the blogpost (giving you credit of course).

Best regards,
Christophe.

@Nick-Z0
Copy link

Nick-Z0 commented Jun 27, 2021

Hi @Nick-Z0

Thanks for the contribution, would you be ok if I include your instructions in the blogpost (giving you credit of course).

Best regards,
Christophe.

Sure, thats why I wrote it.
You could also add this screenshot if you want, which is what you see when opening the .xworkspace file instead of only the .xcodeproj like is shown in yours.

Best regards,
Nick

steps

@christophe-duc
Copy link
Contributor

Thanks a lot @Nick-Z0 , I have already updated the blog post, let me know if you wish to make any changes.

Cheers!

@syscl
Copy link
Owner

syscl commented Jun 27, 2021

Thanks @Nick-Z0 for the information will update the guide, cc @schdt899 in case you have any idea the following message
image

@Nick-Z0
Copy link

Nick-Z0 commented Jun 29, 2021

@christophe-duc @syscl Hello again, I am having some issues making it stick. After a reboot the kext is loaded (I can see it in kextstat) but it is not working (CPU frequency limited).

To make it work I need to:
1.sudo kextunload /Library/Extensions/CPUTuneCore.kext
2.sudo chown -R root:wheel /Library/Extensions/CPUTuneCore.kext (this is needed, without this I couldn't make it work)
3.sudo kextutil -v /Library/Extensions/CPUTuneCore.kext
4. put macbook to sleep and wake up

only then does it work again. Do you have any suggestions I can try?

I also have some other less important questions:

  1. What does this command do? echo 1>/tmp/CPUTuneTurboBoostRT.conf It does not seem to work for me, unlike the turboboost switcher app. I can't see any difference when opening that file with textedit when enabled/disabled.
  2. Is there a command to check the status of turbo boost?
  3. Is there a difference between CpuTune.kext and CPUTuneCore.kext? (If I understood correctly the only thing that compiles in the end is CPUTuneCore.kext and CPUTune.kext was an older version.) In the blog post CPUTune.kext is mentioned and is nowhere to be found, maybe change the names or just write that CPUTuneCore.kext is the new name, to avoid some confusion for noobs like me. :P
  4. I can't find any logs as mentioned in the blog post in "/var/log/cputune.kext.log".
  5. Is it safe to run with csrutil enable --without kext ?
  6. Is there a UI? What is this in the picture on the right?

Thanks in advance for your answer!

@JudeDvlp
Copy link

Does anyone know if it cputune.kext works in Big Sur?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants