Floris497 / mac-pixel-clock-patch-V2

993 stars 221 forks source link

CoreDisplay: Add hash for 16A323 on intelHD 4600 #72

Open grigorovich opened 7 years ago

grigorovich commented 7 years ago

I checked on intel HD4600 2560x1080 (21:9). Works fine. macOS X 10.12, 16A323 Just add hash in CoreDisplay-patcher at oToolCoreDisplayPatched:

oToolCoreDisplayUnpatched=( ... aa7607dd72a2a4ca70ce094a2fc39cce '10.12 16A323' 1 # 10.12 )

svickory commented 7 years ago

I tried this doesn;t work correctly with Nvdia Titan X. My 4k screen just flashes now.. so I had to plug a monitor into DVI to get mac to the desktop and unplugg my 4k screen from hdmi

Floris497 commented 7 years ago

Will look at it after work.. sorry guys past months i had verry little time to look into this thing

svickory commented 7 years ago

Thanks Floris, I really do not want to reload macos :-)

Floris497 commented 7 years ago

Someone pushed an update not long ago, can you try that one?

Floris497 commented 7 years ago

Make sure you first undo the current patch :)

svickory commented 7 years ago

Floris ive tried oToolCoreDisplayUnpatched=( ... aa7607dd72a2a4ca70ce094a2fc39cce '10.12 16A323' 1 # 10.12

what happen is I have a 4k monitor in hdmi and a normal monitor in dvi the 4k monitor doesnt even come on now. but the monitor in DVI Flashes UNTIL i unplug the 4k monitor from the hdmi port on my Titan X

Also whats the easiest way to undo the patch ?

Floris497 commented 7 years ago

Something like Patch.command unpatch :)

svickory commented 7 years ago

i dont see a patch.command unpatch

Floris497 commented 7 years ago

There is non, i meant the same command file you patched with :)

svickory commented 7 years ago

I just tried it reverted.. i tried the patch again same issues. dvi monitor flashes . hdmi monitor not turning on. also using the new nvidia drivers 367.15.10.05F01

Floris497 commented 7 years ago

Should not interfere with the nvidia drivers.. unfortunately i don't have a working nvidia card at the moment..

svickory commented 7 years ago

i hope I dont have to reinstall.. its a real pain :-)

Floris497 commented 7 years ago

As long as you did nit overwrite.. the script warns you not to :) most of the time you don't need to reinstall

svickory commented 7 years ago

I have reloaded macos 10.12 . same issue something is not right with this patch.

Floris497 commented 7 years ago

Let me see when i get home :)

grigorovich commented 7 years ago

Just add hash and patch works fine on Intel HD 4600> (DualDVI-D<>HDMI) > monitor 2560x1080

Floris497 commented 7 years ago

Maybe it's something with the nvidia driver that doesn't play well.. remember only to use the IOKit patch if you want to enable HDMI2.0

grigorovich commented 7 years ago

On 10.12 16A323 i used CoreDisplay patch for intelHD only. For Nvidia i didnt tested. Anyway coredisplay patch works fine for me on macbook air A1466 core i7 and hackintosh core i7 4790 - ihd5000 and ihd4600. Thanks for that patch.

Floris497 commented 7 years ago

*coredisplay sorry.. IOKit is the old one.. ignore i said iokit

svickory commented 7 years ago

i thought i had it working.. but its not.. What I am trying to get working is 3860*2160 at 60Hz . I have SwitcherX also..

Floris497 commented 7 years ago

I assume you mean 3840x2160@60Hz you want this to be possible over HDMI (for 60Hz this needs HDMI2.0) HDMI2.0 is not enabled because a limit in CoreDisplay (IOKit before) is limiting this for all graphics adapters. It looks like other people have succes with this patch although I've not heard any succes with Nvidia cards on HDMI2.0 on MacOS 10.12. but also have not heard of people not getting it to work.. Could you post the MD5's you have right now? please look in the readme how to generate them. I'll update my laptop now so I can see if they are correct. hope this helps you :)

svickory commented 7 years ago
---- BEGINNING MD5 HASH SUMS ---- version: 10.12 build:16A323

     otool CoreDisplay: aa7607dd72a2a4ca70ce094a2fc39cce
 otool CoreDisplay.bak: NO FILE (this is okay)
           CoreDisplay: eb27b5d68e9fb15aa65ea0153637eae2
       CoreDisplay.bak: NO FILE (this is okay)

---- ENDING MD5 HASH SUMS -------
svickory commented 7 years ago

floris yes i meant 3840x2160@60Hz

Floris497 commented 7 years ago

So it looks like the patch did not even patch.. or did you undo the patch already? Since other people have success I need to investigate wha't going on. Could you try to patch again. now using the OS X drivers (Do they support Titan X?)

svickory commented 7 years ago

I did unpatch. OS X Drivers dont support Titan X . I have to install the nvidia Drivers .

Floris497 commented 7 years ago

Hm.. Will take some time, I'll try to look into it this weekend or Friday.. can't promise anything. Your display does not support DisplayPort?

svickory commented 7 years ago

No I am using a Samsung 4k TV.. (The patched worked perfectly when i was running 10.11) also I just ran the patch . here is the outpit

---- BEGINNING MD5 HASH SUMS ---- version: 10.12 build:16A323

     otool CoreDisplay: 0a4be6cb6944fb6fcd262b967bac2ad2
 otool CoreDisplay.bak: aa7607dd72a2a4ca70ce094a2fc39cce
           CoreDisplay: a49d5686b574138b4d2e66e0edac93c0
       CoreDisplay.bak: eb27b5d68e9fb15aa65ea0153637eae2

---- ENDING MD5 HASH SUMS ------
svickory commented 7 years ago

update. so I removed SwitcherX before I patched. I did the patched then reboot . everything working Install SwitcherX . so I see 3840x2160@60Hz Soon as I choose its my 4k monitor goes blank and my 2nd monitor connected via DVI Starts Blinking... so I unplug the hdmi plug from my video card remove the patch reboot everything working again at 30Hz :-(

svickory commented 7 years ago

any updates?

Floris497 commented 7 years ago

Nope.. will have to look at it later.. don't have much time :/

qvt commented 7 years ago

Same problem here. 4k Samsung remains blank after patching 16a323 CoreDisplay driver, even at 30Hz. It used to work with my MacMini 2010 with integrated IntelHD card on El Capitan after I patched the IOKit driver.

Floris497 commented 7 years ago

Could you try the following (I'm not sure if it will work, but I have no way of testing it..): 1: unpatch CoreDisplay 2: uninstall all Switchresx 3: reboot Mac 4: repatch 5: reboot 6: set Switchresx 7: reboot to get resolutions to work.

Step 5 might not be necessary, maybe it's all not even working..

qvt commented 7 years ago

I never had luck with SwitchResX, so I finally settled with 3140x2160@30Hz. This worked out of the box on my MacMini Late 2012, just with (i) your pixel clock patch and (ii) a Club CAC-1153 MiniDisplayPort 1.2 to HDMI 1.4 3D cable. The patch worked on a clean system until El Capitan. Do you think I should give SwitchResX another chance?

Floris497 commented 7 years ago

60Hz over HDMI1.4? Don't think that is possible?