syscl / cputune Goto Github PK
View Code? Open in Web Editor NEWAn open source kernel extension enables dynamic CPU performance tuning at runtime for macOS.
An open source kernel extension enables dynamic CPU performance tuning at runtime for macOS.
Hey there, great work on this program, it's helped me since I have a 2015 AMD 15" MacBook Pro, and for whatever reason when the dGPU is above 65-70C, or is utilised somewhat heavily, my CPU throttles like crazy. I've verified this by having the same usage but only the integrated GPU is enabled (dGPU forced disabled using gfxCardStatus), and it results in no throttling of any sorts. Together with VoltageShift for undervolting and setting power limits to get my frequencies similar to with BD PROCHOT enabled but no throttling, and Macs Fan Control, this is perfect for the way I want my MacBook Pro to be controlling its CPU (from my limited knowledge, it feels smooth and responsive at least this way rather than throttling seemingly randomly).
Back to my points. Firstly, a feature request: would it be possible to set all the settings based on power source? For my case, I'd like Turbo Boost enabled, BD PROCHOT disabled (for the dGPU throttling), and max frequency turbo rate limits when on AC power, since according to Apple, the battery is basically idle (un-utilised) and unplugged. On battery, I'd like Turbo disabled, BD PROCHOT enabled (I won't be using the dGPU when on battery anyway unless absolutely necessary like emergency photo editing or something), and some custom maximum frequency Turbo Rate Limits settings.
This leads to my second point, which is an issue: I could try to make a script for this, except I noticed one issue: when I change the settings (either in Info.plist or by using the echo commands in the README.md), it doesn't change immediately. As a matter of fact, it was so delayed that when I first enabled Turbo Boost while disabling BD PROCHOT (with both methods), I was expecting a kernel panic like you said in your blogpost, but it didn't happen until a solid 20 minutes later, despite multiple attempts to run sudo kextunload [path to CPUTune.kext]
and sudo kextutil -v [path to CPUTune.kext]
. I didn't get any further panics, reboots or shutdown after the initial one, and have since moved the .kext to /Library/Extensions, but if I was to make a script that changes these settings on the fly depending on power options (no clue about how to work with kexts heh, only thing I could do is change CPUTune settings and un+reload the kext using a shell script), having such a delayed update in settings would not be beneficial at all.
Thank you so much for this program, CPUTune + VoltageShift is like the ThrottleStop of macOS (not like I wanted to use Windows but the games I play don't run on macOS or Linux because of anti-cheat so I had to use ThrottleStop for some CPU issues on my desktop + Bootcamp).
(P.S. maybe you could work with the VoltageShift devs to make a full ThrottleStop alternative? hmm... I could only dream...)
System crashes and reboots when the kext is loaded on macOS 13.0.
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 #4 (comment). 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 !!!
I'm running 10.14.6, the build runs fine (xcode 11.3) but I get this error while loading the kext
(kernel) kxld[org.syscl.driver.CPUTune]: The super class vtable '__ZTV9IOService' for vtable '__ZTV7CPUTune' is out of date. Make sure your kext has been built against the correct headers.
This issue #2 mentions to install the Mojave SDK to fix the error but didn't solve it for me, not sure if I'm missing something besides installing the SDK package that comes in the xcode command line tools.
Helo, A have Macbook Pro Mid 2010, High Sierra 10.13.6, Xcode 10.1, I downloaded and compiled from GitHub CpuTune with some issues but Compile ran successfully (I tried build option 10.13, 10.14) . When I'm running
sudo kextutil -v CPUTuneCore.kext my Mac is reseting . I did every steps in instruction.
What wrong am I doing ?
Hi,
Is it possible to use CPUTune on MacOS BigSur Beta 10?
Is there a version of CPUTune already compiled for Download, Or some kind of tutorial on how to compile the source code by XCODE?
Tks.
Armando
Hello Everyone,
I am new on coding and I just want to disable the turboboost with CPUTune However, when ı try to load Cputune, Terminal alerts ''Kext with invalid signature (-67050) denied'' Of course some of yours can say you must be disable the SIP but my SIP is disable. How can I solve this problem ?
Thanks for everyone.
although memory leak doesn't happen anymore, but the cpu somehow still capped at 1.5 Ghz, BD_PROCHOT option does not effect on my bad battery @christophe-duc plz help me
I did notice that Bi-Directional Processor Hot is disabled by CPUTUNE in the config but does no effect on the throttle
AppleIntelInfo.kext v2.9 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.
Settings:
------------------------------------------
logMSRs..................................: 1
logIGPU..................................: 1
logCStates...............................: 1
logIPGStyle..............................: 1
InitialTSC...............................: 0x7ae993e4b000 (5875 MHz)
MWAIT C-States...........................: 286531872
Processor Brandstring....................: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Processor Signature..................... : 0x806E9
------------------------------------------
- Family............................... : 6
- Stepping............................. : 9
- Model................................ : 0x8E (142)
Model Specific Registers (MSRs)
------------------------------------------
MSR_IA32_PLATFORM_ID.............(0x17) : 0x18000000000000
------------------------------------------
- Processor Flags...................... : 6
MSR_CORE_THREAD_COUNT............(0x35) : 0x20004
------------------------------------------
- Core Count........................... : 2
- Thread Count......................... : 4
MSR_PLATFORM_INFO................(0xCE) : 0xA04043BF1011700
------------------------------------------
- Maximum Non-Turbo Ratio.............. : 0x17 (2300 MHz)
- Ratio Limit for Turbo Mode........... : 1 (programmable)
- TDP Limit for Turbo Mode............. : 1 (programmable)
- Low Power Mode Support............... : 1 (LPM supported)
- Number of ConfigTDP Levels........... : 1 (additional TDP level(s) available)
- Maximum Efficiency Ratio............. : 4
- Minimum Operating Ratio.............. : 4
MSR_PMG_CST_CONFIG_CONTROL.......(0xE2) : 0x7E000008
------------------------------------------
- I/O MWAIT Redirection Enable......... : 0 (not enabled)
- CFG Lock............................. : 0 (MSR not locked)
- C3 State Auto Demotion............... : 1 (enabled)
- C1 State Auto Demotion............... : 1 (enabled)
- C3 State Undemotion.................. : 1 (enabled)
- C1 State Undemotion.................. : 1 (enabled)
- Package C-State Auto Demotion........ : 1 (enabled)
- Package C-State Undemotion........... : 1 (enabled)
MSR_PMG_IO_CAPTURE_BASE..........(0xE4) : 0x51814
------------------------------------------
- LVL_2 Base Address................... : 0x1814
- C-state Range........................ : 5 (C-States not included, I/O MWAIT redirection not enabled)
IA32_MPERF.......................(0xE7) : 0x156F5D754345
IA32_APERF.......................(0xE8) : 0xD59F4A4764D
MSR_FLEX_RATIO...................(0x194) : 0x110000
------------------------------------------
MSR_IA32_PERF_STATUS.............(0x198) : 0x166500000F00
------------------------------------------
- Current Performance State Value...... : 0xF00 (1500 MHz)
MSR_IA32_PERF_CONTROL............(0x199) : 0x900
------------------------------------------
- Target performance State Value....... : 0x900 (900 MHz)
- Intel Dynamic Acceleration........... : 0 (IDA engaged)
IA32_CLOCK_MODULATION............(0x19A) : 0x0
IA32_THERM_INTERRUPT.............(0x19B) : 0x10
------------------------------------------
- High-Temperature Interrupt Enable.... : 0 (disabled)
- Low-Temperature Interrupt Enable..... : 0 (disabled)
- PROCHOT# Interrupt Enable............ : 0 (disabled)
- FORCEPR# Interrupt Enable............ : 0 (disabled)
- Critical Temperature Interrupt Enable : 1 (enabled)
- Threshold #1 Value................... : 0
- Threshold #1 Interrupt Enable........ : 0 (disabled)
- Threshold #2 Value................... : 0
- Threshold #2 Interrupt Enable........ : 0 (disabled)
- Power Limit Notification Enable...... : 0 (disabled)
IA32_THERM_STATUS................(0x19C) : 0x882A0000
------------------------------------------
- Thermal Status....................... : 0
- Thermal Log.......................... : 0
- PROCHOT # or FORCEPR# event.......... : 0
- PROCHOT # or FORCEPR# log............ : 0
- Critical Temperature Status.......... : 0
- Critical Temperature log............. : 0
- Thermal Threshold #1 Status.......... : 0
- Thermal Threshold #1 log............. : 0
- Thermal Threshold #2 Status.......... : 0
- Thermal Threshold #2 log............. : 0
- Power Limitation Status.............. : 0
- Power Limitation log................. : 0
- Current Limit Status................. : 0
- Current Limit log.................... : 0
- Cross Domain Limit Status............ : 0
- Cross Domain Limit log............... : 0
- Digital Readout...................... : 42
- Resolution in Degrees Celsius........ : 1
- Reading Valid........................ : 1 (valid)
MSR_THERM2_CTL...................(0x19D) : 0x0
IA32_MISC_ENABLES................(0x1A0) : 0x4000850089
------------------------------------------
- Fast-Strings......................... : 1 (enabled)
- FOPCODE compatibility mode Enable.... : 0
- Automatic Thermal Control Circuit.... : 1 (enabled)
- Split-lock Disable................... : 0
- Performance Monitoring............... : 1 (available)
- Bus Lock On Cache Line Splits Disable : 0
- Hardware prefetch Disable............ : 0
- Processor Event Based Sampling....... : 0 (PEBS supported)
- GV1/2 legacy Enable.................. : 0
- Enhanced Intel SpeedStep Technology.. : 1 (enabled)
- MONITOR FSM.......................... : 1 (MONITOR/MWAIT supported)
- Adjacent sector prefetch Disable..... : 0
- CFG Lock............................. : 0 (MSR not locked)
- xTPR Message Disable................. : 1 (disabled)
MSR_TEMPERATURE_TARGET...........(0x1A2) : 0x640000
------------------------------------------
- Turbo Attenuation Units.............. : 0
- Temperature Target................... : 100
- TCC Activation Offset................ : 0
MSR_MISC_PWR_MGMT................(0x1AA) : 0x401CC1
------------------------------------------
- EIST Hardware Coordination........... : 1 (hardware coordination disabled)
- Energy/Performance Bias support...... : 1
- Energy/Performance Bias.............. : 0 (disabled/MSR not visible to software)
- Thermal Interrupt Coordination Enable : 1 (thermal interrupt routed to all cores)
- SpeedShift Technology Enable......... : 1 (enabled)
- SpeedShift Interrupt Coordination.... : 1 (enabled)
- SpeedShift Energy Efficient Perf..... : 1 (enabled)
- SpeedShift Technology Setup for HWP.. : Yes (setup for HWP)
MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x24242424
------------------------------------------
- Maximum Ratio Limit for C01.......... : 24 (3600 MHz)
- Maximum Ratio Limit for C02.......... : 24 (3600 MHz)
IA32_ENERGY_PERF_BIAS............(0x1B0) : 0x5
------------------------------------------
- Power Policy Preference...............: 5 (balanced performance and energy saving)
MSR_POWER_CTL....................(0x1FC) : 0x24005E
------------------------------------------
- Bi-Directional Processor Hot..........: 0 (disabled)
- C1E Enable............................: 1 (enabled)
MSR_RAPL_POWER_UNIT..............(0x606) : 0xA0E03
------------------------------------------
- Power Units.......................... : 3 (1/8 Watt)
- Energy Status Units.................. : 14 (61 micro-Joules)
- Time Units .......................... : 10 (976.6 micro-Seconds)
MSR_PKG_POWER_LIMIT..............(0x610) : 0x4283E800DD8320
------------------------------------------
- Package Power Limit #1............... : 100 Watt
- Enable Power Limit #1................ : 1 (enabled)
- Package Clamping Limitation #1....... : 1 (allow going below OS-requested P/T state during Time Window for Power Limit #1)
- Time Window for Power Limit #1....... : 110 (163840 milli-Seconds)
- Package Power Limit #2............... : 125 Watt
- Enable Power Limit #2................ : 1 (enabled)
- Package Clamping Limitation #2....... : 0 (disabled)
- Time Window for Power Limit #2....... : 33 (10 milli-Seconds)
- Lock................................. : 0 (MSR not locked)
MSR_PKG_ENERGY_STATUS............(0x611) : 0x731AB8E1
------------------------------------------
- Total Energy Consumed................ : 117866 Joules (Watt = Joules / seconds)
MSR_PP0_POWER_LIMIT..............(0x638) : 0x0
MSR_PP0_ENERGY_STATUS............(0x639) : 0x206262E3
------------------------------------------
- Total Energy Consumed................ : 33161 Joules (Watt = Joules / seconds)
MSR_PP0_POWER_LIMIT..............(0x638) : 0x0
MSR_PP0_ENERGY_STATUS............(0x639) : 0x206262FD
------------------------------------------
- Total Energy Consumed................ : 33161 Joules (Watt = Joules / seconds)
MSR_PP1_POWER_LIMIT..............(0x640) : 0x0
MSR_PP1_ENERGY_STATUS............(0x641) : 0x2276540
------------------------------------------
- Total Energy Consumed................ : 2205 Joules (Watt = Joules / seconds)
MSR_PP1_POLICY...................(0x642) : 0x18
------------------------------------------
- Priority Level....................... : 24
MSR_CONFIG_TDP_NOMINAL...........(0x648) : 0x17
MSR_CONFIG_TDP_LEVEL1............(0x649) : 0x5004C
MSR_CONFIG_TDP_LEVEL2............(0x64a) : 0x0
MSR_CONFIG_TDP_CONTROL...........(0x64b) : 0x0
MSR_TURBO_ACTIVATION_RATIO.......(0x64c) : 0x0
MSR_PKGC3_IRTL...................(0x60a) : 0x884E
MSR_PKGC6_IRTL...................(0x60b) : 0x8876
MSR_PKGC7_IRTL...................(0x60c) : 0x8894
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x4A8AE13ED50
MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x4478F58BB8CE
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x4A8AE13ED50
MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x4478F58BB8CE
MSR_PKG_C6_RESIDENCY.............(0x3f9) : 0xE86913336A
MSR_PKG_C7_RESIDENCY.............(0x3fa) : 0x127B9FA5CD1
MSR_PKG_C8_RESIDENCY.............(0x630) : 0x3300DA561CA
MSR_PKG_C9_RESIDENCY.............(0x631) : 0xDCE89DCBA
MSR_PKG_C10_RESIDENCY............(0x632) : 0xB124F29B8AF
MSR_PKG_C8_LATENCY...............(0x633) : 0x3300DA561CA
MSR_PKG_C9_LATENCY...............(0x634) : 0xDCE89DCBA
MSR_PKG_C10_LATENCY..............(0x635) : 0xB124F29B8AF
MSR_PLATFORM_ENERGY_COUNTER......(0x64D) : 0x0 (not supported by hardware/BIOS)
MSR_PPERF........................(0x64E) : 0xBF0A2A1C97F
------------------------------------------
- Hardware workload scalability........ : 13128148568447
MSR_CORE_PERF_LIMIT_REASONS......(0x64F) : 0x0
HDC Supported
IA32_PKG_HDC_CTL.................(0xDB0) : 0x0
IA32_PM_CTL1.....................(0xDB1) : 0x1
------------------------------------------
HDC Allow Block..................(0xDB1) : 1 (HDC blocked)
IA32_THREAD_STALL................(0xDB2) : 0x0
MSR_PKG_HDC_CONFIG...............(0x652) : 0x2
------------------------------------------
Pkg Cx Monitor ..................(0x652) : 2 (count package C3 and deeper)
MSR_CORE_HDC_RESIDENCY...........(0x653) : 0x0
MSR_PKG_HDC_SHALLOW_RESIDENCY....(0x655) : 0x0
MSR_PKG_HDC_DEEP_RESIDENCY.......(0x656) : 0x0
IA32_TSC_DEADLINE................(0x6E0) : 0x7AE999330430
MSR_PPERF........................(0x63E) : 0x1 (20)
IA32_PM_ENABLE...................(0x770) : 0x1 (HWP Supported and Enabled)
IA32_HWP_CAPABILITIES............(0x771) : 0x1081724
-----------------------------------------
- Highest Performance.................. : 36
- Guaranteed Performance............... : 23
- Most Efficient Performance........... : 8
- Lowest Performance................... : 1
IA32_HWP_INTERRUPT...............(0x773) : 0x1
------------------------------------------
- Guaranteed Performance Change........ : 1 (Interrupt generated on change of)
- Excursion Minimum.................... : 0 (Interrupt generation disabled)
IA32_HWP_REQUEST................(0x774) : 0x800F0F04
-----------------------------------------
- Minimum Performance................. : 4
- Maximum Performance................. : 15
- Desired Performance................. : 15
- Energy Efficient Performance........ : 128
- Activity Window..................... : 0, 0
- Package Control..................... : 0
IA32_HWP_STATUS..................(0x777) : 0x4
-----------------------------------------
- Guaranteed Performance Change....... : 0 (has not occured)
- Excursion To Minimum................ : 1 (has occured)
CPU Ratio Info:
------------------------------------------
Base Clock Frequency (BLCK)............. : 100 MHz
Maximum Efficiency Ratio/Frequency.......: 4 ( 400 MHz)
Maximum non-Turbo Ratio/Frequency........: 23 (2300 MHz)
Maximum Ratio/Frequency..................: 23 (2300 MHz)
IGPU Info:
------------------------------------------
IGPU Current Frequency...................: 0 MHz
IGPU Minimum Frequency...................: 300 MHz
IGPU Maximum Non-Turbo Frequency.........: 300 MHz
IGPU Maximum Turbo Frequency.............: 1000 MHz
IGPU Maximum limit.......................: 1000 MHz
P-State ratio * 100 = Frequency in MHz
------------------------------------------
CPU P-States [ (15) ] iGPU P-States [ ]
CPU C3-Cores [ 0 1 2 3 ]
CPU C7-Cores [ 0 1 2 3 ]
CPU P-States [ (15) ] iGPU P-States [ ]
CPU P-States [ (13) 15 ] iGPU P-States [ ]
CPU P-States [ (13) 15 ] iGPU P-States [ (30) ]
CPU P-States [ 13 15 (23) ] iGPU P-States [ 30 ]
CPU P-States [ 13 (14) 15 23 ] iGPU P-States [ 30 ]
CPU P-States [ (4) 13 14 15 23 ] iGPU P-States [ 30 ]
I've been trying different ways to get this work but it just doesn't work
Im on El Capitan
*edit it's stddef.h
Hi there,
I have a old MBP 5,5 without a working battery and I was very happy to find out about CPUTune and it's possibilities. Thank you so much for your effort, this may safe many old macs from being trashed too early!
However, on EL Capitan (latest OSX for my MBP), the latest Xcode is 8.1 and CPUTune.kext doesn't compile on 8.1: CPUTuneApp project can not be openend, due to "incompatible file version".
Then I tried the precompiled kext I found here: https://github.com/syscl/CPUTune/files/4678021/CPUTune.kext.zip.
This kext doesn't load (with SIP disabled of course), because it was compiled against incompatible headers.
Is there any way I can make CPUTune run under El Capitan?
Thank you again,
Frank
Having an issue building for 10.13 as the machine im on is 10.13 and thus max xcode version i can use is unable to open CPUTuneApp. If someone could release some prebuilt CPUTune.kext files for common os's that would be much appreciated and make this utility easier to access I would do it myself if was able to open the CPUTuneApp files.
I Have updated my mac Catalina 10.15.5 to 10.15.6 and CPUTune kext stop working.
I have followed this step again but still the same result.
it stop loading kext on startup.
i have put kext in /Library/Extension
https://portugnole.blogspot.com/2020/05/running-macbook-without-battery-lets-go.html
Hi, sorry don't know how to contact you directly to have a chat :)
I am still trying to understand why Turboboost needs to be off when battery is out, and I have analyzed some of the IOPlatformPlugins and especially X86PlatformShim, where I think the problem is coming from.
Would you be able to share what you see from the IOReg with a battery and turboboost disabled for the following keys (they are under the X86PlatformPlugin)?
Thanks
Tried using your kext on apple's new beta with mbp2019 16inch.
panic(cpu 0 caller 0xffffff800fbe6f86): Kernel trap at 0xffffff7faeca9f9c, type 13=general protection, registers:
CR0: 0x0000000080010033, CR2: 0xffffffa07ef29000, CR3: 0x0000000023d61000, CR4: 0x00000000003626e0
RAX: 0x000000000064005f, RBX: 0xffffff86c3d77780, RCX: 0x0000000000000774, RDX: 0x0000000000000000
RSP: 0xffffffb09cffbde4, RBP: 0xffffffb09cffbdf0, RSI: 0x000000000064005f, RDI: 0x0000000000000774
R8: 0x000000000064005f, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0xffffff86c3df93b8, R13: 0xffffff86bfa62d00, R14: 0x0000000000000000, R15: 0xffffff86c3df9348
RFL: 0x0000000000010296, RIP: 0xffffff7faeca9f9c, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffffa07ef29000, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0
Backtrace (CPU 0), Frame : Return Address
0xffffff800f9561e0 : 0xffffff800fab70bd
0xffffff800f956230 : 0xffffff800fbf6053
0xffffff800f956270 : 0xffffff800fbe6bba
0xffffff800f9562c0 : 0xffffff800fa5ca2f
0xffffff800f9562e0 : 0xffffff800fab68fd
0xffffff800f956400 : 0xffffff800fab6bf3
0xffffff800f956470 : 0xffffff80102b7f6a
0xffffff800f9564e0 : 0xffffff800fbe6f86
0xffffff800f956660 : 0xffffff800fbe6c6d
0xffffff800f9566b0 : 0xffffff800fa5ca2f
0xffffff800f9566d0 : 0xffffff7faeca9f9c
0xffffffb09cffbdf0 : 0xffffff7faeca9d92
0xffffffb09cffbe40 : 0xffffff80101eaf4d
0xffffffb09cffbef0 : 0xffffff80101ea61f
0xffffffb09cffbf50 : 0xffffff80101ed386
0xffffffb09cffbfa0 : 0xffffff800fa5c13e
Kernel Extensions in backtrace:
org.syscl.driver.CPUTune(2.1.7)[1D6045B6-E42C-3054-87BA-865BD55F9E32]@0xffffff7faeca8000->0xffffff7faecadfff
Process name corresponding to current thread: kernel_task
Boot args: -v -cputbeta chunklist-security-epoch=0 -chunklist-no-rev2-dev
Mac OS version:
20A5323l
Kernel version:
Darwin Kernel Version 20.0.0: Wed Jul 15 21:07:06 PDT 2020; root:xnu-7155.0.0.131.6~1/RELEASE_X86_64
Kernel UUID: 4246D7A0-FD50-3D38-BCF0-4BB1D86F38F1
KernelCache slide: 0x000000000f800000
KernelCache base: 0xffffff800fa00000
Kernel slide: 0x000000000f80c000
Kernel text base: 0xffffff800fa0c000
__HIB text base: 0xffffff800f900000
System model name: MacBookPro16,1 (Mac-E1008331FDC96864)
System shutdown begun: NO
Hibernation exit count: 0
System uptime in nanoseconds: 22375137286
Last Sleep: absolute base_tsc base_nano
Uptime : 0x00000005390e0e6b
Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000
Wake : 0x0000000000000000 0x00000004268386cc 0x0000000000000000
last started kext at 21101927700: com.paragon-software.kext.VDMounter 4.2 (addr 0xffffff7faeda8000, size 372736)
loaded kexts:
com.paragon-software.kext.VDMounter 4.2
org.syscl.driver.CPUTune 2.1.7
com.intel.driver.EnergyDriver 3.6.0
>pmtelemetry 1
>LuaHardwareAccess 1.0.16
|IOUserEthernet 1.0.1
>usb.!UUserHCI 1
|IO!BSerialManager 8.0.0d41
@Dont_Steal_Mac_OS_X 7.0.0
>!AHV 1
>!ADiskImages2 1
>!A!IPCHPMC 2.0.1
>BridgeAudioCommunication 6.76
>!AAVEBridge 6.1
>!A!ISlowAdaptiveClocking 4.0.0
>!AFileSystemDriver 3.0.1
>BCMWLANFirmware4378.Hashstore 1
>BCMWLANFirmware4377.Hashstore 1
>BCMWLANFirmware4364.Hashstore 1
>BCMWLANFirmware4355.Hashstore 1
@filesystems.hfs.kext 556
@BootCache 40
>!AVirtIO 72
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
>!ABCMWLANBusInterfacePCIeMac 1
@filesystems.apfs 1667.0.0
@private.KextAudit 1.0
>!ASmartBatteryManager 161.0.0
>!AACPIButtons 6.1
>!ASMBIOS 2.1
>!AACPIEC 6.1
>!AAPIC 1.7
@!ASystemPolicy 2.0.0
@nke.applicationfirewall 310
|IOKitRegistryCompatibility 1
|EndpointSecurity 1
|IOAVB!F 900.10
@plugin.IOgPTPPlugin 900.8
|IOEthernetAVB!C 1.1.0
@!AGPUWrangler 6.1.18
@!AGraphicsDeviceControl 6.1.18
>IOPlatformPlugin!F 6.0.0d8
@kext.AMDRadeonX6000HWServices 4.0.0
|IOGraphics!F 583
>!A!ILpssUARTv1 3.0.60
>!A!ILpssUARTCommon 3.0.60
>!AOnboardSerial 1.0
>!ASMBusPCI 1.0.14d1
|IOSlowAdaptiveClocking!F 1.0.0
>usb.IOUSBHostHIDDevice 1.2
>usb.cdc.ecm 5.0.0
>usb.cdc.ncm 5.0.0
>usb.cdc 5.0.0
>usb.networking 5.0.0
>usb.!UHostCompositeDevice 1.2
|IOSurface 289
@filesystems.hfs.encodings.kext 1
|IOAudio!F 300.6.1
@vecLib.kext 1.2.0
>!AThunderboltPCIDownAdapter 4.1.1
>!AThunderboltDPInAdapter 8.1.3
>!AThunderboltDPAdapter!F 8.1.3
>!AHPM 3.4.4
>!A!ILpssI2C!C 3.0.60
>!A!ILpssI2C 3.0.60
>!A!ILpssDmac 3.0.60
>!ABCMWLANCoreMac 1.0.0
|IOSerial!F 11
|IO80211!FV2 1200.12.2b1
|IOSkywalk!F 1
>mDNSOffloadUserClient 1.0.1b8
>IOImageLoader 1.0.0
>corecapture 1.0.4
>!AXsanScheme 3
>usb.!UVHCIBCE 1.2
>usb.!UVHCICommonBCE 1.0
>usb.!UVHCI 1.2
>usb.!UVHCICommon 1.0
>!AEffaceableNOR 1.0
|IOBufferCopy!C 1.1.0
|IOBufferCopyEngine!F 1
|IONVMe!F 2.1.0
>!AThunderboltNHI 7.2.8
|IOThunderbolt!F 9.3.2
>usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
>usb.!UXHCIPCI 1.2
>usb.!UXHCI 1.2
>!AEFINVRAM 2.1
>!AEFIRuntime 2.1
>!ASMCRTC 1.0
|IOSMBus!F 1.1
|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1
$!AImage4 3.0.0
|IOTimeSync!F 900.8
|IONetworking!F 3.4
>DiskImages 493.0.0
|IO!B!F 8.0.0d41
|IOReport!F 47
|IO!BPacketLogger 8.0.0d41
|CoreAnalytics!F 1
>!ASSE 1.0
>!AKeyStore 2
>!UTDM 511
|IOUSBMass!SDriver 183.0.0
|IOSCSIBlockCommandsDevice 435
|IO!S!F 2.1
|IOSCSIArchitectureModel!F 435
>!AMobileFileIntegrity 1.0.5
@kext.CoreTrust 1
>!AFDEKeyStore 28.30
>!AEffaceable!S 1.0
>!ACredentialManager 1.0
>KernelRelayHost 1
|IOUSBHost!F 1.2
>!UHostMergeProperties 1.2
>usb.!UCommon 1.0
>!ABusPower!C 1.0
>!ASEPManager 1.0.1
>IOSlaveProcessor 1
>!AACPIPlatform 6.1
>!ASMC 3.1.9
|IOPCI!F 2.9
|IOACPI!F 1.4
>watchdog 1
@kec.pthread 1
@kec.corecrypto 1.0
@kec.Libm 1
Hello
First of all thank you for your great work.
After 2 days fiddling around with various CPUTune versions and constantly crashing macbook pro 8.2 (15inch - 2GHz i7 - 2011) with probably broken smc thats why my battery doesnt work I found out that my mbp crashes while doing heavy tasks only with full LCD brightness, thats why I wanna know if there is a way to lower CPU consumption with CPUTune to let say limit to 20Watts, now cpu peaks at 30watts.
thank you for your answers.
The CPUTuneCore.kext
cannot load in macOS Monterey Betas reporting a cputune-panic
error in NVRAM
... how I could fix it, please?
Funny how right after my last issue #11 where I said "I haven't kernel panicked", I got one just 2 hours later. Heh.
Was messing around with the turbo ratio limits (said rate in the other issue, whoops), and after a few minutes of my last setting, my rMBP rebooted. I have the log this time (previous panic had no log or dialog). I also caught ytop giving an error pointing to a memory allocation issue right before the panic froze my machine, and as the kernel log confirms it's most likely a memory leak. Looks like changing CPUTune settings on the fly won't be an option for the time being.
Log start:
panic(cpu 2 caller 0xffffff800c977801): "zalloc: zone map exhausted while allocating from zone kalloc.80, likely due to memory leak in zone kalloc.80 (5923135920 total bytes, 74039199 elements allocated)"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.121.2/osfmk/kern/zalloc.c:3559
Backtrace (CPU 2), Frame : Return Address
0xffffff91fa572d50 : 0xffffff800c91f5cd
0xffffff91fa572da0 : 0xffffff800ca58b05
0xffffff91fa572de0 : 0xffffff800ca4a68e
0xffffff91fa572e30 : 0xffffff800c8c5a40
0xffffff91fa572e50 : 0xffffff800c91ec97
0xffffff91fa572f50 : 0xffffff800c91f087
0xffffff91fa572fa0 : 0xffffff800d0c27cc
0xffffff91fa573010 : 0xffffff800c977801
0xffffff91fa573140 : 0xffffff800c92c4b4
0xffffff91fa5731b0 : 0xffffff800c92ce04
0xffffff91fa5731e0 : 0xffffff7f8db8920f
0xffffff91fa573210 : 0xffffff7f8db8abfb
0xffffff91fa573250 : 0xffffff7f8db8da80
0xffffff91fa5732b0 : 0xffffff7f8db8a3a8
0xffffff91fa573360 : 0xffffff7f8db8d17a
0xffffff91fa573440 : 0xffffff7f8db99b89
0xffffff91fa573470 : 0xffffff7f8db5404b
0xffffff91fa5734b0 : 0xffffff7f8db5518a
0xffffff91fa573530 : 0xffffff7f8db43fa9
0xffffff91fa573610 : 0xffffff800cb72b5e
0xffffff91fa573770 : 0xffffff800cb71e41
0xffffff91fa573970 : 0xffffff800cb7ee9a
0xffffff91fa573b50 : 0xffffff7f8eb36eb8
0xffffff91fa573d80 : 0xffffff7f8eb34c68
0xffffff91fa573e20 : 0xffffff800d0333e9
0xffffff91fa573e90 : 0xffffff800d033309
0xffffff91fa573ec0 : 0xffffff800c961565
0xffffff91fa573f40 : 0xffffff800c961091
0xffffff91fa573fa0 : 0xffffff800c8c513e
Kernel Extensions in backtrace:
org.syscl.driver.CPUTune(2.2.1)[CFFB4956-94A8-39C7-99E9-1257777F4EC8]@0xffffff7f8eb33000->0xffffff7f8eb38fff
com.apple.filesystems.apfs(1412.120.2)[E8865550-525E-3E0A-8BEA-D96D9CD57917]@0xffffff7f8db08000->0xffffff7f8dc2ffff
dependency: com.apple.kec.corecrypto(1.0)[525BC31B-E9A9-3FE6-B565-5DC6BA91D8ED]@0xffffff7f8d29f000
dependency: com.apple.driver.AppleEffaceableStorage(1.0)[5024BA75-70AA-3554-B8EB-0A71A64479E0]@0xffffff7f8dab4000
dependency: com.apple.iokit.IOStorageFamily(2.1)[E13E9C61-F1F5-3A81-B1EF-65669C3CBDBF]@0xffffff7f8d265000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
19F101
Kernel version:
Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
Kernel UUID: 54F1A78D-6F41-32BD-BFED-4381F9F6E2EF
Kernel slide: 0x000000000c600000
Kernel text base: 0xffffff800c800000
__HIB text base: 0xffffff800c700000
System model name: MacBookPro11,5 (Mac-06F11F11946D27C5)
System shutdown begun: NO
Panic diags file available: YES (0x0)
System uptime in nanoseconds: 31907943014514
Zone Name Cur Size Free Size
vm objects 68820992 21532928
VM map entries 4802160 4539680
pv_list 49086480 3696
vm pages 3923968 10816
kalloc.16 19660800 1079152
kalloc.32 4149248 458464
kalloc.48 9253440 1591968
kalloc.64 17543168 2939328
kalloc.80 5923135920 0
kalloc.96 4610400 1620768
kalloc.128 7426048 4334464
kalloc.160 1811520 969600
kalloc.192 1953792 1287168
kalloc.256 1490944 964608
kalloc.288 1329120 543456
kalloc.368 5797104 5227808
kalloc.512 1626112 1011712
kalloc.768 2015232 1499136
kalloc.1024 1425408 724992
kalloc.4096 2019328 0
kalloc.6144 2236416 589824
kalloc.8192 1155072 0
mem_obj_control 3194880 288528
ipc ports 5776344 5273016
vnodes 67371008 0
namecache 27695040 609120
cluster_write 2872584 758136
ubc_info zone 16155216 182160
knote zone 1249280 1096576
vnode pager structur 7344000 83520
APFS_INODES 96814912 152720
vm pages array 226492416 34360060784
Kernel Stacks 7077888
PageTables 25219072
Kalloc.Large 172699648
Backtrace suspected of leaking: (outstanding bytes: 346240)
0xffffff800c9776f3
0xffffff800c92c4b4
0xffffff800ce88c81
0xffffff7f8eb36db3
0xffffff7f8eb36feb
0xffffff7f8eb34b4a
0xffffff800d0333e9
0xffffff800d033309
0xffffff800c961565
0xffffff800c961091
Kernel Extensions in backtrace:
org.syscl.driver.CPUTune(2.2.1)[CFFB4956-94A8-39C7-99E9-1257777F4EC8]@0xffffff7f8eb33000->0xffffff7f8eb38fff
last loaded kext at 31447142337167: com.sicreative.VoltageShift 1.21 (addr 0xffffff7f8eebf000, size 28672)
last unloaded kext at 31447182390998: com.sicreative.VoltageShift 1.21 (addr 0xffffff7f8eebf000, size 16384)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp 6.1.0
com.splashtop.driver.SRXFrameBufferConnector 1.6
com.avatron.AVExFramebuffer 3.4.1
org.virtualbox.kext.VBoxNetFlt 6.1.0
com.Sonarworks.driver.Sonarworks 1.8.11
com.splashtop.driver.SRXDisplayCard 1.6
com.avatron.AVExVideo 3.4.1
org.virtualbox.kext.VBoxUSB 6.1.0
ch.tripmode.TripModeNKE 2.0.2
org.virtualbox.kext.VBoxDrv 6.1.0
com.intel.driver.EnergyDriver 3.7.0
org.syscl.driver.CPUTune 2.2.1
@kext.AMDFramebuffer 3.0.9
@kext.AMDRadeonX4000 3.0.9
@kext.AMDRadeonServiceManager 3.0.9
>!AGraphicsDevicePolicy 5.2.4
@AGDCPluginDisplayMetrics 5.2.4
>!AHV 1
>AudioAUUC 1.70
|IOUserEthernet 1.0.1
@fileutil 20.036.15
@filesystems.exfat 1.4
@filesystems.autofs 3.0
|IO!BSerialManager 7.0.5f6
>pmtelemetry 1
>!AUpstreamUserClient 3.6.8
@Dont_Steal_Mac_OS_X 7.0.0
>!A!IHD5000Graphics 14.0.6
>AGDCBacklightControl 5.2.4
>!AHDA 283.15
>eficheck 1
>!AThunderboltIP 3.1.4
|Broadcom!B20703USBTransport 7.0.5f6
>!A!IFramebufferAzul 14.0.6
>!ASMCLMU 212
>!AMuxControl 5.2.4
>AirPort.BrcmNIC 1400.1.1
>!ACameraInterface 7.6.0
@kext.AMD7000!C 3.0.9
>!A!ISlowAdaptiveClocking 4.0.0
>!AMCCSControl 1.14
@filesystems.ntfs 3.14.3
>!ATopCaseHIDEventDriver 3430.1
>!UTopCaseDriver 3430.1
>!UCardReader 489.120.1
@filesystems.apfs 1412.120.2
>!AAHCIPort 341.0.2
>!AVirtIO 1.0
@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@private.KextAudit 1.0
>!ASmartBatteryManager 161.0.0
>!AACPIButtons 6.1
>!ARTC 2.0
>!AHPET 1.8
>!ASMBIOS 2.1
>!AACPIEC 6.1
>!AAPIC 1.7
$!AImage4 1
@nke.applicationfirewall 303
$TMSafetyNet 8
@!ASystemPolicy 2.0.0
|EndpointSecurity 1
@kext.AMDRadeonX4030HWLibs 1.0
@kext.AMDRadeonX4000HWServices 3.0.9
|IOAVB!F 850.1
|IOUSBUserClient 900.4.2
@kext.triggers 1.0
>!ASSE 1.0
@!AGPUWrangler 5.2.4
@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0
>DspFuncLib 283.15
@kext.OSvKernDSPLib 529
>!ABacklightExpert 1.1.0
|IONDRVSupport 576.1
|Broadcom!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CTransport 7.0.5f6
|IOAccelerator!F2 438.5.4
>!AHDA!C 283.15
|IOHDA!F 283.15
>!AGraphicsControl 5.2.4
|IO80211!F 1200.12.2b1
>mDNSOffloadUserClient 1.0.1b8
>corecapture 1.0.4
|IOSkywalk!F 1
@kext.AMDSupport 3.0.9
@!AGraphicsDeviceControl 5.2.4
|IOSlowAdaptiveClocking!F 1.0.0
>!ASMBus!C 1.0.18d1
|IOGraphics!F 576.1
>!AHS!BDriver 3430.1
>IO!BHIDDriver 7.0.5f6
|IO!B!F 7.0.5f6
|IO!BPacketLogger 7.0.5f6
>!AActuatorDriver 3440.1
>!AMultitouchDriver 3440.1
>!AInputDeviceSupport 3440.8
>!AHIDKeyboard 209
>usb.IOUSBHostHIDDevice 1.2
>usb.networking 5.0.0
>usb.!UHostCompositeDevice 1.2
|IOAHCIBlock!S 316.100.5
|IOAHCI!F 290.0.1
>usb.!UXHCIPCI 1.2
>usb.!UXHCI 1.2
|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSerial!F 11
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
>!AThunderboltDPInAdapter 6.2.6
>!AThunderboltDPAdapter!F 6.2.6
>!AThunderboltPCIDownAdapter 2.5.4
>!AThunderboltNHI 5.8.6
|IOThunderbolt!F 7.6.1
>usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
>!AEFINVRAM 2.1
>!AEFIRuntime 2.1
|IOSMBus!F 1.1
|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1
>DiskImages 493.0.0
>!AFDEKeyStore 28.30
>!AEffaceable!S 1.0
>!AKeyStore 2
>!UTDM 489.120.1
|IOSCSIBlockCommandsDevice 422.120.3
>!ACredentialManager 1.0
>KernelRelayHost 1
>!ASEPManager 1.0.1
>IOSlaveProcessor 1
|IOTimeSync!F 840.3
|IONetworking!F 3.4
|IOUSBMass!SDriver 157.121.1
|IOSCSIArchitectureModel!F 422.120.3
|IO!S!F 2.1
|IOUSBHost!F 1.2
>!UHostMergeProperties 1.2
>usb.!UCommon 1.0
>!ABusPower!C 1.0
|CoreAnalytics!F 1
>!AMobileFileIntegrity 1.0.5
@kext.CoreTrust 1
|IOReport!F 47
>!AACPIPlatform 6.1
>!ASMC 3.1.9
>watchdog 1
|IOPCI!F 2.9
|IOACPI!F 1.4
@kec.pthread 1
@kec.Libm 1
@kec.corecrypto 1.0
Hello, nice project @syscl
Anyway, could you make it becomes compatible with Xcode8 clang?
Failed to load project at '~/CPUTune/CPUTune.xcodeproj', incompatible project version.
Thanks.
Hi, I have a MacBook Pro 13, Retina 2012, with broken lcd temp sensor and kernel task fault
I removed IOPlatform file and ran CPUTuneCore.kext (in /library/extensions/), getting back cores from 1.2ghz to normal 2.3ghz, and it works fine when booting up the computer
The problem is when I close the laptop (sleep mode), after wake up, cores are back to 1.2ghz, so I have to run again the .kext in the terminal (for example with kextunload and after kextload) to get them back to 2.3ghz
Is there a way to keep the .kext working even when sleep/wake?
Thanks in advance!
Hey guys, i hope you can help me...
Some years ago my Macbook pro Retina early 2015 had a swollen battery and we had to withdraw it, but as i was in a sanctioned county i couldn't buy an original battery and put it instead. so i kept working with it for some years without battery. some days ago i got a new battery (ninja batt pro) and it works and boots up so much faster, but i still got some isuues:
-The graphics are still laggish and i have a high CPU load and temp. for example, as i was signing up for Github, the web page was laggish and cpu load and temp crazily raised...
Down here i'll add a screenshot that might help.
As you can see the wroking frecuency of GPU is so low but the CPU is crazily working and getting hot. the ventilation has been cleaned recently and i have tried PRAM and SMC reset several times.
I really hope you guys could help me. Thank you!!!
First of all let me say that I'm here just to disable Turbo Boost to start with, It's a craze right now, and everyone is using the closed source and paid solution, with all due respect for the marketing of that developer, we need an open source solution, and this project is a gem - It definitely deserves more attention (By the way, it seems that project is open source too, as I just stumbled onto it, my bad, but this project is better, since it's as simple as possible - I think even the dynamic configuration is redundant, but it would be nice to pre-configure max cpu multipliers)
However, I believe the initial Readme should should make it clear what the .kext does on default, and it should probably include the steps that you can only find here: #4
Currently, I'm hesitant to include the built Kext for example, because:
EnableTurboBoost: False Does this mean it'll disable TurboBoost on default? It would be less confusing as DisableTurboBoost: True
EnableProcHot: False Super scary, and why I didn't even try the .kext yet I don't want anything to do with the "ProcHot" flag, I have no idea whether the device is safe when it's on or off, what's the polarity of the flag - if it follows the EnableTurboBoost flag, it seems to disable the temperature protection by default, so it should've been EnableProcHot: True by default? Anyway, hope you get my point
As a developer I'm confused, and I believe non-developers will use this as well
I have a solution to solve this potential issue, but as for my ability, I am unable to realize it:
CPUTune/CPUTuneCore/CPUTune/CPUTune.cpp
Line 158 in 3ba49ae
// FIXME: As per Apple Document (https://developer.apple.com/library/archive/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP0000018-BAJFFJAD Listing 7-5):
// Events originating from timers are handled by the driver’s Action routine.
// As with other event handlers, this routine should never block indefinitely.
// This specifically means that timer handlers, and any function they invoke,
// must not allocate memory or create objects, as allocation can block for unbounded periods of time.
// As for now, the reading procedure reads only one byte, which is fairly fast in our case, so we assume
// this routine will not cause infinite blocking. Let me know if you have some other good ideas.
The solution just need to do a replacement and to modify the function CPUTune::init():
in the init function:
In this way, the disk I/O requests could be transformed into RAM requests. Therefore the
infinite blocking risk avoided.
OS:Macos15 beta2
I compiled using Xcode16 beta4
I did chown and chmod things rebuild kext and reboot. After that I run "kextstat| grep -v com.apple" and see nothing with CPUTune.
It was a success when i do "kextload the.kext" . After allow in system privacy and reboot, it could be seem using the command above. But no fortune after that, I run "echo 0>/tmp/CPUTuneTurboBoostRT.conf" and no change in the gadget. The other command the same.
The CpuTuneApp always throw error code 1 when launching. I thought it as no valid kext loaded.
Don't how to further debug this and make it work?
I was following this guide that mentioned one can also activate frequency stepping using CPU tune. I’ll be disabling BD PROCHOT and TURBO BOOST, which is well documented here. But I was wondering if it’s possible to set multiplier of FID to an arbitrary value from let’s say 8 (8 X 100 MHz = 800 MHz) to let’s say 17 (for 1.7 GHz)?
It was easy to tweak this using ThrottleStop on Windows via Bootcamp. Wondering if CPUTune can be used to tweak multiplier values.
How can I lock the frequency/clock speed of Intel CPU?
OS version: Latest OS X 12.4
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.
The MacBook Air "13-inch Mid 2012" (A1466) takes many hours to install and download command-line developer tools and Xcode. After over a day of downloading and extracting Xcode it still didn't work. The Xcode icon appears, I got the one (12.4) that said it was compatible with 10.15.7 on the apple website, but it says the app is corrupted and has the "🚫" symbol on it.
In its current state even "git clone" fails with: "xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun"
...even though before I installed Xcode, the command-line developer tools installed fine.
:edit: I confirmed that after dragging the Xcode (that had 🚫 symbol on it) app to trash and waiting quite a while, git works again.
I have to wait hours just to open Finder, then more to click Applications then more to uninstall the app and hope the command line tools will start working again.
CPU:
% sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
I know this is Apple's fault due to throttling with my end-of-life battery but your program is recommended as the way to solve the problem so I wish it were a bit easier to compile. Every time I click anything in macOS it takes several minutes or hours.
I already reset the SMC and PRAM.
Many other people have the same problem of outrageous slowness due to Apple throttling when the battery is end-of-life or even disconnected completely. They were sued over gradually slowing down the iPhone as the battery got older supposedly to save battery.
Please, is there any way to compile with the command line?
I cloned this repository, opened the project file in xCode and pressed "Build". The kext appeared in the derived folder under build -> product -> debug.
I attempted to run it manually via kextload and by placing it into the "Other" folder of Clover kexts. The kext won't load, neither manually nor by clover
Am I missing something? I am lacking experience with xCode I have to admit.
Even though I specifically disable turboboost in the Info.plist when I reboot turboboost is still enabled and running. Any idea why?
Can this be used to reduce clock speeds? Thanks
Hey just thought I'd share how I got CPUTune to work in case someone is facing the same issue.
2012 Macbook Air on Catalina 10.15.7:
CPUTune worked fine after I compiled it myself. I used Xcode 11.7. downloaded from xcodereleases.com
issue occurred after a security update to 10.15.7 recently. CPUTune was still running fine (based on kextstat) but the CPU started throttling again. turns out the update replaced my deleted IOPlatformPluginFamily.kext and after I removed IOPlatformPluginFamily.kext it started working again. so it seems like IOPlatformPluginFamily.kext will prevent CPUTune from working at least on my machine.
So headsup to everyone hitting a wall. try removing IOPlatformPluginFamily.kext, CPUTune should work now!
btw big thanks to Christophe and the CPUTune team. gave my old Macbook Air a new least of life! 🙏🏼
Hi there,
First thanks for this contribution! It makes tuning and playing with HWP easier, highly appreciated.
I wanted to ask, beyond the core HWP capability, is there any GPU or memory power management settings to tweak?
I am trying to debug a coil whine problem on a Dell XPS13 on Mojave and have traced it down to something in the power management / voltage scaling. If the laptop sleeps, and then wakes up, I notice a difference in power settings and whine disappears. I tried using CPUTune AFTER the coil whine goes away and changing "HWPRequest.conf" and played around and could NOT get the coil whine to come back. Conversely, I've played with HWP when coil whine is present and could NOT make it go away.
I've documented my experiences here (prior to using CPUTune, using HWPEnable utilities) here:
Any suggestions would be appreciated!
Hi,
I have MacBook Pro early 2011 (MacBookPro8,2)
With Intel® Core™ i7-2820QM processor and also AMD Radeon HD 6750M
My battery was dead but I was using it as attached. But it swelled this week and I had to remove it.
So I would like to use this patch. Can you please help me ? I cannot find proper kext file for my Mac
I am on High Sierra (10.13.6)
Thanks a lot for your help
I have a macbook pro 15" 2011 i7 with a faulty GPU which has been disabled by software and power resistor removal.
Unlucky for me, I gave 3 faulty temperature sensors in the motherboard, which makes the system unusable when in stock.
I could manage to use the computer by editing IOPlatformPluginFamily.kext by entering safe mode and changing one of inside files.
Failures are at these sensors: Airport , Heatpipe 2 and Heatpipe Out.
https://imgur.com/a/4eKvHzv
I cant update the system to High Sierra because it will fuck up sleep and brightness control because of the GPU deactivation.
I Tried to compile CPUTune, but it shows some files are missing as shows the image:
https://imgur.com/a/6349Xw7
Loading the 2.1.7 crashes the system and trying to load 2.1.5 version without NVRAM shows the following error:
https://imgur.com/a/3hciXLS
Using NoBatteryNoProblem.kext works but puts the system at max power and fans go wild, I dont think it is a sustainable way of working.
Any thoughts?
Hello,
I'm another MBP user with a broken battery. I'm trying to use my old MBP 13" late 2013 without any battery.
@christophe-duc I'm following your suggestion and I'm trying disabling EnableProcHot by setting it to "true". Still no luck.
This is the last message I get before it dies.
Loading version 1.9 works but I cannot get my CPU up to speed. It's extremely slow so I believe it's clock is to 800MHz or similar.
Of course, I remove the IOPlatformPluginFamily.kext before testing
sudo rm -rf /System/Library/Extensions/IOPlatformPluginFamily.kext
and even csrutil disable
+ csrutil enable --without kext
afterwards.
Any clue?
If I wanted to have speedshift, turbo boost and prochost disable at boot I would modify the following? Also, can you explain what speedshift is specifically responsible for?
<key>AllowUnrestrictedFS</key>
<false/>
<key>CFBundleIdentifier</key>
<string>org.syscl.driver.CPUTune</string>
<key>EnableProcHot</key>
<false/>
<key>EnableSpeedShift</key>
<false/>
<key>EnableTurboBoost</key>
<false/>
<key>IOClass</key>
<string>CPUTune</string>
<key>IOMatchCategory</key>
<string>CPUTune</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
<key>ProcHotAtRuntime</key>
<string>/tmp/CPUTuneProcHotRT.conf</string>
<key>SpeedShiftAtRuntime</key>
<string>/tmp/CPUTuneSpeedShiftRT.conf</string>
<key>TurboBoostAtRuntime</key>
<string>/tmp/CPUTuneTurboBoostRT.conf</string>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.