We want to patch this function so that it always returns a good response, This function is structured such thatĮrror cases and success share the same return block, with a success block Last jump instruction before it and this block. Go down to that instruction, and you’ll see that there’s a gap between the Now we look at the address it's jumping to. The instruction before isĪ comparison, and a literal translation to C would be expressed as: Labelled JNE, which means jump if not equal. Tell because the line begins with the function name and ends in a colon:įind the very first jump instruction in the function. Open up that file and look for the function _CheckTimingWithRange. Open Terminal and run:Ĭp /System/Library/Frameworks/amework/Versions/A/IOKit. the script takes care of the codesigning of the IOKit.ĭownload it into your Downloads folder. even with SIP disabled the IOKit will not run without this new codesignature. IOKit is not a kernel extension and therefore must be codesigned to run, this is done with the wildcard certificat, unique to everyone. Kernal extensions are not signable by anyone but apple and trusted parties. by patching the driver we obviously break the codesignature. this is because SIP will not allow you to run drivers which have a broken or no codesignature. SIP can safely be enabled after the patch of the IOKit, if you also want to use an Nvidia/AMD driver that has been patched you need to keep SIP disabled. The changes to SIP are only visible in the terminal after a reboot, so it will still notify you that SIP is on when you disable it and run csrutil status right after it. If you booted into the recovery partition and open the terminal you use csrutil disable to disable, csrutil enable to enable and csrutil status to check the status of SIP you can also check the status on your normal system. You can disable/enable this only when you boot into the recovery partition. #MAKE SURE TO DISABLE SIP on 10.11 and newer.įirst make sure SIP (System Integrity Protection) is turned off for this to work. This will remove the 165 pixel clock limiter on your display driver to support 4k 30Hz over HDMI.Īn Active DisplayPort to HDMI adapter is sometimes needed for this to work.īased on the original, and the mavericks update. for 10.11.4 support and up use Version 2 of this script. therefore this script is not being maintained anymore. There is a Version 2 of this patch availible that is made to replace this script in its intirety.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |