Jump to content

Sandy Bridge-E Power Management [Big Sur 11.2.1] && [Big Sur 11.4]


40 posts in this topic

Recommended Posts

This information is for get a working CPU Power Management on Chinese motherboards X79 with Sandy Bridge-E CPU.

We need 7 patches (2 patches for 11.4) for AppleIntelCPUPowerManagement.kext (See samples in attachment)

In addition to the standard post-install recommendations you should use your own prepared:

- DSDT.aml

- SSDT.aml, generated for your CPU by ssdtPRGen.sh script

and SSDT-PLUG.aml from OpenCore set

 

Tested work in

OpenCore, v 0.6.7, Big Sur v 11.2.1 (20D75), PC Build II in my profile

OpenCore, v 0.7.0, Big Sur v 11.4 (20F71), PC Build II in my profile

 

SandyBridge-E-11.2.1-PM.plist SandyBridge-E-11.4-PM.plist

Edited by verdazil
Update
  • Like 3
  • 1 month later...

Hello, I'm wondering what/how I need to change the kernel patches for 11.2.3?  OpenCore says patches 1 + 4 couldn't be applied if I read correctly fast enough, and then I get a kernel panic. 

 

Is there a method for finding what the patches need to be?

 

Thanks,

 

IlikeTech

Hello, IlikeTech. The patches were originally developed for Big Sur v 11.2.1 (20D75). They have been tested in 11.2.2 && 11.2.3 and still work for me successfully in 11.2.3. I assume they will be valid for all future Big Sur versions.

My guess is that the structure or content of the patches was broken when updating OC or some other manipulation with the OC config file.

If done correctly, everything should work fine.

Okay, thanks for letting me know.  If I understand correctly:

 

Patches go in the Kernel -> Patch section

SSDT-PLUG gets added like other SSDTs

The ssdtPRGen SSDT is also added like the others.

 

It should work, correct?

 

Do I need to do anything special because of my Dual CPUs?

 

Thanks!

Okay, I tried to just copy the patch section out of your patches.plist, and I get the same error I described above:

 

26CE3C36-9496-4DE9-B3AA-1D7871B7A4B4.thumb.jpeg.424e6547d49cbc2d9f85022dc0768923.jpeg

 

Apologies for the lackluster photos, here’s the error.

 

Thanks!

IlikeTechyour problem is not with PM patches. These patches only fix CPU Power Management. They activate Turbo Boost and correct Speed Step. But the system can and should boot and work without them!

Can you boot to your desktop without patches?  If you can't, then, you need to look for a solution to the boot problem, which is related specifically to the dual CPU, and not to the patches.

Although I have no experience setting up systems with dual CPU, it is possible that if I saw yours EFI, I could say more.

Yes, the system works fine, just with no power management before the patches are applied.  I can upload my EFI tomorrow, which currently contains no power management things at all.
 

As soon as the patches are applied, I get the above opencore error and a kernel panic during boot.

 

Thanks!  

Here's a complete copy of my EFI, including my config.

 

In this state, I get this kernel panic on boot:

 

IMG_1844.thumb.jpeg.cb19b2e523060281d103e9366c162b22.jpeg

 

Also, I get the message about the prelinked patcher I showed earlier.

 

If I disable the patches, I get this kernel panic:

 

IMG_1845.thumb.jpeg.745bde0de73b03d30372d9b41e32b760.jpeg

 

Which happens much, much later in the boot process.

 

Thanks!

 

 

EFI.zip

Posted (edited)

IlikeTechyou have a completely unconfigured OC.

It's clear that you can't just take mine EFI folder and use - we have different hardware - different CPU and different motherboard. You have to do everything yourself - from beginning to end.

If you want to have a properly configured and perfectly working system (for example, like mine), then you must do the following:

1. Extract DSDT and SSDT tables (e.g. via the F4 key in Clover)

2. Disassemble these tables (iasl)

3. Fix all errors in DSDT and rename the required devices (MaciASL)

4. Prepare a new, correct one USBPorts.kext - corresponding to your realities, and not taken from the Internet

5. And only when everything works without errors, you can apply PM patches. This - the cherry on the cake, the last action.

 

I know that all this is quite difficult, but there are only two options:

- someone has exactly the same hardware as you, he is a hackintosh guru and you just take his settings

- you yourself study every little thing and understand your settings 

Edited by verdazil

