Floris497 / mac-pixel-clock-patch-V2

994 stars 221 forks source link

Support for 10.15.4 (build 19E287), MacBook Pro 13" 2016 #353

Open thirstyraven opened 4 years ago

thirstyraven commented 4 years ago

I have the MacBook Pro 13" late 2016 model running the latest 10.15.4 (build 19E287) with an Intel Iris Graphics 550. The script didn't detect my build, and forcing patch v5 didn't work.

$ sudo mount -uw /

# before
$ ./CoreDisplay-patcher.command status
SIP looks to be disabled, all good!

Unknown version of CoreDisplay found.
---- BEGINNING MD5 HASH SUMS ---- version: 10.15.4 build:19E287

     otool CoreDisplay: a4afd360d5a91e3d78d32d833350d288
 otool CoreDisplay.bak: NO FILE (this is okay)
           CoreDisplay: fd95fbe3bea2f9083e0500798b7aa8a4
       CoreDisplay.bak: NO FILE (this is okay)

---- ENDING MD5 HASH SUMS -------

# during
$ ./CoreDisplay-patcher.command patch v5
SIP looks to be disabled, all good!
Patching CoreDisplay with patch version 5
Re-signing /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: replacing existing signature
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/CreateML.framework/Versions/A/CreateML (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/HelloWorldMacHelper.framework/Versions/A/HelloWorldMacHelper (("Could not find dependency '/System/Library/PrivateFrameworks/UHASHelloExtensionPoint-macOS.framework/Versions/A/UHASHelloExtensionPoint-macOS'"))
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /usr/lib/swift/libswiftCreateML.dylib (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))
update_dyld_shared_cache: x86_64h incorporating 1810 OS dylibs, tracking 990 others, building closures for 2265 executables
The code of CoreDisplay changed, the patch was probably successful.

# after
$ ./CoreDisplay-patcher.command status
SIP looks to be disabled, all good!

Unknown version of CoreDisplay found.
---- BEGINNING MD5 HASH SUMS ---- version: 10.15.4 build:19E287

     otool CoreDisplay: 1de59c1de7ea466ff74f617cdc8ab9de
 otool CoreDisplay.bak: a4afd360d5a91e3d78d32d833350d288
           CoreDisplay: 6c039d30a107b94ddb05df78703500d3
       CoreDisplay.bak: fd95fbe3bea2f9083e0500798b7aa8a4

---- ENDING MD5 HASH SUMS -------

However, I'm still able to only get 30 Hz from my 3840 x 2160 external display. I know that my adapter and HDMI cable support 4K 60 Hz, because I can natively get 4K 60 Hz on my external display with my MacBook Pro 15" 2018.

I tried forcing 60 Hz with SwitchResX as well, but I was unable to activate. switchresx-setting

What next?

fanysoft commented 4 years ago

same here, please

radKoz commented 4 years ago

I also have similar issue after update to 10.15.4. I tried to unpatch and patch it again with v5. But after that my mac was stuck at start on apple logo (progress bar almost full 100%). I restored backup and it boots fine. Hopefully we'll get updated version soon, this patch is just too good to not use it (and be stuck with 30hz)

macbook pro 2017 with Intel Iris Plus Graphics 640

SIP looks to be disabled, all good!
Patching CoreDisplay with patch version 5
Re-signing /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: replacing existing signature
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/CreateML.framework/Versions/A/CreateML (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/HelloWorldMacHelper.framework/Versions/A/HelloWorldMacHelper (("Could not find dependency '/System/Library/PrivateFrameworks/UHASHelloExtensionPoint-macOS.framework/Versions/A/UHASHelloExtensionPoint-macOS'"))
update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /usr/lib/swift/libswiftCreateML.dylib (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))
update_dyld_shared_cache: x86_64h incorporating 1810 OS dylibs, tracking 990 others, building closures for 2266 executables
update_dyld_shared_cache: symbol '_kCDDisplayPresetUIReferencePresetKey' not found, expected in '/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay', needed by '/System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPanel'
The code of CoreDisplay changed, the patch was probably successful.
Floris497 commented 4 years ago

Oh, I’ll check it out soon. Thanks

jszsj commented 4 years ago

same issue, my macbook is 15inch mid 2015

radKoz commented 4 years ago

It works again on catalina 10.15.5

thirstyraven commented 4 years ago

It works again on catalina 10.15.5

@radKoz I'm on 10.15.5 (19F101) right now and patching v5 doesn't work for me.