# Fixing CFG Lock
CFG-Lock is a setting in your BIOS that allows for a specific register(in this case the MSR 0xE2) to be written to. By default, most motherboards lock this variable with many even hiding the option outright in the GUI. And why we care about it is that macOS actually wants to write to this variable, and not just one part of macOS. Instead both the Kernel (XNU) and AppleIntelPowerManagement want this register.
So to fix it we have 2 options:
# 1. Patch macOS to work with our hardware
- This creates instability and unnecessary patching for many
- The 2 patches we use for this:
- AppleCpuPmCfgLock for AppleIntelPowerManagement.kext
- AppleXcpmCfgLock for the Kernel(XNU)
# 2. Patch our firmware to support MSR E2 write
- Very much preferred, as avoids patching allowing for greater flexibility regarding stability and OS upgrades
Note: Penyrn based machines actually don’t need to worry about unlocking this register
# Checking if your firmware supports CFG Lock unlocking
Before proceeding with the rest of this guide, you’ll first need to check if your firmware supports CFG Lock unlocking. To check it, you can proceed into two ways:
# Checking via OpenCore logs
For users who prefer using DEBUG release, you’ll want to enable the DEBUG variant of OpenCore with Target set to 67 and boot OpenCore. This should provide you with a file in the format of opencore-YYYY-MM-DD-hhmmss.txt on the root of the drive.
Within this file, search for OCCPU: EIST CFG Lock :
If it returns 1 , then you proceed with this guide here: Disabling CFG Lock.
Otherwise(ie. 0 ), no reason to continue and you can simply disable Kernel -> Quirks -> AppleCpuPmCfgLock and Kernel -> Quirks -> AppleXcpmCfgLock .
# Checking via ControlMsrE2
(opens new window) and add this tool inside EFI/OC/Tools and config.plist (this can be done with ProperTree’s snapshot function(ie. Cmd+R)). Next, boot OpenCore and select the ControlMsrE2.efi entry. This should provide you one of the following:
- CFG-Lock is enabled:
- CFG-Lock is disabled:
For the former, please continue here: Disabling CFG Lock.
For the latter, you don’t need to do any CFG-Lock patches and can simply disable Kernel -> Quirks -> AppleCpuPmCfgLock and Kernel -> Quirks -> AppleXcpmCfgLock .
# Disabling CFG Lock
So you’ve created the EFI folder but you can’t still boot without unlocking before CFG Lock. In order to do this you’ll need the following:
Inside your EFI/OC/Tools folder and config.plist , add the following tool(this can be done with ProperTree’s snapshot function(ie. Cmd+R)):
And some apps to help us out:
-
(Make sure it’s UEFITool and not UEFIExtract)
And the final part, grabbing your BIOS from the vendors’ website.
Now the fun part!
# Turning off CFG-Lock manually
Please note that the only firmwares that can be directly opened by UEFITool are ASUS, MSI and ASRock. Other firmwares need a special procedure which we’ll not directly cover into this guide. For Dell firmwares, please refer to dreamwhite’s guide
- 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.

You’ll find that this string is found within a Setup folder, right-click and export as Setup.bin (or even Setup.sct )
Open your setup file with ifrextract and export as a .txt file with terminal:
Open the text file and search for CFG Lock, VarStoreInfo (VarOffset/VarName): and note the offset right after it (ie: 0x43 ) and the VarStore ID right after the offset (ie: 0x3 )

Search for VarStoreId: 0x3 where 0x3 is replaced with the value of the VarStoreId you found and note the Name after it (ie: CpuSetup )
Run the Modified GRUB Shell and write the following command where CpuSetup is replaced with the VarStore Name you’ve previously extracted and 0x43 is replaced with the offset you’ve previously extracted:
At this point, run either reboot in the shell or simply reboot your machine. And with that, you should have CFG Lock unlocked! To verify, you can run over the methods listed at Checking if your firmware supports CFG Lock unlocking to verify whether the variable was set correctly then finally disable Kernel -> Quirks -> AppleCpuPmCfgLock and Kernel -> Quirks -> AppleXcpmCfgLock .
- 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.
Note 2: Some OEMs like Lenovo may have the variable set but cannot unlock it without physically modding the BIOS, for these situations you may need to use a tool like RU
CFG Lock в BIOS что это значит?