I'm not sure where you're getting that idea from, the files you see in the folders there (unless I messed up and uploaded the wrong folder) are ones I created.  The USBMap.kext was created using CorpNewt's USBMap program and IS, in fact, for my board, and it works perfectly fine.  The EFI there was entirely set up and configured by myself following the OC Sandy Bridge E guide.

 

Where did you get the idea I just took an EFI folder and shoved it on to my hard drive?  That folder (provided I disable the power management things) works fine on my hardware.

 

IlikeTech

  • 2 weeks later...

@verdazil Could you share your opencore config.plist, I am struggling with Big Sur on very similar hardware, getting reboot right after cursor shows up and installer should boot.

  • 3 weeks later...
Posted (edited)
On 5/9/2021 at 4:46 PM, verdazil said:

Verdazil,

In 11.0.1 to 11.2.3 I achieved a great Energy Management using only 2 patches, both Clover and Open Core.
Do a test on your system to see if you can get a good Power Management with just these two patches.

Just to see if it works there too.

 

Note: At 11.3+ this patch does not work. I'm trying to find out which patches work well for Power Management on 11.3+.

 

1075555993_CapturadeTela2021-05-30s07_51_32.thumb.png.eb395cfec3372bd06541e24ce3fddf48.png

 

Note 2: If it does not boot, try to put this DSDT patch:

276768555_CapturadeTela2021-05-30s19_37_10.thumb.png.f2056e32a8a1813eae56b2ca833f7ae3.png

Edited by Vinicius P. Miranda
Posted (edited)

@Vinicius P. Miranda, after careful tests, I came to the conclusion that for my PC, the most optimal macOS version is Mojave 10.14.6

macOS Big Sur has been removed, no return planned.

Edited by verdazil
On 7/15/2020 at 2:50 PM, stinga11 said:

This guide is for get a working Power Management on any X79
 
1. We need to patch the AICPM with the OMNI patch otherwise it will never work. (Is only if you have a Sandy Bridge-E if you have a Ivy Bridge-E skip this step)
 
Clover patch:


FF0F840F01
to
FF0F850F01


0100010F84
to
0100010F85


C974140F3225FF0F00006B
to
C9EB140F3225FF0F00006B


C974050F3283E01F4289443B
to
C9EB050F3283E01F4289443B


01745D
to
01EB5D


3E7538
to
3E9090


7511B9
to
EB11B9

Using clover configurator is easier. Your clover configurator have to see like this.
 1309829247_10.15power.thumb.png.600613dc234129f27ff0d64269a5034f.png

 

2. We need to patch the Msr lock. For this we need select "KernelPm and AppleIntelCPUPM" on Clover Configurator in the "Kernel and Kext Patches" section (Is only if you have a board with msr lock if you have a Asus or Asrock skip this step)

 

3. Finally we need to download the following dummy kext and put it in /Library/Extensions/

LegacyX86PlatformPlugin.kext 6.23 kB · 130 downloads

 

4. Now is time to create it a SSDT for our cpu.

 

a. If you have a Sandy Bridge-E download this zip file, Inside you will found your SSDT

X79 SSDT.zip 6.15 kB · 88 downloads

 

b. If you have have a Ivy Bridge-E you need download the ssdtPRGen for your CPU.


curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh

chmod +x ~/ssdtPRGen.sh

~/ssdtPRGen.sh

 

5. Download Hackintool open it and go to the "Utilities" section and at the bottom select "Rebuild KextCache and Repair Permission"

 

I have an i7 3930k and a Rampage IV Extreme. It was using your "com.apple.driver.AppleIntelCPUPowerManagement" patches and Power Management worked fine until Big Sur 11.2.3.
Specifically, I only used these two patches to make Power Management work very well:
7511B9 to EB11B9
3E7538 to 3E9090
I don't know why but the others weren't needed, and SSDT wasn't needed either, I used it, but if I removed it from Clover, PM would still work fine.

