Floris497 / mac-pixel-clock-patch-V2

994 stars 221 forks source link

IT WORKS on 10.13.6 #281

Open danieltroger opened 6 years ago

danieltroger commented 6 years ago

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!

kissoflove commented 6 years ago

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

ricardovf commented 6 years ago

It also worked here! Many thanks for this patch!

ikseoj commented 6 years ago

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 -------

danieltroger commented 6 years ago

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 notifications@github.com:

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 commented 6 years ago

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

ikseoj commented 6 years ago

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

pitichampi commented 6 years ago

Works perfectly with this version :) Many thanks !

gabtrek commented 6 years ago

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

xzw219 commented 6 years ago

@danieltroger How to manually specify the patch version Thanks!

danieltroger commented 6 years ago

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

danieltroger commented 6 years ago

@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.

rzdev commented 6 years ago

It works!! Many Thanks!!

Meikul commented 6 years ago

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

danieltroger commented 6 years ago

@Meikul

untitled

jb107502 commented 6 years ago

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

LatteCat commented 6 years ago

Great!

szapata427 commented 6 years ago

does this work for macbook pro 2017?

danieltroger commented 6 years ago

@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.

Floris497 commented 6 years ago

Why would you need this on a 2017 model?

szapata427 commented 6 years ago

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

Floris497 commented 6 years ago

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)

Jensilein commented 6 years ago

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?

marcink commented 6 years ago

@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..

Jensilein commented 6 years ago

@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 :-)

d0cm0d commented 6 years ago

Works on 10.13.6 with Patch Version 4.

Here is the updated CoreDisplay-patcher.command

CoreDisplay-patcher.command.zip

jb107502 commented 6 years ago

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 notifications@github.com, 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.

danieltroger commented 6 years ago

check the mojave issue

/Daniel

On Oct 3, 2018, at 09:37, jb107502 notifications@github.com 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 notifications@github.com, 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.

DougButton commented 6 years ago

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