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

Big Sur breaks Voltageshift #44

Open
protonimo opened this issue Jun 23, 2020 · 91 comments
Open

Big Sur breaks Voltageshift #44

protonimo opened this issue Jun 23, 2020 · 91 comments

Comments

@protonimo
Copy link

macOS 11.0 Beta appears to break all functionality. Commands return no result initially. After changing ownership again with:

chown -R root:wheel

and trying a command again, we get the following error:

Error: Error Domain=KMErrorDomain Code=1 "Kernel request failed: (libkern/kext) not found" UserInfo={NSLocalizedDescription=Kernel request failed: (libkern/kext) not found}

My (extremely limited) understanding is that there is has been a fundamental change in the way extensions are handled in 11.0. Any word on if this change can be worked around?

@sicreative
Copy link
Owner

Yes, this app should require upgrade by implement the DriverKit layer.
However, the Big Sur and DriverKit seen currently developing and under beta.
I could like try to upgrade this program when the Big Sur launch October.

@Veemyu
Copy link

Veemyu commented Sep 8, 2020

That's too nice sicreative. Voltage shift is still used on a lot of Hackintoshes with Sky Kaby and Coffelake CPUs it'd be amazing to have this Kext back in working order with Big Sur.

I'm excited!!

@varoudis
Copy link

varoudis commented Oct 8, 2020

its super useful for 5000USD bricks... (i9 2018 MBPs :) ) Thanks!

@Veemyu
Copy link

Veemyu commented Oct 8, 2020

its super useful for 5000USD bricks... (i9 2018 MBPs :) ) Thanks!

It's not supposed to work with Broadwell+ MacBooks.
Apple locked a register that hinders modern MacBooks from Undervolting.
Or is your MacBook Rainbow Magic?

@varoudis
Copy link

varoudis commented Oct 8, 2020

its super useful for 5000USD bricks... (i9 2018 MBPs :) ) Thanks!

It's not supposed to work with Broadwell+ MacBooks.
Apple locked a register that hinders modern MacBooks from Undervolting.
Or is your MacBook Rainbow Magic?

Power limit and Boost limit does work!! (No under-voltage)

@Veemyu
Copy link

Veemyu commented Oct 12, 2020

Oh, I See
Very nice!

@Drowningfish223
Copy link

It works on Big Sur for me.

@protonimo
Copy link
Author

It actually resumed working after one of the frequent OS updates during the beta, and continued to work until recently. The "release candidate" of Big Sur appears to cause problems again (for me at least).

After fixing the code signature issue described by others in the "killed" thread, and fixing permissions, it now shows "OC_Locked" in my CPU info, which I don't recall seeing before.

When attempting to change any voltage parameters, it shows both before and after voltage offset as 0. No changes work.

I'd love to hear if anyone else has it working on the release candidate of Big Sur.
Thanks for all your hard work @sicreative

@Drowningfish223
Copy link

Drowningfish223 commented Nov 8, 2020

It works great for me on the release candidate!

IMG_0981

I did get a version from a different GitHub thread, though, so try this version of the kext and executable:

VoltageShift.kext.zip

voltageshift.zip

The only problem that I have is that the offsets don't stick through sleep, so I have to use a program to run a voltageshift shell script on every wake.

@protonimo
Copy link
Author

Thank you for your quick reply!

I must be missing something. I replaced the kext and exec with the ones you linked, fixed ownership, and rebooted as requested by system security settings. It still gives me this:
Screen Shot 2020-11-08 at 12 18 44 PM

@Drowningfish223
Copy link

Have you updated your Bios recently? If you have, you might have to undo the overclocking lock in order to undervolt.

@protonimo
Copy link
Author

I'm on a Macbook, so no BIOS.

@varoudis
Copy link

varoudis commented Nov 9, 2020

on Macbooks only power limit and turbo limit works.

@protonimo
Copy link
Author

**2014 MacBook Pro with Haswell i5-4278U

I assure you voltage offsets worked-- verified by VoltageShift itself, as well as power draw/temperature/boost clocks under load. Undervolting too far caused crashes.

@Drowningfish223
Copy link

There’s a chance that apple disabled undervolting for all macs in an update because of plundervolt, but I could be wrong.

@protonimo
Copy link
Author

protonimo commented Nov 12, 2020

Good point, that's very possible. I don't have the knowledge to work around this. So if anyone manages to get things working on a mac running Big Sur release candidate or later, please chime in.

@FMudanyali
Copy link

FMudanyali commented Nov 13, 2020

I used the version Drowningfish223 provided and so far it is working without problems. Didn't need anything additional. I'm on a 2015 MBP with i5-5257U

image

image

Unrelated but I also managed to do -130mV CPU cache voltage after seeing Drowningfish223's picture. Thanks!

@xcoder19
Copy link

so I have to use a program to run a voltageshift shell script on every wake.
@Drowningfish223 which program you use? and thank you for the files .

@vaddieg
Copy link

vaddieg commented Nov 13, 2020

I'm on macbook air 2013, where voltageshift always worked fine. Big sur broke everything, now i'm getting
Screenshot 2020-11-13 at 13 51 42
even with version from Drowningfish223

@sicreative
Copy link
Owner

I'm on macbook air 2013, where voltageshift always worked fine. Big sur broke everything, now i'm getting
Screenshot 2020-11-13 at 13 51 42
even with version from Drowningfish223

OC_Locked mean the SMC locked by Apple and no Overclock available.
(Because the SMC loaded before system start so no overclock can be override).
I am planing to updated this program, however Apple seen make either new and old devices unable to tweak voltage and this program may not useful in the coming future.

@vaddieg
Copy link

vaddieg commented Nov 13, 2020

Funniest thing: i've tried SMC reset. Now I lost turboboost completely. Looks like apple introduced intentional slowdown (or voltageshift behaves buggy on my os)
Screenshot 2020-11-13 at 15 34 54
Low frequency also reported by intel power gadget

@vaddieg
Copy link

vaddieg commented Nov 13, 2020

Removing the kext restored turbo operation. I will try to rebuild the kext with latest SDK (there were some hints in xcode rc release notes, that kexts need recompilation)

@mendeel
Copy link

mendeel commented Nov 13, 2020

I'm also getting the OC_Locked message. Is there anything that can be done to unlock it?

@tvrrp
Copy link

tvrrp commented Nov 15, 2020

After updating to Big Sur, undervolting stopped working for me too (even on Catalina). Based on the updated EFI and SMC, Apple seems to have closed the undervolting option on all Macs.

Screenshot 2020-11-15 at 13 42 06

@vaddieg
Copy link

vaddieg commented Nov 15, 2020

After updating to Big Sur, undervolting stopped working for me too (even on Catalina). Based on the updated EFI and SMC, Apple seems to have closed the undervolting option on all Macs.

that was my biggest fear.. undervolting helped my 22nm i5 macbook air to run on max turbo infinitely long. And battery life was considerably better

@vaddieg
Copy link

vaddieg commented Nov 15, 2020

SMC lock by big sur firmware upgrade is confirmed. Luckily there is a way to downgrade https://support.apple.com/en-gb/HT201518 will try it out later

@tvrrp
Copy link

tvrrp commented Nov 15, 2020

SMC lock by big sur firmware upgrade is confirmed. Luckily there is a way to downgrade https://support.apple.com/en-gb/HT201518 will try it out later

Let me know if you can do something. But the link that you sent me will most likely not work.

@FMudanyali
Copy link

I seem to undervolt just fine even after the latest update.

@tvrrp
Copy link

tvrrp commented Nov 15, 2020

I seem to undervolt just fine even after the latest update.

What is your MacBook and what is the firmware version?

I have MacBook Pro 13 late 2013
Screenshot 2020-11-15 at 15 30 15

@FMudanyali
Copy link

FMudanyali commented Nov 15, 2020

I will look at the firmware version in 2-3 hours but its a macbook pro 13 early 2015, with i5-5257U. Also you may want to remove your edit history if you can, its visible.

@John9445
Copy link

That’s awesome news.

Does anyone know what tricks „Volta“ uses that allows undervolting with current firmware albeit maximum macOS Mojave support?

@vaddieg
Copy link

vaddieg commented Apr 27, 2021

That’s awesome news.

Does anyone know what tricks „Volta“ uses that allows undervolting with current firmware albeit maximum macOS Mojave support?

seems it's not. Checked on my 2013 MBA (Mojave, latest firmware)

@John9445
Copy link

