Skip to content
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

How to modify CFG lock #8

Closed
hexart opened this issue Apr 28, 2020 · 27 comments
Closed

How to modify CFG lock #8

hexart opened this issue Apr 28, 2020 · 27 comments

Comments

@hexart
Copy link
Contributor

hexart commented Apr 28, 2020

This is not a issue, I just wonder how to extract the bios file, and find out where to unlock CFG and modify DMVT value?

@hexart
Copy link
Contributor Author

hexart commented Apr 28, 2020

截屏2020-04-28 下午5 34 00

@EETagent
Copy link

GRUB patching is not possible on any ThinkPad with Skylake and newer. EFI is locked.
See taina0407/T480-OpenCore-Hackintosh#4
Your only chance is to hardware flash experimental BIOS patch called Skyra1n ( Similar to famous 1vyrain )

@simprecicchiani
Copy link
Owner

Hey, I've just discovered this new guide on CFG unlocking. The result was the same error as with Modified GRUB Shell and this is VerifyMsrE2 screen after trying to change the var.

Anyway I tried to boot without AppleCpuPmCfgLock and AppleXcpmCfgLock quirks and it works.
BIOS version is latest 1.49
I'm wondering if someone could test booting without AppleCpuPmCfgLock and AppleXcpmCfgLock and report if it works without touching the BIOS.

@simprecicchiani
Copy link
Owner

I checked the offset with Modified GRUB Shell and I think it worked!
Thinkpad T460s CFG unlock
Thinkpad T460s CFG unlock

@simprecicchiani
Copy link
Owner

I made a guide for it.

@hexart
Copy link
Contributor Author

hexart commented Aug 17, 2020

I extracted the previous version 1.47 (N1CET79W) of T460s' BIOS file, the address of CFG Lock is also "0x3A", so the guide you made is also compatible with the older bios version of this type of machine.

CFG Lock

PE32Section.txt

@hexart
Copy link
Contributor Author

hexart commented Aug 17, 2020

IMG_0706
Any idea why ctrl+W can't save the variable? My bios version: 1.49(N1CET81W)

@simprecicchiani
Copy link
Owner

simprecicchiani commented Aug 17, 2020

No idea, it works tho.
I tried to save 2 or 3 times, then rebooted and was disabled

@hexart
Copy link
Contributor Author

hexart commented Aug 17, 2020

hackintool

Would you please check your CFG Lock status with Hackintool? You can check it by running Tools-AppleIntelInfo.

@simprecicchiani
Copy link
Owner

simprecicchiani commented Aug 17, 2020

It appears like your screenshot, but I am without quirks and inside RU.efi var 003A is saved as 00.
Did you managed to boot without quirks?

@hexart
Copy link
Contributor Author

hexart commented Aug 18, 2020

Both Hackintool and RU.efi shows 003A is 01, so I haven't try to boot without quirks yet.

@hexart
Copy link
Contributor Author

hexart commented Aug 18, 2020

By the way, I've tried Ctrl+W several times in RU.efi, but it went wrong saving the variable every time.

@simprecicchiani
Copy link
Owner

Yeah, I have 01 on RU.efi too. I guess I was wrong and it's not possible to change it. BTW Grub Shell was wrong too at this point...
Would you try to boot without quirks? I'm without them since then and the laptop is just fine.
Schermata 2020-08-18 alle 09 12 07

@hexart
Copy link
Contributor Author

hexart commented Aug 19, 2020

For sure, I'll test it and report back.

@luka-zet
Copy link

luka-zet commented Sep 1, 2020

IMG_0706
Any idea why ctrl+W can't save the variable? My bios version: 1.49(N1CET81W)

I have the same issue - any thoughts?

@simprecicchiani
Copy link
Owner

@faust86 yep it’s not possible to change the values via software. Firmware flashing seems the only way to make it.

@luka-zet
Copy link

luka-zet commented Sep 1, 2020

So quirks is only way at this time?

@simprecicchiani
Copy link
Owner

You don’t need them actually. I’m running without them for 2 weeks now and everything is fine.

@antoniomcr96
Copy link

antoniomcr96 commented Aug 2, 2021

Same here with Lenovo ThinkPad L390. Same error in RU.efi with CFG Locked but system boots fine without the patches. Does anyone know what it means?

@simprecicchiani
Copy link
Owner

Don't worry about it. Unlocking the BIOS has zero benefit over using patches (or not in your case).

@antoniomcr96
Copy link

For who is interested, this is the “official” explaination. Unlocking CFG with haswell+ and 10.11+ shouldn’t make any difference

acidanthera/bugtracker#1751

@1alessandro1
Copy link

Don't worry about it. Unlocking the BIOS has zero benefit over using patches (or not in your case).

@simprecicchiani this is wrong. Patching AppleCPUPM or AppleIntelPowerManagement is a very bad idea when CFG Lock is not possible.

Users should check OpenCore log for MSR 0xE2 status and this helped @dreamwhite to resolve random shutdowns/panics after two hours of intense usage

For all Lenovo users, I feel you, since I owned one and they're locked up for writing very badly (modGrubshell does not work, as well as RU.efi)

The only way for lenovos to disable the bad quirks and allow native power management is to use the official InsydeH2O tool described in this guide:

https://github.com/macos86/BIOS-Manual-Mode-InsydeH2O/blob/master/GuidaInsydeH2O.md

@simprecicchiani
Copy link
Owner

@1alessandro1 My comment came from personal experience, I owned a T460s for a year. Unlocking the BIOS had no effect whatsoever on user experience (same performance, temperature, issues).

I'm sure this is not the case for every system and I'm not suggesting otherwise. I just wanted to warn people trying to flash firmware mods (which is a dangerous activity and I'm no expert in it as well) since, in this specific case, it's useless.

@1alessandro1
Copy link

I just wanted to warn people trying to flash firmware mods

In practice, using the InsydeH2O tool you're not "modding/flashing the bios, since with that tool you can modify at runtime (e.g. in windows) some settings which couldn't be accessed otherwise because of Lenovo plans of locking the end user up for no reason. I would not consider this "flashing another bios" since all you're doing is locating an offset in a certain region and changing a bit from 01 to 00. Every arch user could do this with a little bit of patience and documentation

in this specific case, it's useless.

This needs real proof. The acidanthera team clearly explains in the manual not to use AppleXCPM patches, since they can cause instability. If this is not your case, it does not mean it's useless, since many users I helped have benefited from this unlock

@VinylNerd
Copy link

@1alessandro1 im trying to figure out if i should unlock CFG for my T440P, i do need 1 quirk to boot, but i cant find one person who did it on T440P

@1alessandro1
Copy link

@simprecicchiani
Copy link
Owner

@1alessandro1 im trying to figure out if i should unlock CFG for my T440P, i do need 1 quirk to boot, but i cant find one person who did it on T440P

Actually that's the model I first find a guide for. Here it is https://www.youtube.com/watch?v=ce7kqUEccUM .

simprecicchiani pushed a commit that referenced this issue Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants