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

CFG lock seems to be unlocked on this laptop #8

Open
kasti0 opened this issue Dec 18, 2020 · 3 comments
Open

CFG lock seems to be unlocked on this laptop #8

kasti0 opened this issue Dec 18, 2020 · 3 comments

Comments

@kasti0
Copy link

kasti0 commented Dec 18, 2020

Not an issue, but improvement:
While trying to mod my BIOS I figured that this laptop probably doesn't have a CFG lock. So you can disable the kernel quirks AppleCpuPmCfgLock and AppleXcpmCfgLock. This can improve native CPU power management.

(I also figured out how to patch the DVMT pre-allocated so no framebuffer patches are needed)

@erinviegas
Copy link
Owner

Awesome. Does it involve modifying the BIOS?

@kasti0
Copy link
Author

kasti0 commented Dec 25, 2020

For CFG lock:
there´s no need to modify the BIOS. no matter what I set the CFG lock variable to in the BIOS, macOS was bootable with the said quirks set to False. Even the VerifyMsrE2.efi tool from OpenCore reported the CFG lock as unlocked or locked respectively, but macOS was still bootable. so it seems like the laptop just doesn´t have any kind of CFG lock.

for DVMT:
you need to change BIOS offsets manually using a tool called RU and you need to extract the necessary informations from the BIOS file from Lenovo. I was able to set DVMT to 64mb and total DVMT to Max and for example I now have 4k over my HDMI 1.4 port, which didn´t work with the stolenMem patch before.

@NinjaWolf
Copy link

Chiming in Here,

Lenovo 330s 15-ikb 81f5(Same as Kasti0)
I used Ru swell and disabled CFG-Lock.(Not sure if ru was required as Kasti says he didn't need the variables either way, nonetheless I have disabled it to be safe.)

I also used Ru to Set DVMT to 64mb(there's higher options, but uhd 620 only needs 64mb to do 4k over HDMI.) Do Not Kasti that since its HDMI 1.4, max your gonna see is 4k@24/4k@30. 4k@60 just isn't possible with a usb-c port with no DP or a HDMI 1.4 port.

I left total DVMT to the stock value as I read its pretty much fine as it is, plus I don't use HDMI that often so it was more for trial and error. I stick to Airplay streaming for my movies, and airplay only does 1080p but that's still serviceable.

Its a very good thing to do, highly recommended..

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

3 participants