Contribute
Register

Z170X-UD5 TH High Sierra tips and tricks

Status
Not open for further replies.
I used it to map my ports to find out which ones were active.
the new guide doesn't need/use the port limit patch
 
the one i linked to on post 6

Thank you for reply but you are still not referring to the exact guide, where are stated that you don't need patch at all! You don't need it when you already have proper custom SSDT file. But I still need port limit patch with my custom SSDT, otherwise I have only 15 first ports and all the rest are excluded.
Code:
            <dict>
                <key>Comment</key>
                <string>USB 10.13.6+ by PMHeart</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                g32IDw+DpwQAAA==
                </data>
                <key>InfoPlistPatch</key>
                <false/>
                <key>MatchOS</key>
                <string>10.13.x</string>
                <key>Name</key>
                <string>com.apple.driver.usb.AppleUSBXHCI</string>
                <key>Replace</key>
                <data>
                g32ID5CQkJCQkA==
                </data>
            </dict>

On section "Preparation for port discovery" is even a link to the patches, which to use for port discovery!

The whole idea of making custom SSDT is to decrease amount of port, so we have max 15 ports. There are often plenty of ports which are not used and can be excluded easily. Once it's done, we don't need patch anymore anyway. It's recommended to decrease amount of ports bu using custom SSDT to avoid patch.

