-
Notifications
You must be signed in to change notification settings - Fork 38
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
BD_PROCHOT option doesn't work #21
Comments
cc @schdt899 to take a look |
If im not wrong, tweaking BD_PROCHOT wont help for broken battery, the issue persist since #8 As my MBP
The only way to make it work is to find out what capped that value, or maybe direct tweaking that value could make it work |
I finally figure it out, i read thru this post again and again https://portugnole.blogspot.com/2020/05/running-macbook-without-battery-lets-go.html The main problem here is IOPlatformPluginFamily.kext, which is the main reason that throttle the speed; So it needs to be removed. The last step is enable HWP ./voltageshift write 0x770 0x1
./voltageshift write 0x1FC 0x24005E
./voltageshift write 0x1A0 0x4000850089 But the problem here is after removing IOPlatformPluginFamily.kext, the latest CPUTune will cause KP when load kext which i didn't notice at first that's the reason why CPUTune not working. cc @syscl So currently i'm using But now Im facing another issue where macbook auto shutoff after 15min of using .... Update: I found out that I can direct changing the capped value (Target performance State Value) to 2.3MHZ ./voltageshift write 0x199 0x1700 Yeah after 15min, shutoff not happen anymore :3 new method works! |
I tried to benchmark with turbo boost on, my mac literally goes off after reaching 87++ celcius ... Not sure why |
Another weird situation, I let my Mac sleep for few times, then I use for about 30min and it become more slow and laggy and finally suddently freeze at there. The cpu are all in normal stat, the power consumption becomes not stable anymore, spiking every 3 seconds up and down; my guess is it could probably cause by removing that Intel kext 🤔 |
Spiking solved with BD_PROCHOT disable; If i'm not wrong enable HWP will makes macos crash. So these two command are the perfect command ./voltageshift write 0x199 0x1700
# Tweak Target performance State Value to 2.3MHZ
# (It varies depends on what cpu model are you using, change the `0x1700` according to your CPU model max performance MHz (when turbo off))
./voltageshift write 0x1FC 0x24005E
# Disable BD_PROCHOT (warning: only for me, please read the guide below) Guide for disable BD_PROCHOT
./voltageshift read 0x1FC
./voltageshift write 0x1FC 0x24005E |
Thanks @sooxt98 for detail procedures, sorry for the late reply due to on call last week. So the correct step is to change the target value first then disable BD_PROCHOT right? |
@syscl yes, and also need to remove the IOPlatformPluginFamily.kext to make bd prochot works |
@sooxt98 I think im on the same boat, My CPU is capped at 0.8ghz, it looks like the Bi-Directional Processor Hot is disabled by CPUTUNE but the throttle still persists. I also removed IOPlatformPluginFamily.kext. AppleIntelInfo.kextAppleIntelInfo.kext v2.9 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.Settings:logMSRs..................................: 1 Processor Brandstring....................: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz Processor Signature..................... : 0x306D4
Model Specific Registers (MSRs)MSR_IA32_PLATFORM_ID.............(0x17) : 0x18000000000000
MSR_CORE_THREAD_COUNT............(0x35) : 0x20004
MSR_PLATFORM_INFO................(0xCE) : 0x5053BF3011B00
MSR_PMG_CST_CONFIG_CONTROL.......(0xE2) : 0x7E000008
MSR_PMG_IO_CAPTURE_BASE..........(0xE4) : 0x51814
IA32_MPERF.......................(0xE7) : 0x3831D876F30 MSR_FLEX_RATIO...................(0x194) : 0x0MSR_IA32_PERF_STATUS.............(0x198) : 0x159300000800
MSR_IA32_PERF_CONTROL............(0x199) : 0x500
IA32_CLOCK_MODULATION............(0x19A) : 0x0 IA32_THERM_INTERRUPT.............(0x19B) : 0x10
IA32_THERM_STATUS................(0x19C) : 0x88300800
MSR_THERM2_CTL...................(0x19D) : 0x0 IA32_MISC_ENABLES................(0x1A0) : 0x4000850089
MSR_TEMPERATURE_TARGET...........(0x1A2) : 0x690000
MSR_MISC_PWR_MGMT................(0x1AA) : 0x400001
MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x1F1F1F1F1F1F
IA32_ENERGY_PERF_BIAS............(0x1B0) : 0xF
MSR_POWER_CTL....................(0x1FC) : 0x4005E
MSR_RAPL_POWER_UNIT..............(0x606) : 0xA0E03
MSR_PKG_POWER_LIMIT..............(0x610) : 0x4283E800DD8320
MSR_PKG_ENERGY_STATUS............(0x611) : 0x8FFF6EF
MSR_PP0_POWER_LIMIT..............(0x638) : 0x0 MSR_PP0_ENERGY_STATUS............(0x639) : 0x3924438
MSR_PP0_POWER_LIMIT..............(0x638) : 0x0 MSR_PP0_ENERGY_STATUS............(0x639) : 0x3924496
MSR_PP1_POWER_LIMIT..............(0x640) : 0x0 MSR_PP1_ENERGY_STATUS............(0x641) : 0x459E89
MSR_PP1_POLICY...................(0x642) : 0x18
MSR_PKGC3_IRTL...................(0x60a) : 0x8842 IA32_TSC_DEADLINE................(0x6E0) : 0x5CAA0B98B30 CPU Ratio Info:Base Clock Frequency (BLCK)............. : 100 MHz IGPU Info:IGPU Current Frequency...................: 300 MHz P-State ratio * 100 = Frequency in MHzCPU P-States [ 7 (8) ] iGPU P-States [ (6) ] I tried to manually disable BD_PROCHOT using voltageshift as per your instructions but
Can you please shed a light on this issue? |
@davibennun if im not wrong, the binary is |
@davibennun what u need to do now is this, i saw your config, try command below ./voltageshift write 0x199 0x1B00 # Tweak Target performance State Value to 2.3MHZ so you're now actually tweaking |
@sooxt98 I got my CPU back to max performance after running the command you suggested. THANK YOU SO MUCH! I'm battling with this for over a day, I'm so happy to see my CPU working fine again. |
MacBook usable again. Amazing, thank you. |
btw i did found out that, performing full factory reset on macbook and upgrade to bigsur will solve the throttle problem; |
@sooxt98 I'm on Big Sur already, with a bad battery. The slightest workload brought the CPU down to 800mhz. |
Well, this worked for me, but now after several hours of use, somehow the
This started after I inserted an external hard drive and since then I am not able to keep Update: |
i'm also having 0x199 revert to ~0.9mhz every few minutes; no external hdd, only peripherals are keyboard+mouse+monitor. im on monterey 12.5.1, so most of this still works up to that version at least; i'm happy to help anyone resolve any issue if they have one! does anyone have a solution for the reverting 0x199? |
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
CPU Config
The text was updated successfully, but these errors were encountered: