Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (32 sloc) 2.12 KB

Disabling CFG Lock

So you've installed macOS but you're using those pesky CFG-Lock patches that we want to get rid of, well to do this is fairly simple. You'll need the following:

Inside your EFI/OC/Tools folder and config.plist:

And some apps to help us out:

And don't forget to disable the following from your config.plist:

  • AppleCpuPmCfgLock
  • AppleXcpmCfgLock

And the final part, grabbing your BIOS from the vendors' website.

Now the fun part!

Checking if CFG-Lock can be turned off

Boot OpenCore and select the VerifyMsrE2 option in the picker. This tool will tell you whether your BIOS supports CFG-Lock and if it can be unlocked.

Turning off CFG-Lock manually

  1. Open your firmware with UEFITool and then find CFG Lock as a Unicode string. If nothing pops up then your firmware doesn't support CFG Lock, otherwise continue on.

  1. You'll find that this string is found within a Setup folder, right-click and export as Setup.bin

  2. Open your setup file with ifrextract and export as a .txt file with terminal:

path/to/ifrextract path/to/Setup.bin path/to/Setup.txt
  1. Open the text file and search for CFG Lock, VarStoreInfo (VarOffset/VarName): and note the offset right after it(ie: 0x5A4)

  1. Run the Modified GRUB Shell and paste the following where 0x5A4 is replaced with your value:
setup_var 0x5A4 0x00

Do note that variable offsets are unique not just to each motherboard but even to its firmware version. Never try to use an offset without checking.

And you're done! Now you'll have correct CPU power management

Note: Every time you reset your BIOS you will need to flip this bit again, make sure to write it down with the BIOS version so you know which.

You can’t perform that action at this time.