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

VoltageShift in MacOs Monterey #84

Open
kelvincht opened this issue Nov 10, 2021 · 11 comments
Open

VoltageShift in MacOs Monterey #84

kelvincht opened this issue Nov 10, 2021 · 11 comments

Comments

@kelvincht
Copy link

Has anybody made a working example of using VoltageShift in MacOs 12?

@zspherez
Copy link

Yes, you can find it in my repository here https://github.com/zspherez/VoltageShift/tree/master

@brechtm
Copy link

brechtm commented Jan 28, 2022

@zspherez Does this still require firmware modding (#44) or should this just work?

@zspherez
Copy link

@brechtm I did not do any firmware modding, and it seems to be working properly for me as per attached picture. Just follow the instructions in my repo closely.
image

@brechtm
Copy link

brechtm commented Jan 30, 2022

@brechtm I did not do any firmware modding, and it seems to be working properly for me as per attached picture. Just follow the instructions in my repo closely. image

The README mentions "After you build the kext, be sure to load it into your EFI.", but I'm not sure what that means exactly. I suspect this might be a Hackintosh thing, so it might not be possible on a real Mac?

I do happen to be using OpenCore Legacy Patcher (OCLP) to be able to run Monterey on my 2014 MacBook, however. The OCLP partition has an EFI/OC/Kexts directory, so I'll try dropping the VoltageShift kext in there...

@brechtm
Copy link

brechtm commented Jan 31, 2022

I managed to install the VoltageShift kext by copying it to the EFI/OC/Kexts directory and adding an entry for it (using ProperTree) to EFI/OC/config.plist.

Now I can use voltageshift to dis/enable turbo boost and set power limits, but setting a voltage offset doesn't seem to work:

 ~/Tools/VoltageShift master 🐚 ./build/Release/voltageshift offset -60
--------------------------------------------------------------------------
VoltageShift offset Tool
--------------------------------------------------------------------------
Before CPU voltageoffset: 0mv
--------------------------------------------------------------------------
After CPU voltageoffset: 0mv
--------------------------------------------------------------------------

EDIT: Looks like this still requires a firmware mod (#82). OpenCore might be able to patch the firmware in memory though, since it mentions "Enables non-invasive, non-permanent firmware updates by replacing protocols in memory".

@zspherez
Copy link

That's interesting. I use VoltageShift on a hackintosh, and often forget that it is used on traditional macs as well. I'm surprised that OCLP does not enable the same firmware updates that required no additional configuration on my end from what I remember. My laptop doesn't allow undervolting through the BIOS, but the offset applied via VoltageShift seems to be working properly, seen by greatly increased battery life and decreased temperatures.

@imloualvaro
Copy link

imloualvaro commented Feb 6, 2022

EDIT: Looks like this still requires a firmware mod (#82Detail). OpenCore might be able to patch the firmware in memory though, since it mentions "Enables non-invasive, non-permanent firmware updates by replacing protocols in memory".

u got success to mod your eeprom after OCLP/Monterey firmware update?

and... have you seen some battery improvement using Monterey?

@mattsoutherden
Copy link

@zspherez Sorry, I can't raise an issue on your repo so I have to comment here. You mention in your readme update that you've removed the binary because if people compile themselves they can use their own certs. However as far as I can tell, unless one has a full Apple developer account and also applies to be a kext developer, then you still need to disable SIP. I compiled using my own 'Mac Developer' cert and I cant load the kext with SIP enabled. Am I missing something?

@zspherez
Copy link

zspherez commented Mar 5, 2022

@mattsoutherden thanks for the heads up, I enabled issues on that repo. I personally was able to load it without a full kext developer cert, I have no developer cert other than the free one. I have SIP enabled and it still works like a charm. Are you doing this on a hackintosh or a traditional mac? I don't think it would make much of a difference, if you are able to load other kexts you should be able to load this one. Also, try ensuring that you used the version of the kext you built, rather than any other one you may have had laying around.

@zspherez
Copy link

zspherez commented Mar 5, 2022

Feel free to open an issue on my repo if you'd like to discuss further.

@xCuri0
Copy link

xCuri0 commented Jun 13, 2023

@zspherez Why does readme state I need to sign the kext while also saying to put it in OpenCore EFI kexts ? OpenCore loads unsigned kexts fine and I'm running an unsigned build of voltageshift.kext (built on another PC) without any issues on Monterey SIP on.

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

6 participants