That’s awesome news.
Does anyone know what tricks „Volta“ uses that allows undervolting with current firmware albeit maximum macOS Mojave support?

seems it's not. Checked on my 2013 MBA (Mojave, latest firmware)

I’m confused. Is Volta working for you? But voltageshift isn’t?

@th3sk4
Copy link

th3sk4 commented Apr 28, 2021

You will need an external programmer for the firmware flashing process.

@IsmaelHG programmer with which type of connector? Proprietary Apple's one?
Cause I've searched it recently on AliExpress and one connector with short cable costs more than 100$.

@vaddieg
Copy link

vaddieg commented Apr 28, 2021

That’s awesome news.
Does anyone know what tricks „Volta“ uses that allows undervolting with current firmware albeit maximum macOS Mojave support?

seems it's not. Checked on my 2013 MBA (Mojave, latest firmware)

I’m confused. Is Volta working for you? But voltageshift isn’t?

nothing works

@John9445
Copy link

What tools do you use to check if it is working?

@imloualvaro
Copy link

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!

Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.

UndervoltBigSur

Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

That could work for rMBP 2013?

@IsmaelHG
Copy link

IsmaelHG commented May 1, 2021

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.
UndervoltBigSur
Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

That could work for rMBP 2013?

If you have the Late 2013 model (4th gen intel haswell cpu), yes.

@binh-geomatics
Copy link

binh-geomatics commented May 8, 2021

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.
Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