Если Вы зайдете в BIOS материнской платы своего компьютера, то в разделе «Advanced» можете встретить такой параметр, как CFG lock. Изначально, на стандартных параметра, он обычно находится в положении Disabled — то есть деактивирован. Само-собой, в пытливом уме возникает вопрос — а зачем эта опция нужна, за что отвечает и и когда ее нужно включать или выключать. Сейчас расскажу!
Зачем параметр CFG Lock в биосе
Сейчас есть операционные системы, которым для корректной работы необходимо записывать некоторый объем данных в специальную область BIOS во время загрузки. Яркий пример — операционная система MAC OS (OS X), которая устанавливается на компьютеры и ноутбуки Apple, Специально для этих случаев и сделан параметр CFG lock. От включает или отключает возможность записи системой данных в BIOS при запуске.
Если для CFG lock в БИОСе установлено значение «Disabled», то это значит, что блокировка записи данных отключена. Если же стоит значение «Enabled» — блокировку записи активирована.

Операционная система Windows и большинство десктопных LINUX этим механизмом не пользуются и им не играет роли какое значение параметра CFG lock выставлено в BIOS. А вот если будете ставить OS X, то тут уже надо будет обязательно проверить, чтобы было установлено значение Disabled. Иначе система либо не сможет установиться, либо установится, то не запустится.
CFG Lock — что это такое в биосе?
Приветствую всех! Итак, мы продолжаем тему биоса, а если быть точнее то его настроек. Сегодня у нас на разбор попала функция CFG Lock, моя задача — найти максимум информации и написать все простым языком.CFG Lock — что это такое?
Опция нужна для функционирования CPU Power Management в MacOS. При использовании Windows бесполезна.
В инструкции к материнке MSI Z170-A PRO сказано:
CFG Lock — блокировка или разблокировка MSR 0xE2[15]. Значение Enabled — блокирует бит блокировки CFG, значение Disabled — наоборот, разблокировывает. На другом сайте нашел инфу: включать опцию стоит только когда используется MacOS.
На форуме overclockers был дан ответ, что опция нужна для работы множителем в OSX.
Короче все верно — настройка CFG Lock нужна только для работы подсистемы CPU Power Management в MacOS, если вы используете Windows, то ее нет смысла включать:
CFG Lock
Назначение параметра: Параметр, позволяющий операционной системе (в частности OS X) записывать свой код в область BIOS для корректной ее работы.
Возможные варианты значений:
Disabled — Выключено. Операционная система сможет записывать необходимые ей данные в область БИОС. Если на компьютере установлена OS X, то необходимо выключить блокировку записи.
Enabled — Блокировка записи в БИОС включена.КОММЕНТАРИИ к «CFG Lock»
ДРУГИЕ МАТЕРИАЛЫ ПО ТЕМЕ
Проявления неисправностей, связанных с данным параметром (0)
IT-WIKI (0)
Параметры BIOS (1)
Параметр включает/отключает SIPP — Stable Image Platform Program. SIPP — это технология Intel, гарантирующая пользователю, что изменение аппаратной конфигурации компьютера в течение 15 месяцев не потребует установки новых драйверов или иного системного программного обеспечения.
Описание значений параметров:
Enabled — SIPP включена.
Disabled — SIPP отключена.Статьи (0)
Корзина не предназначена для покупки товаров, поскольку сайт не занимается продажами.
Функция корзины заключается всборе компьютерных комплектующих в собственную базу (требуется регистрация на сайте) и сравнении их между собой.
Сбор компьютерных комплектующих в собственную базу: Эта фанкция необходима для виртуальной сборки компьютера. Требуется регистрация на сайте.
Сравнение комплектующих: Можно сравнить только комплектующие следующих групп: 1. Жёсткие диски. 2. Твердотельные диски. 3. Оперативная память. 4. Видеокарты. 5. Центральные процессоры. 6. Материнские платы.