The EHCx renames and port limit patches are available in config_patches.plist (https://github.com/RehabMan/OS-X-USB-Inject-All/raw/master/config_patches.plist) in the USBInjectAll.kext repository. Use copy/paste from a plist editor to get them into your own config.plist.
 
Last edited:
Thank you for reply but you are still not referring to the exact guide, where are stated that you don't need patch at all! You don't need it when you already have proper custom SSDT file!!

On section "Preparation for port discovery" is even a link to the patches, which to use for port discovery!
it got updated a few days ago, to which the patch wasn't required, didn't know of the change until now. sorry!
 

No problem. We don't see into other's minds and other's into our's, so we need to be more specific and detailed when expressing ourselves, especially when we are talking about comps science.
 
I have followed your instruction for creating my own USB-SSDT. On mixed USB2/3 ports I disabled the USB 2 port. Now USB 3 seems to work fine if the usb device is plugged in while booting, but I observed that hot plug does not work. Does hot plug work on your machine?
 
After High Sierra 2018-003 update Nvidia drivers didn't load anymore.

As I'm using web driver.sh for NVIDIA drivers installation, I updated drivers, but still no luck. Then I used command to patch NVDAStartupWeb.kext and voila, drivers are loaded properly.

Code:
webdriver -m 17G4015
 
Gigabyte Z170X-UD5 TH motherboard

I decided to create a thread for Gigabyte Z170X-UD5 TH motherboard users. This motherboard comes with Thunderbolt support, which is great for building custom macOS computer. Gigabyte claims that Z170X-UD5 TH is World's First Intel® Thunderbolt™ 3 Certified Motherboard. Board supports Supports 7th / 6th Generation Intel® Core™ Processors and up to 64 GB of system memory. It's great board for video and photo production. There is no many thunderbolt built in alternatives available.

There are multiple threads how to install hackintosh on Z170X-UD5 TH. I'm not going to repeat any of these. The most complicated part is to build a comp that runs smoothly without issues.

My hack is based on Z170X-UD5 TH (Intel® Z170 Chipset) motherboard, i7-6700K (4,01 GHz) Intel Core i7 processor and NVIDIA GeForce GTX 970 4GB graphics card.

I'm going to update this post to share my configuration, problems etc. You are welcome to post to share your thoughts and and success.

macOS Mojave 10.14.* and NVIDIA graphics
I'm unable to upgrade my hack from macOS High Sierra to Mojave because of NVIDIA graphics card. Maybe I'm going to replace my card with an AMD card, but not sure yet. If NVIDIA will not provide drivers within next 4 months, I'm probably switching to AMD card (AMD Radeon RX Vega 64). Apple states that only specific cards will work on Mojave:



As I'm stuck on High Sierra, this thread is mainly about High Sierra. Of course your post about success/failure with Mojave are welcome.

Firmware (BIOS)
I'm using the latest firmware of Z170X-UD5 TH, version F22g, released on 2018/03/09. Suggestions about the best BIOS settings are welcome!

CFG Lock setting
On Z170X-UD5 TH BIOS the CFG Lock setting is hidden and by default it's disabled, which causes kernel panic. To overcome this we use KernelPM patch in Clover settings. There a way how to patch BIOS so default value for CFG Lock setting will be enabled.

KernelPm patch on Glover is needed for any system that uses XCPM and has MSR_PKG_CST_CONFIG_CONTROL locked.

Starting with Haswell Macs, CPU power management functionality was moved into the kernel (known as XNU CPU Power Management). KernelPm patches the kernel to prevent writes to MSR_PKG_CST_CONFIG_CONTROL (MSR 0xE2), which is frequently locked on many systems (can usually be disabled by disabling the firmware option "CFG Lock"). Without this patch, you will encounter a kernel panic if MSR 0xE2 is locked (which appears to be the case for your system).

Using patched BIOS eliminates need for KernelPm patch. With this patch is possible to get fully native HWP (Intel SpeedShift Technology) CPU Power Management for all Skylake-X processors on all X299 mainboards with unlocked MSR 0xE2 BIOS Register, resulting in absolutely brilliant and top-end CPU performance.

Please read detailed instructions here:
On Z170X-UD5 TH BIOS version f22g the CFG Lock offset is 0x4EF and 0x1 is default setting.

Command to use with modified GRUB Shell for motherboard Z170X-UD5 TH BIOS version f22g:

Code:
setup_var 0x4EF 0x00

Screenshots of BIOS settings

View attachment 365649 View attachment 365650 View attachment 365651 View attachment 365652 View attachment 365653 View attachment 365654 View attachment 365655 View attachment 365656 View attachment 365657 View attachment 365658 View attachment 365659 View attachment 365660 View attachment 365661 View attachment 365662 View attachment 365663 View attachment 365664 View attachment 365665 View attachment 365666 View attachment 365667 View attachment 365668 View attachment 365669 View attachment 365670 View attachment 365671 View attachment 365672 View attachment 365674 View attachment 365675


Clover configuration
Crucial part of hackintosh are clover drivers, it's configuration and additional kexts. I'm sharing screenshots of my clover configuration with you, so you can make better suggestions or use these to try.

View attachment 363174 View attachment 363175 View attachment 363176 View attachment 363177 View attachment 363178 View attachment 363179 View attachment 363180 View attachment 363181 View attachment 363182 View attachment 363183 View attachment 363171 View attachment 363172 View attachment 363173

List of kexts on /EFI/EFI/CLover/kexts/Other
AML files on /Volumes/EFI/EFI/CLOVER/ACPI/patched
  • SSDT-HDMI-HD530.aml
  • SSDT-HDMI-NVIDIA-PEG0.aml
  • SSDT.aml
See attachments below to download these files. (aml-files.zip)

VirtualSMC
VirtualSMC supersedes FakeSMC.kext. It's quite new and there is no much information available yet. To use it, you shall remove FakeSMC.kext and all its plugins like FakeSMC_ACPISensors.kext etc. You can download it here VirtualSMC releases. Haven't tested it yet. FAQ of VirtualSMC states about benefits:



About requirements FAQ states:



If you keen to test new things, it's for you. If you aren't quite familiar building hack, FakeSMC.kext might be better option as there is lot of info world-wide available.

Audio
Use AppleALC.kext and CodecCommander.kext.
Modify CodecCommander.kext/Contents/Info.plist IOKitPersonalities/CodecCommander/Codec Profile/Realtek ALC1150
  • Send Delay = 300
  • Sleep Nodes = false
  • Update Nodes = true
USB Fix
Fix USB after 10.13.6 update:
  • Click Kernel and Kext Patches on Clover Configurator
  • remove/disable previous com.apple.driver.usb.AppleUSBXHCI patches.
  • Click the “+” button near the bottom to add this patch:
  • Name*: com.apple.driver.usb.AppleUSBXHCI
  • Find* [HEX]: 837D880F 0F83A704 0000
  • Replace* [HEX]: 837D880F 90909090 9090
  • Comment: USB 10.13.6+ by PMHeart
  • MatchOS: 10.13.x
  • Save config.plist
Native USB
Thanks to USBInjectAll.kext and OSX-USB-SSDT is possible to create "native" USB for Z170X-UD5 TH. No need after that to use USBInjectAll.kext. Also it helps easily to disable desired ports. I created separate extremely detailed post about that on this thread:
View attachment 365150

You have to map all ports with USBInjectAll.kext, figure out which to exclude and then to run OSX-USB-SSDT script, which helps to generate proper SSDT-USB.aml file. After coping SSDT-USB.aml into /Volumes/EFI/EFI/CLOVER/ACPI/patched
folder, USBInjectAll.kext can be removed. Additional setting is required too in clover configuration too.

It's reccomended to decrease amount of USB ports to 15 or less ports, so you don't need port limit patch anymore. For example you can disable USB2 ports, which are shared with USB3 ports and internal ports, which doesn't have front panel brackets connected.

Useful Instructions

[will update soon]

I have followed your instruction for creating my own USB-SSDT. On mixed USB2/3 ports I disabled the USB 2 port. Now USB 3 seems to work fine if the usb device is plugged in while booting, but I observed that hot plug does not work. Does hot plug a USB3 device work on your machine?
 
Status
Not open for further replies.
Back
Top