My Mac (15" late 2013 ME293) was upgraded to Big Sur and then downgraded back to Catalina. After downgrading, the BIOS remains a Big Sur one (no voltage offset). Following your guide, I successfully modded it's BIOS. After writing the modded BIOS, the Mac need to turn on (after few seconds it turns off) twice, then it worked as expected.
Thank you!

@jtb-ship-it
Copy link

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.

UndervoltBigSur

Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

Worked here too on a mid 2014 macbook pro, using the windows apps I found it helped to erase before writing otherwise I was getting writes that didnt match the file.

@jtb-ship-it
Copy link

Worked here too on a mid 2014 macbook pro, using the windows apps I found it helped to erase before writing otherwise I was getting writes that didnt match the file.

I had to patch it again after upgrading to big sur 11.5

@imloualvaro
Copy link

imloualvaro commented Sep 3, 2021

@binh-geomatics @jtb-ship-it did you use ch341a and SOP8?

I patched successfully over osx 11.3 but after I tried to do after 11.5 I bricked my rMBP 2013. I did use ubuntu to dump my original eprom rom thought terminal, and after UEFI patch I did try to write using ch341a programmer and I always get "Chip main memory with the contents are in disagreement" error. I get same error when I try to revert to backup rom. I'm using ch341a programmer v1.29 and v1.18

Original dump rom file has 8,388,608 bytes, same size as the one I did get from osx 11.3

@jtb-ship-it
Copy link

Did you try clearing the rom first? I wasnt able to get a verified write with any program without erasing the rom first.

@imloualvaro
Copy link

@jtb-ship-it I didn't know about that. Thanks for your advice. I did a new try and know everything works fine! Im so happy (:

@Rimmsi
Copy link

Rimmsi commented Sep 5, 2021

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.

UndervoltBigSur

Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

Hallo, can i use this set https://www.amazon.com/Coomatec-Socket-Adapter-Programmer-Software/dp/B08KG7YM45/ref=pd_sbs_3/133-5296797-1568048?pd_rd_w=2xspB&pf_rd_p=3676f086-9496-4fd7-8490-77cf7f43f846&pf_rd_r=7H19D6JRXX7GR0FXSWAX&pd_rd_r=00eae9ef-acb6-438b-ab63-2ed4a5f086d6&pd_rd_wg=c5aCO&pd_rd_i=B08KG7YM45&psc=1 for flashing correct firmware? Thx.

@IsmaelHG
Copy link

IsmaelHG commented Sep 5, 2021

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.
UndervoltBigSur
Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

Hallo, can i use this set https://www.amazon.com/Coomatec-Socket-Adapter-Programmer-Software/dp/B08KG7YM45/ref=pd_sbs_3/133-5296797-1568048?pd_rd_w=2xspB&pf_rd_p=3676f086-9496-4fd7-8490-77cf7f43f846&pf_rd_r=7H19D6JRXX7GR0FXSWAX&pd_rd_r=00eae9ef-acb6-438b-ab63-2ed4a5f086d6&pd_rd_wg=c5aCO&pd_rd_i=B08KG7YM45&psc=1 for flashing correct firmware? Thx.

The CH341a is compatible with any 2013-2014 mac but the SOP8 clamp is only compatible with 15" MacBook Pro (A1398).
IsmaelHG/UndervoltPatchMacBook#1

@Rimmsi
Copy link

Rimmsi commented Sep 5, 2021

Ok, I have MBP 15" 2014 (A1398), so I ordered set from Amazon. Can you please publish a pictorial guide to the complete procedure? I watched videos on Youtube how to use CH341A, I think I fully understood the principle of the whole operation, but I would like to be sure how to make the adjustment correctly on my MBP. I used to do BIOS adjustments on my Thinkpads. Thank you.

@Rimmsi
Copy link

Rimmsi commented Sep 14, 2021

Hi, I managed to successfully unlock firmware 431 on BigSur 11.5.2. Now I can perform CPU undervolting. Thank you very much.

@imloualvaro
Copy link

Would be necessary to patch again after latest 11.6 update?

@brechtm
Copy link

brechtm commented Feb 4, 2022

I think it may be possible to patch the firmware without an external programmer. Using dosdude's ROMTool [1], I was able to dump the 432.60.3.0.0 firmware for my Mid-2014 MacBook Pro 15" (MacBookPro11,2) [2]. Guided by @IsmaelHG's instructions [3], I can patch it.

ROMTool also supports flashing the firmware ROM, but I haven't yet mustered the courage to do try this (partly due to [2]). Perhaps if there was a way to recover in case anything goes wrong...

I was hoping I could unlock undervolting without having to flash the firmware ROM. On (some) machines, this is possible by means of a Modified GRUB Shell [4]. This doesn't seem to be an option on (my) MacBook as I cannot find a Setup section in the firmware (or "CFG Lock" and "OC Lock" strings).

[1] http://dosdude1.com/apps/ (don't miss zippasswords.txt)
[2] ROMTool warns about needing to select the correct EEPROM chip. Dumps using any of the 3 options all have the same checksum however. But perhaps there could be a difference when flashing the ROM?
[3] https://github.com/IsmaelHG/UndervoltPatchMacBook
[4] https://dortania.github.io/docs/latest/Configuration.html#x1-390008

@IsmaelHG
Copy link

IsmaelHG commented Feb 4, 2022

I think it may be possible to patch the firmware without an external programmer. Using dosdude's ROMTool [1], I was able to dump the 432.60.3.0.0 firmware for my Mid-2014 MacBook Pro 15" (MacBookPro11,2) [2]. Guided by @IsmaelHG's instructions [3], I can patch it.

ROMTool also supports flashing the firmware ROM, but I haven't yet mustered the courage to do try this (partly due to [2]). Perhaps if there was a way to recover in case anything goes wrong...

I was hoping I could unlock undervolting without having to flash the firmware ROM. On (some) machines, this is possible by means of a Modified GRUB Shell [4]. This doesn't seem to be an option on (my) MacBook as I cannot find a Setup section in the firmware (or "CFG Lock" and "OC Lock" strings).

[1] http://dosdude1.com/apps/ (don't miss zippasswords.txt) [2] ROMTool warns about needing to select the correct EEPROM chip. Dumps using any of the 3 options all have the same checksum however. But perhaps there could be a difference when flashing the ROM? [3] https://github.com/IsmaelHG/UndervoltPatchMacBook [4] https://dortania.github.io/docs/latest/Configuration.html#x1-390008

ROM flash is mandatory to unlock FIVR control.
On these apple machines, FIVR is locked because the 20th bit of MSR 0x194 gets set to 1 by a piece of code from the ROM executed when the system turns on. And once this bit is set to 1, the intel cpu will not let you set it back to 0 while its powered on (you would need a CPU vulnerability to do so)

As for the flashing without an external programmer, you can't either because the ROM region is write protected for security by Apple. There was a bug years ago that unlocked the write protection but it's fixed on newer ROM versions

https://reverse.put.as/2015/05/29/the-empire-strikes-back-apple-how-your-mac-firmware-security-is-completely-broken/

@th3sk4
Copy link

th3sk4 commented Jul 22, 2022

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3!
Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.

programmer with which type of connector? Proprietary Apple's one?
Cause I've searched it recently on AliExpress and one connector with short cable costs more than 100$.

After months of "thinking" I finally decided to try bring back undervolt feature for my A1502 MacBook 13 inch late 2013; By mistake I updated Mojave to Big Sur, and the rolled back to Mojave - UEFI was updated and I was not able to downgrade it with Mojave installation. So, as we all figured out above, updating your UEFI will lock needed register (or smith like that), so undervolt would not be possible.
But by using @IsmaelHG guide, I was able to unlock it. As @IsmaelHG described in his guide, for 15 inch models you don't need desolder UEFI/BIOS chip. But in my case I have 13 inch model, so I had to purchase pricy cable (65$ on Ebay, 650$ and more on AliExpress for some reason) with proprietary connector OR I can desolder BIOS chip, make a dump, modificate and flash it back, then solder it back — so I selected 2nd option. In my case, it was located on the back side of the motherboard, so it was "very easy" to access — had to disconnect all the things, unscrew the laptop's motherboard and so on.
Finally, I found UEFI chip and then I desoldered it with the heat gun (350C, medium flow).
photo_2022-07-22 20 16 56
I used CH340A programmer and board that came with it, to solder chip on it (you need to be careful while soldering, chip has a huge GND contact underneath, you need to put a small piece of kapton tape there). Then I used NeoProgrammer to read the dump out from the chip, used UEFI patch tool with @IsmaelHG txt patch file, erased chip and wrote patched firmware on the chip.
Then desoldering and soldering back on the motherboard with the soldering iron. I was very surprised when MB finally booted and now I can use undervolt feature. Finally!
Screenshot 2022-07-22 at 19 44 20

@tatthang0501
Copy link

Can anyone undervolt on macbook pro 16 2019? I installed voltageshift but after using sudo offset no voltage change :(

@Rimmsi
Copy link

Rimmsi commented Jul 23, 2022

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3! Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.

UndervoltBigSur

Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

I have successfully modified firmware for MBP on my Windows PC. I tried to do the patch in Mac OS Catalina and got the error message "UEFIPatch command not found". Can you tell me what I'm doing wrong?

And what is the latest version of firmware on which the undervoltage unlock can be performed? I have a 15" rMBP mid 2014.
Thank you.

@IsmaelHG
Copy link

I successfully modded the Firmware and unlocked undervolting with the latest 431.0.0.0.0 version on Big Sur 11.3! Also, this method should unlock MSR 0x150 on 2016+ 13" Macs which never supported voltageshift. I'll give extra details and write a python tool for patching your firmware on the following weeks. You will need an external programmer for the firmware flashing process.
UndervoltBigSur
Edit: I made a tutorial for unlocking undervolting on Haswell macs https://github.com/IsmaelHG/UndervoltPatchMacBook

I have successfully modified firmware for MBP on my Windows PC. I tried to do the patch in Mac OS Catalina and got the error message "UEFIPatch command not found". Can you tell me what I'm doing wrong?

And what is the latest version of firmware on which the undervoltage unlock can be performed? I have a 15" rMBP mid 2014. Thank you.

That error means it can't find the UEFIPatch executable, make sure the terminal is opened on the same folder as the executable.

And the patch is still working with the latest big sur security update (firmware version 432.60.3.0.0)

@bluewave65
Copy link

Hi,
what about 474.0.0.0.0 firmware ?
Is it still applicable ?

Thanks
Dave

@teqtic
Copy link

teqtic commented Mar 19, 2024

Could someone please help me with configuring and connecting the CH341A programmer? I made an issue on the UnderVoltPatchMacBook GitHub page: IsmaelHG/UndervoltPatchMacBook#7

EDIT: I was able to get it working simply by making sure the SOP8's pin connector and the clip was on tight. The logic board did not need to have power for it to be read. I also left the CH341A as is.

This confirms that the patch has worked to unlock undervaluing again on firmware 478.0.0.0.0.

@teqtic
Copy link

teqtic commented Jun 12, 2024

Has anyone tried this after Big Sur? I am now looking to try OCLP on my late 2013 15" MacBook Pro with Sonoma. Will that update my firmware from my patched Big Sur 478.0.0.0 firmware? Will that require patching it again?

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