mac-pixel-clock-patch-V2 icon indicating copy to clipboard operation
mac-pixel-clock-patch-V2 copied to clipboard

IT WORKS on 10.13.6

Open danieltroger opened this issue 6 years ago • 28 comments

Dude I love you for this project, you just so much saved my ass twice.

screen shot 2018-06-07 at 12 00 04

Patching:

Mac-mini-6:tmp daniel$ ./CoreDisplay-patcher.command patch v4
SIP looks to be disabled, all good!
Patching CoreDisplay with patch version 4
Password:
Re-signing /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: replacing existing signature
Running 'sudo update_dyld_shared_cache' (Might need re-run after reboot) - CAN TAKE A WHILE (Maybe even 10/30 minutes)update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/AssetCacheServicesExtensions.framework/Versions/A/XPCServices/AssetCacheTetheratorService.xpc/Contents/Frameworks/MobileDeviceKitLite.framework/Versions/A/MobileDeviceKitLite
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BiometricKitUI.framework/Versions/A/BiometricKitUI
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BookKit.framework/Versions/A/Frameworks/BookKitFoundation.framework/Versions/A/BookKitFoundation
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BroadcomWLAN.framework/Versions/A/BroadcomWLAN
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/SetupAssistantSupport
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/Swift/libswiftDemangle.dylib
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/Swift/libswiftRemoteMirror.dylib
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/WirelessDiagnosticsSupport.framework/Versions/A/WirelessDiagnosticsSupport
update_dyld_shared_cache: x86_64 incorporating 1264 OS dylibs, tracking 1781 others, building closures for 2118 executables
update_dyld_shared_cache: i386 incorporating 624 OS dylibs, tracking 1041 others, building closures for 254 executables
update_dyld_shared_cache: warning: i386 adding dependents to /System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin: required dylib '@rpath/InterfaceBuilderKit.framework/Versions/A/InterfaceBuilderKit' not found, needed by '/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin'
update_dyld_shared_cache: warning: x86_64 adding dependents to /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle: required dylib '@rpath/libclang.dylib' not found, needed by '/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle'
update_dyld_shared_cache: warning: x86_64 adding dependents to /System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin: required dylib '@rpath/InterfaceBuilderKit.framework/Versions/A/InterfaceBuilderKit' not found, needed by '/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin'
update_dyld_shared_cache: warning: x86_64 adding dependents to /System/Library/QuickLook/Audio.qlgenerator/Contents/MacOS/Audio: required dylib '/Library/Frameworks/iTunesLibrary.framework/Versions/A/iTunesLibrary' not found, needed by '/System/Library/QuickLook/Audio.qlgenerator/Contents/MacOS/Audio'
The code of CoreDisplay changed, the patch was probbably succesfull

MD5 afterwards:

Mac-mini-6:~ daniel$ cd /System/Library/Frameworks/CoreDisplay.framework/Versions/A/
Mac-mini-6:A daniel$ ls
CoreDisplay	CoreDisplay.bak	Resources	_CodeSignature
Mac-mini-6:A daniel$ md5 CoreDisplay
MD5 (CoreDisplay) = db8d84e6e08a22e057181ac0ca816ac2
Mac-mini-6:A daniel$ md5 CoreDisplay.bak 
MD5 (CoreDisplay.bak) = 8751dff84748aa57a03c2e1603940975
Mac-mini-6:A daniel$

THANKS for this amazing project!

danieltroger avatar Jun 07 '18 10:06 danieltroger

Nice,as upstairs operation it's ok after reboot! 2018-07-08 10 13 15 2018-07-08 10 16 10

kissoflove avatar Jul 08 '18 02:07 kissoflove

It also worked here! Many thanks for this patch!

ricardovf avatar Jul 12 '18 21:07 ricardovf

No longer working on my machine, just updated from 10.13.5 to 10.13.6 last night.

From Terminal:

Unknown version of CoreDisplay found.. ---- BEGINNING MD5 HASH SUMS ---- version: 10.13.6 build:17G65

 otool CoreDisplay: 20f0d2491e9370d3d74d25740aa855ba

otool CoreDisplay.bak: a273850d90c3cdf39f17ad63ed43203a CoreDisplay: e9698a0df0f68ab90f6ad0f870bf8833 CoreDisplay.bak: 63c9d5ad9441363e0bc6dbca72f53a89

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

ikseoj avatar Jul 15 '18 00:07 ikseoj

You have to manually specify the version. Run the command in Terminal and supply patch 4 as argument

/Daniel

Am 15.07.2018 um 02:29 schrieb ikseoj [email protected]:

No longer working on my machine, just updated from 10.13.5 to 10.13.6 last night.

From Terminal:

Unknown version of CoreDisplay found.. ---- BEGINNING MD5 HASH SUMS ---- version: 10.13.6 build:17G65

otool CoreDisplay: 20f0d2491e9370d3d74d25740aa855ba otool CoreDisplay.bak: a273850d90c3cdf39f17ad63ed43203a CoreDisplay: e9698a0df0f68ab90f6ad0f870bf8833 CoreDisplay.bak: 63c9d5ad9441363e0bc6dbca72f53a89

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

danieltroger avatar Jul 15 '18 10:07 danieltroger

Sorry, patch v4, please see the uppermost row in my original post, after "Patching:"

danieltroger avatar Jul 15 '18 10:07 danieltroger

@danieltroger That worked great specifying patch v4. Thank you!

ikseoj avatar Jul 15 '18 14:07 ikseoj

Works perfectly with this version :) Many thanks !

pitichampi avatar Jul 23 '18 07:07 pitichampi

Many thanks for this patch, you keep me from switching to Windows. But with the new Macbook "Pro" heat throttling I think it's going to happen anyway :p Thanks again and keep up the excellent work

gabtrek avatar Jul 23 '18 20:07 gabtrek

@danieltroger How to manually specify the patch version Thanks!

xzw219 avatar Jul 23 '18 21:07 xzw219

See above. For the lazy: cd to where you have the patch and execute ./CoreDisplay-patcher.command patch v4

danieltroger avatar Jul 24 '18 00:07 danieltroger

@gabtrek: you can try installing windows as dual boot and use it for a week, you'll eventually swim in your vomit from my experience. Alone the thing that windows randomly doesn't boot or shutdown because it's installing updates you can't turn off makes up for some inches...

And thanks again for the patch, it is truly amazing. I love 4k.

danieltroger avatar Jul 24 '18 00:07 danieltroger

It works!! Many Thanks!!

rzdev avatar Jul 24 '18 04:07 rzdev

@danieltroger Can you post a screenshot of your SwitchResX configuration?

Meikul avatar Jul 31 '18 20:07 Meikul

@Meikul

untitled

danieltroger avatar Aug 01 '18 14:08 danieltroger

@danieltroger Thanks for adding the info on the patch v4, I got it to work.

jb107502 avatar Aug 07 '18 00:08 jb107502

Great!

LatteCat avatar Aug 17 '18 16:08 LatteCat

does this work for macbook pro 2017?

szapata427 avatar Sep 06 '18 02:09 szapata427

@szapata427 I think it depends on your graphics card configuration. For the builtin intel HD-graphics it should work, AMD is not supported I believe.

danieltroger avatar Sep 06 '18 05:09 danieltroger

Why would you need this on a 2017 model?

Floris497 avatar Sep 06 '18 06:09 Floris497

I connected my Samsung 40" tv (MU6290) via USB-C to HDMI Hub (Hyperdrive) to my 2017 macbook pro and it is only outputting 30hz. Not sure how to get it to output 60hz. Thanks

szapata427 avatar Sep 06 '18 14:09 szapata427

Ah, I'm looking at specs from this device and they are only saying HDMI 4k if they don't list either 4K@60Hz or HDMI2.0 this usually means it is HDMI1.4 and not capable of 4K@60Hz.. so it looks to be a hardware limit (Apples own adapter also does NOT have HDMI2.0)

Floris497 avatar Sep 07 '18 11:09 Floris497

Hello, maybe someone can help. Before everything worked fine. Today I have upgraded to 10.13.6 and applied patch v4 afterwards. Output then was "The code of CoreDisplay changed, the patch was probbably succesfull." But it doesn't work. MD5 is:

---- BEGINNING MD5 HASH SUMS ---- version: 10.13.6 build:17G65

otool CoreDisplay: 7adbf5c02667db07dc8b48a22de8e642 otool CoreDisplay.bak: 20f0d2491e9370d3d74d25740aa855ba CoreDisplay: 0fe7a59d283bc692cbaa9fcef98dfc74 CoreDisplay.bak: e9698a0df0f68ab90f6ad0f870bf8833

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

@Floris497: Can you help me to find a solution?

Jensilein avatar Sep 29 '18 14:09 Jensilein

@Jensilein, this looks like the output I saw on my MacBook Air. Than I followed the instructions in first post to apply patch v4: ./CoreDisplay-patcher.command patch v4

I got a bunch of warnings while the patch was being applied:

