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

Needs Support for 10.11.2 #18

Open
rasmi opened this issue Dec 9, 2015 · 86 comments
Open

Needs Support for 10.11.2 #18

rasmi opened this issue Dec 9, 2015 · 86 comments

Comments

@rasmi
Copy link

rasmi commented Dec 9, 2015

Here are the checksums I have for OS X 10.11.2, which was released today:

$ md5 -q /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
a7afb2dd9df1e4c48f12b4b52f7da212
$ md5 -q /System/Library/Extensions/NVDAGK100Hal.kext/Contents/MacOS/NVDAGK100Hal
bb87a13eaabefcafa9e82fad03365aa4
$ md5 -q /System/Library/Extensions/AMDSupport.kext/Contents/MacOS/AMDSupport
018b02afbcaeca2883b316076bae2700
@legotheboss
Copy link

I tried the commands for the previous 10.11.1 and it executed perfectly fine. Just manually run the commands for 10.11.1 if this is important for you.

@rasmi
Copy link
Author

rasmi commented Dec 9, 2015

@legotheboss, thanks for the tip. I can confirm that it worked fine for me, too. Here's my checksum for the patched IOKit:

$ md5 -q /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
a9435069e490b38e807a0d9b2eb6e76c

And I went ahead and created a pull request for the IOKit patch. Someone else will have to take care of the Nvidia and AMD patches -- I can't test them on my machine, but I suspect the changes are similarly minimal.

@Kazom
Copy link

Kazom commented Dec 9, 2015

Hi this stopped working on 10.11.2 for me. When I run the commands nothing happens it doesn't provide any output. Tried it with disabling rootless too

Edit: Got it working with the three extra command lines

@Nerokrox
Copy link

Nerokrox commented Dec 9, 2015

i tried your IOKit patch. It says:
Detected unpatched IOKit on 10.11.2, patching.

Can't rename /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit to /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit.bak: Operation not permitted, skipping file.
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit: replacing existing signature
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit: Operation not permitted

Can you help me?

@Kazom
Copy link

Kazom commented Dec 9, 2015

Nerokrox do you have SIP/Rootless disabled? Double check that it wasn't reenabled after the update. Boot into recovery (command+R on startup) then open terminal and run csrutil disable then reboot.

@Floris497
Copy link
Owner

System integrity protection

@pos005
Copy link

pos005 commented Dec 10, 2015

Can confirm this is working on my hackintosh with a Titan X. 4k 60hz.
Thanks!

@gaocuo
Copy link

gaocuo commented Dec 10, 2015

FYI

iokit_md5_10_11_2=a7afb2dd9df1e4c48f12b4b52f7da212

iokit_md5_10_11_2_patched=5718d75dc7390e3209bb7f8092e7d05b

and confirm it working on my i5-4590.

@Floris497
Copy link
Owner

@pos005 is this patch needed on a titan x?? I don't need it on my 670

@pos005
Copy link

pos005 commented Dec 10, 2015

@Floris497 yes it is. I use my Titan x to a 4K tv via hdmi 2.0. Without this patch it does not output any resolution at 60hz. With the patch everything works normally.

@Floris497
Copy link
Owner

Oh good to know!

@rwkyyy
Copy link

rwkyyy commented Dec 11, 2015

Worked for me on MacBook Early 2015

Detected unpatched IOKit on 10.11.2, patching.

Password:

/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit: replacing existing signature

@rasmi
Copy link
Author

rasmi commented Dec 11, 2015

Great! @Floris497, should this issue be closed, or is there more work that needs to be done (specifically for the Nvidia patch)?

@Floris497
Copy link
Owner

@rwkyy why is this patch needed on a 2015 machine? I tought it was only needed for older hardware..

@rwkyyy
Copy link

rwkyyy commented Dec 11, 2015

@Floris497 because I got an external display with resolution up to 2560 x 1080 @60Hz and OS X allows 1920 x 1080 on full HD (using a display port adapter to hdmi).

@Floris497
Copy link
Owner

That is weird.. You should be able to add that resolution using switchresx without this patch, I think. Also I think 2015 models will output that resolution over HDMI no problem, although native 2560x1440 screens seem to work better than 2560x1080..

@mutatioveritas
Copy link

"Hi this stopped working on 10.11.2 for me. When I run the commands nothing happens it doesn't provide any output. Tried it with disabling rootless too

Edit: Got it working with the three extra command lines"

I'm in the same boat as Kazom was initially. No response with the 3 provided command lines. Tried with and without SIP enabled. Any help would be great.

@rwkyyy
Copy link

rwkyyy commented Dec 11, 2015

@Floris497 Searched like 3 days for a solution to display the native resolution, with switchres I only managed to get a virtual resolution, but I still wanted native for the sharp text and stuff.

This patch was the only one that solved my problem.

@Floris497
Copy link
Owner

@rwkyyy good to know
@mutatioveritas does it work now?

@mutatioveritas
Copy link

Got it to run once and got an error about an xcrun folder being missing. Installed Xcode thinking that might help. Tried it a number of times thereafter and back to the no response.

@Floris497
Copy link
Owner

Place the old file back using the mv command, then redo the patch. The exact command is somwhere in the other issues here or on the master repository.. I'll link it later if i have time

@mutatioveritas
Copy link

Where does it end up at? Tried looking in the downloads folder as well as the home drive with all files visible. I'll try the mv command when I get a sense of which directory it's in.

Got the following:

iMac:/ mutatio$ mv ./macPixelClockPatcher.command ~/Downloads
mv: ./macPixelClockPatcher.command: No such file or directory

@rasmi
Copy link
Author

rasmi commented Dec 11, 2015

@mutatioveritas, the three commands are here, not the ones posted above:

sudo perl -i.bak -pe '$before = qr"\x0f\x85\x92\x03\x00\x00"s;s/$before/\xe9\x7a\x03\x00\x00\x90/g' /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
sudo touch /System/Library/Extensions
# Now appears to require re-signing, despite not being in CodeResources
sudo codesign -f -s - /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

the backup file is in the same directory that's being modified and should be called /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit.bak , but try running the three commands above with SIP disabled.

@mutatioveritas
Copy link

@rasmi: Thanks, rasmi. Just to clarify, I'm running those commands after having run the initial three commands (e.g., cd ~/Downloads, etc.)? For instance, are the commands you've offered supposed to be run after getting the error that I got, where I'm now left without the initial commands getting any traction? Or, are the commands you've included intended to be run assuming the initial commands were successful?

@Floris497
Copy link
Owner

They should work either way

@skubic
Copy link

skubic commented Dec 13, 2015

Thanks a lot for your work. I had succsess in many cases with this patch. Now im stucked.
OS X 10.11.2 with GTX970 Gaming F1 and latest Nvidia Web Drivers. Samsung UHD TV connected to HDMI2. Works without Patch at 3840x2160@30hz. So I tried your patch to enable 60hz. Some Useres were able to get 60hz then. Not me. Do I need to patch the Nvidia Web Driver or is it just the IOKit?

@mirarty
Copy link

mirarty commented Dec 14, 2015

I have similar issue as skubic with GTX680MX. In windows I'm able to get 52Hz but in OS X 10.11.2 only 30Hz. Since I don't have thunderbolt 2 I know the max frequency will be 52Hz but it is not supported in latest driver. Any suggestion how to patch nvidia driver to overclock the pixel clock?

@rasmi
Copy link
Author

rasmi commented Dec 14, 2015

@skubic and @mirarty, you can try the following:

    sudo perl -i.bak -pe '$oldLimit1 = qr"\xC7\x82\xD0\x00\x00\x00\x88\x84\x02\x00"s;$newLimit1 = "\xC7\x82\xD0\x00\x00\x00\x80\x1A\x06\x00";$oldLimit2 = qr"\xC7\x82\x20\x01\x00\x00\x88\x84\x02\x00"s;$newLimit2 = "\xC7\x82\x20\x01\x00\x00\x80\x1A\x06\x00";s/$oldLimit1/$newLimit1/g;s/$oldLimit2/$newLimit2/g' /System/Library/Extensions/NVDAGK100Hal.kext/Contents/MacOS/NVDAGK100Hal
    sudo touch /System/Library/Extensions

It would also be helpful if you could both share your md5 checksums so they can be included in the script (before and after patching).

md5 -q /System/Library/Extensions/NVDAGK100Hal.kext/Contents/MacOS/NVDAGK100Hal

@mirarty
Copy link

mirarty commented Dec 14, 2015

@rasmi
Before patching: bb87a13eaabefcafa9e82fad03365aa4
After patching: 3b3244d597be457326d9c19309f00ff0

I don't see any difference after patching. My current limit is 358.20MHz Any other suggestion what I can try?

@skubic
Copy link

skubic commented Dec 22, 2015

The highest is 30hz. Have tried nearly every possible Resolution.

@Floris497
Copy link
Owner

Hm.. It's hard for me to discover how to get this working.. I have no GPU that can output HDMI2.0.. I'll see if i find time to digg around a little this year 😁

@skubic
Copy link

skubic commented Dec 22, 2015

Thank you. I'll give the Club 3D active 60hz DP>HDMI2 a try. As soon as it will be in stores around Europe. Enjoy the Christmas Days.

@mirarty
Copy link

mirarty commented Dec 22, 2015

In my case highest is 3840x2160@40Hz. Which active adapter you recommend?

@Floris497
Copy link
Owner

Over HDMI? That is actually good, I think which means you can output over the 1.4 standart? I'll try if my gtx 670 can do 40Hz over HDMI

@mirarty
Copy link

mirarty commented Dec 22, 2015

@Floris497 I use thunderbolt1 / mDP.

@Floris497
Copy link
Owner

Oh :/ I'll look for something though 😁

@androcci
Copy link

@Floris497 hello floris. we have the same gnu card. the GTX 670 2gb i believe. i have downloaded your file. on the first set up it asked me for my password after i pasted the command lines. i restarted and switchresx said not activated-invalid?
so i tried doing it again. but when i pasted the command lines, i got NO OUTPUT, nothing to put my password on this time. nothing works...... I'm on el capitan 10.11.2. any help would be much appreciated. here is a scene shot! :)

screen shot 2015-12-28 at 1 08 29 pm
screen shot 2015-12-28 at 1 09 42 pm

the second one is proof that the command lines pasted that worked before, don't work now, after i run the program once.

@mirarty
Copy link

mirarty commented Dec 28, 2015

@androcci Do you have disabled SIP?

@androcci
Copy link

@mirarty yeah!:D :(someone said try switchresx so that is why i disabled SIP. i went to recovery partition and disabled it then restarted again and i found out about this awesome patch! after . i downloaded the command file and pasted the command lines on terminal, it worked the first time asked me for my password and all, it only said it found kext but didn't see any nvidia. i restarted and the resolution set was invalid? i dont know what to do! 30Hz is killing me!!! and I'm just lucky i have the same GPU as floris but is not working for me. thanks!!

@mirarty
Copy link

mirarty commented Dec 29, 2015

@androcci What is your MD5?
$ md5 -q /System/Library/Extensions/NVDAGK100HalWeb.kext/Contents/MacOS/NVDAGK100HalWeb

@androcci
Copy link

i gave up. i talked to floris in another topic. she told me that we have the same computer parts. the problem is that i installed el capitan with a gtx 750 ti then i got my gtx 670 in the mail and i plugged it in. she told me to re install it. i will keep you up date it. i have a good feeling this time it will work. i think the gtx 670 is the GPU to go to. i deleted everything I'm starting from zero again.

@mirarty
Copy link

mirarty commented Dec 29, 2015

Good luck! Keep us posted.

@Floris497
Copy link
Owner

@androcci I pretty much feel like I'm a boy 🙈
I didn't read this before I commend on the other topic, it doesn't matter what card is in when installing.. Can't find a link of the cube 3d adapter, should be the only one on the market now.. I think I linked it before 😁 I'll make the Nvidia patch later, but I'm sure you can find the patch in a different topic, a similar question has been around before..
If you want it the easy way use the 670, if you want the extra performance we have to find out how to get the Ti card to work.

@androcci
Copy link

@mirarty here is the link to my detailed problem and the md5 you asked about!
vinc3m1#9 (comment)

@timohour
Copy link

timohour commented Jan 5, 2016

It worked great on an H87N board with onboard HD4600 and HDMI output on a Dell U2515H.

From maximum 2048x1152 it now supports 2560x1440.
But for some reason when I set the resolution @ 1440p it kills the wifi (BCM943225).
Setting the resolution back 2048x1152 makes the wifi work again. I can't' figure out why.

Any suggestions?

@Xenobreaker
Copy link

For what it's worth, I have the Club3D DisplayPort 1.2 to HDMI 2.0 CAC-1070 adapter and a GTX 670. I patched IOKit then I tried the patch Floris497's posted earlier for the latest Nvidia web drivers (346.03.04f02) that also sets the limit to 600mhz which is this:

sudo perl -i.bak -pe '$oldLimit1 = qr"\xC7\x82\x80\x00\x00\x00\x88\x84\x02\x00"s;$newLimit1 = "\xC7\x82\x80\x00\x00\x00\xC0\x27\x09\x00";$oldLimit2 = qr"\xC7\x82\xF8\x00\x00\x00\x88\x84\x02\x00"s;$newLimit2 = "\xC7\x82\xF8\x00\x00\x00\xC0\x27\x09\x00";s/$oldLimit1/$newLimit1/g;s/$oldLimit2/$newLimit2/g' /System/Library/Extensions/NVDAGK100HalWeb.kext/Contents/MacOS/NVDAGK100HalWeb
sudo touch /System/Library/Extensions

my patched driver now gives an md5 checksum of: 759bb537cfc38c19e46ef15c31f12fcc

I'm currently on El Capitan 10.11.2 with Nvidia Web Driver 346.03.04f02.

Upon testing, I can still only achieve 3840x2160 30hz, there's still no option for 3840x2160 60hz. Out of curiosity, I booted my system up in Windows and I was also still not able to get 60hz as well. Note that I tested out the DisplayPort 1.2 to HDMI 2.0 adapter with a newer card, my GTX 970 and I was able to get 3840x2160 60hz on OS X and Windows. I'd also like to mention that I already update the adapter to the latest firmware from Club3D. I also created a custom resolution on SwitchResX to match exactly the EDID description provided by my LG 49UB8500 TV.

According to Nvidia's specifications, the GTX 670 should be able to support up to 4096x2160 60hz over its DisplayPort 1.2 port. I know based on what Floris497 said that you can get 3840x2160 60hz on the GTX 670 when it's DisplayPort to DisplayPort but for some reason, when an adapter to HDMI 2.0 is added, it doesn't work up to 60hz even though the very same adapter works up to 60hz when used with a GTX 970. Initially, I thought it was just on OS X that it didn't work but it also didn't work on Windows either.

Any thoughts regarding this? Thanks!

@Floris497
Copy link
Owner

Try patching IOKit aswel, my 670 works great at 4k60Hz on DP.. @androcci was able to get 4k60Hz from HDMI on his 670 in windows.. Interestingly enough.. I will try that next time I have windows working

@Xenobreaker
Copy link

I patched IOKit first and that was what made the 60hz option appear when I used the adapter with the GTX 970 but when I swapped it out for the GTX 670, there was no option for 60hz. That was when I tried applying the patch you posted for the latest Nvidia web drivers but that didn't work either.

In @androcci 's case, 4k 60hz through HDMI on Windows works because it's only doing 4:2:0 chroma sub sampling and not at the full 4:4:4. 4k 60hz at 4:2:0 (or 4:2:2 can't remember) will work just fine with HDMI 1.4 and only needs below 300mhz. @androcci can test this by viewing some chroma subsampling test images. When playing full screen 3D games, I doubt you'll notice the difference between 4:4:4 and 4:2:0 but when reading text on a browser, the difference is huge.

Both the GTX 670 and the GTX 970 use DisplayPort 1.2 so I'm not sure what's causing the discrepancy with the GTX 670 not showing a 3840x2160 60hz option with everything else in the setup being the same.

@Floris497
Copy link
Owner

Oh yeah.. That 4:4:4 4:2:2 forgot about that.. You probably checked it, but are the same drivers loaded with both cards? I'll see if I can find anything else, but I doubt it :/

@androcci
Copy link

hey guys!!! :). probably you are right i don't know what chroma sub sampling is but i will learn as soon as i get home. i cant just get 4k @60Hz right of the bat with the gtx 670, i need to download the nvidia panel and then download the driver from the panel and then after restarting the machine i get 4k @60Hz. i also get it with the HDMI. anyways I'm so over the gtx 670. i ordered the gtx 970 SSC, so its HDMI port works with OS X 4k @60Hz?OOB? i have a Hackintosh tho.

@androcci
Copy link

doing it at 4:2:2 not bad not bad. I just bought the gtx 970 for $270 such a great deal i couldn't resist. the card is coming january the 25th. i will let you know if that works with my hackintosh!!

@skubic
Copy link

skubic commented Jan 18, 2016

Just want to give a short Feedback. By doing it as written in my last Post from Dec. 17th it is finaly working. The active Club 3D DP to HDMI2 60Hz. Adapter was the Solution. Without that it wont work for me. Still if I use it, i need to Patch the Nvidia Web File and I need to use SwitchResX, what was clear from the beginning.

Im very happy to get 3840x2160@60hz. Thank you so much!

Maybe it's a bit off topic, but I have one last thing. I can boot with nearly any SMBIOS. But MacPro6,2 wont work. Black Screen and Reboot at the Point the LogIn Screen should be shown. If you have a hint what the problem might is, it would be great.

On 10.11.3 with NVIDIA Web Driver 346.03.05b02 I do no longer need the Mac Pixel Clock Patch but SwitchResX.

@Xenobreaker
Copy link

Yeah, the drivers were loaded, I'm not sure though if it might be a hardware or driver issue cause I can't get my GTX 670 to work at 4k 60hz in Windows either using the Club 3D DisplayPort to HDMI 2.0 adapter. No problems with the GTX 970 though.

@androcci
Copy link

@Xenobreaker it works for me as simple as downloading windows driver for windows. and then get driver from the nvidia panel. and @Floris497 did you updated the patch?? my gtx 970 is coming in 3 days!!:D

@Floris497
Copy link
Owner

I'll update it later, I currently have no computer near me..it will be done within those 3 days :)

@androcci
Copy link

@Floris497 floris help! i installed my gtx 970 and i got the option to turn 4k into 60Hz NTSC right out of the box. but when i do the screen went black!! so i switched to my 1080p tv so it can work again. what do you think is the problem here? do you think it was the patch we did before?? thanks!!

@Floris497
Copy link
Owner

Yep.. I think that it works because of the patch on IOKit that is already done, how did those 3 days pass so quickly? What was the exact model of the display?

@androcci
Copy link

lg smart tv. actually I'm selling it on eBay because I'm the screen is too big for my dorm. here is the link. http://www.ebay.com/itm/LG-40-LED-TV-Ultra-HD-Smart-TV-4K-Wi-Fi-Built-In-40UB8200-LOCAL-PICK-UP-/121872875252?
im so close to get decent frame rates. the 4k @60Hz option was present from the resolution display panel. do you think maybe i should use switchresX?? and are you free today?

@Floris497
Copy link
Owner

Looks like the model should support that resolution and framerate just fine.. :/ try using that software see if some framerates around 60Hz work

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