After I upgrade to 11.3, 11.3.1 and 11.4, Power Management no longer works. It always gets 99% CPU (I believe it's only on the first core) and always 3.2Ghz (no Turbo booster). I put all patches back in, but nothing has changed. I removed all patches and nothing has changed (but enter in the system). I redid the SSDT but nothing helped.
I'm lost, I don't know where to look to try to find the new patches for Power Management to work properly.
I did several benchmarks and Single Core dropped almost by half, multicore dropped around 20%.
Can you help me by telling me how do I go about searching and finding the new patches that have changed in 11.3+ so I can get back to having good Power Management?

I don't even know where to look, if I knew, I would look for it.

 

11.3.1.thumb.png.0c2c8bcb4e76d8a48c07130f55fd6362.png

  • 2 weeks later...
On 6/7/2021 at 10:21 AM, PPCnostalgic said:

I have a similar hardware (see signature X79) and AICPUPM works with Clover 5135, did you upgrade?

Work in 11.3+ and Monterey?

Can you teach me what you did to make the management work well? And send me your EFi to compare with mine? 

On 6/22/2021 at 12:00 PM, PPCnostalgic said:

Didn't try Monterey, PM works with Big Sur 11.4  My EFI folder in attachment, removed serials so just put yours.

 

EFI.zip 13.55 MB · 2 downloads

I couldn't solve the 99% CPU problem. I tried to copy almost everything from your Clover, but nothing helped.
Your processor is not the 3930k right? It's a 10 core Xeon. There must be something different that makes your processor Power Management well.
I think just a Kext Patch will make my management work, but I don't know how to make these patches. I will keep searching.

My CPU is a Xeon-E5 2696v2. If I use iMac (not iMacPro) my CPU runs at 100% all the time, this happen with all iMac SMBIOS from 15,1 to 20,2. It seems that only iMacPro1,1 and MacPro6,1 work properly.

So I suggest you to try other SMBIOS, start with MacPro6,1 and then try several other types (e.g. iMac 15,1 16,1 17.1.........) til you find the one that works.

  • Like 1
22 hours ago, PPCnostalgic said:

My CPU is a Xeon-E5 2696v2. If I use iMac (not iMacPro) my CPU runs at 100% all the time, this happen with all iMac SMBIOS from 15,1 to 20,2. It seems that only iMacPro1,1 and MacPro6,1 work properly.

So I suggest you to try other SMBIOS, start with MacPro6,1 and then try several other types (e.g. iMac 15,1 16,1 17.1.........) til you find the one that works.

I've always used MacPro 6.1. I tested all SMBios, all with the same 99% CPU problem.
I believe the solution will be a patch of "com.apple.driver.AppleIntelCPUPowerManagement", but I have no idea how to look for this patch.
What I had, worked since Catalina but stopped working in 11.3.
Do you know of a tutorial that teaches you how to find patches?

Such binary patches are usually derived from disassembling the binary code of the kext and/or consulting the source code published by Apple (but I've not checked if the source code of AICPUPM kext is available). Most of the time, the reason why binary patches that worked in certain versions no longer work in subsequent ones is because the code has changed over time and after new OS X/macOS versions got released (eg: IOGraphicsFamily or AppleIntelSNBGraphicsFB patches). Easiest way to check that out is to:

  1. open up the binary file of the kext targeted for patching with a hex editor such as Hex Fiend or other
  2. search for the binary sequences that were used in previous patches for modification (i.e. the "find" sequences)

If any sequence cannot be found, the associated patch is of course no longer valid/applicable. The new sequences and their patches must therefore be identified. That's when code disassembling is usually required unless the new/revised binary sequences can easily be derived through, say, shortening, similarities or otherwise.

 

For instance:

  • out of the 7 x sequences listed in post #1 of the Catalina thread mentioned by @Vinicius P. Miranda, only the 2nd one can be found in Big Sur 11.4's AICPUPM kext.
  • out of the 2 x sequences shown in his screenshot of May 31st, none can be found in Big Sur 11.4's AICPUPM kext.

The previous/existing patches are therefore irrelevant/deprecated in such conditions.

  • Like 2
On 6/25/2021 at 4:30 PM, Vinicius P. Miranda said:

I've always used MacPro 6.1. I tested all SMBios, all with the same 99% CPU problem.
I believe the solution will be a patch of "com.apple.driver.AppleIntelCPUPowerManagement", but I have no idea how to look for this patch.
What I had, worked since Catalina but stopped working in 11.3.
Do you know of a tutorial that teaches you how to find patches?

BTW you should wait for Big Sur 11.5 release to see if that release will solve, before going mad...

  • Confused 1
  • verdazil changed the title to Sandy Bridge-E Power Management [Big Sur 11.2.1] && [Big Sur 11.4]
×
×
  • Create New...