An backup file already exists, if you force this patch on an already patched version you will loose the original backup!
This will lead you to reinstall the OS if you loose a working version of CoreDisplay. be carefull
It might be wise to undo the patch before trying to redo it using: mac-pixel-clock-patch-V2/CoreDisplay-patcher.command unpatch
Do you want to continue? [Y/n] 
SIP looks to be disabled, all good!
Patching CoreDisplay with patch version 4
Re-signing /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: replacing existing signature
/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: code object is not signed at all
In subcomponent: /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay.tbd
Running 'sudo update_dyld_shared_cache' (Might need re-run after reboot) - CAN TAKE A WHILE (Maybe even 10/30 minutes)update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/AssetCacheServicesExtensions.framework/Versions/A/XPCServices/AssetCacheTetheratorService.xpc/Contents/Frameworks/MobileDeviceKitLite.framework/Versions/A/MobileDeviceKitLite
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BiometricKitUI.framework/Versions/A/BiometricKitUI
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BookKit.framework/Versions/A/Frameworks/BookKitFoundation.framework/Versions/A/BookKitFoundation
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/BroadcomWLAN.framework/Versions/A/BroadcomWLAN
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/SetupAssistantSupport
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/Swift/libswiftDemangle.dylib
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/Swift/libswiftRemoteMirror.dylib
update_dyld_shared_cache: warning @rpath install name for system framework: /System/Library/PrivateFrameworks/WirelessDiagnosticsSupport.framework/Versions/A/WirelessDiagnosticsSupport
update_dyld_shared_cache: x86_64h incorporating 1264 OS dylibs, tracking 1781 others, building closures for 2124 executables
update_dyld_shared_cache: i386 incorporating 624 OS dylibs, tracking 1041 others, building closures for 254 executables
update_dyld_shared_cache: warning: i386 adding dependents to /System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin: required dylib '@rpath/InterfaceBuilderKit.framework/Versions/A/InterfaceBuilderKit' not found, needed by '/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin'
update_dyld_shared_cache: warning: x86_64h adding dependents to /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle: required dylib '@rpath/libclang.dylib' not found, needed by '/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle'
update_dyld_shared_cache: warning: x86_64h adding dependents to /System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin: required dylib '@rpath/InterfaceBuilderKit.framework/Versions/A/InterfaceBuilderKit' not found, needed by '/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resources/Assistant Plugin.ibplugin/Contents/MacOS/Assistant Plugin'
update_dyld_shared_cache: warning: x86_64h adding dependents to /System/Library/QuickLook/Audio.qlgenerator/Contents/MacOS/Audio: required dylib '/Library/Frameworks/iTunesLibrary.framework/Versions/A/iTunesLibrary' not found, needed by '/System/Library/QuickLook/Audio.qlgenerator/Contents/MacOS/Audio'
The code of CoreDisplay changed, the patch was probbably succesfull

But the patch worked. As always, you need SIP disabled to apply the patch.

IMPORTANT: make sure you have a way to recover your system if the patch does not work - this would likely mean reinstalling OSX from recovery..

marcink avatar Sep 30 '18 14:09 marcink

@marcink, Thanks for your reply. I finally solved it. The solution was about SwitchResX. I had to create a new OSX user, login as the new user and then to install my individual resolution. That was the final workaround :-)

Jensilein avatar Sep 30 '18 15:09 Jensilein

Works on 10.13.6 with Patch Version 4.

Here is the updated CoreDisplay-patcher.command

CoreDisplay-patcher.command.zip

d0cm0d avatar Oct 03 '18 07:10 d0cm0d

Anything for 10.14? I’m dying for UltraWide again. Need it for photo editing.

Ed On Oct 3, 2018, 3:34 AM -0400, d0cm0d [email protected], wrote:

Works on 10.13.6 with Patch Version 4. Here is the updated CoreDisplay-patcher.command CoreDisplay-patcher.command.zip — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

jb107502 avatar Oct 03 '18 07:10 jb107502

check the mojave issue

/Daniel

On Oct 3, 2018, at 09:37, jb107502 [email protected] wrote:

Anything for 10.14? I’m dying for UltraWide again. Need it for photo editing.

Ed On Oct 3, 2018, 3:34 AM -0400, d0cm0d [email protected], wrote:

Works on 10.13.6 with Patch Version 4. Here is the updated CoreDisplay-patcher.command CoreDisplay-patcher.command.zip — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

danieltroger avatar Oct 03 '18 09:10 danieltroger

Here is my session from trying it on Mojave. I'll be interested in an update to work with Mojave screen shot 2018-11-04 at 6 44 24 pm

Best Dou

DougButton avatar Nov 05 '18 02:11 DougButton