Contribute
Register

[SUCCESS] Gigabyte Z370 Gaming 5 - 4k RX 580 - 10.13.4 & 10.14.4 & 10.15.0 - SSDT

Status
Not open for further replies.
Joined
May 21, 2011
Messages
405
Motherboard
Lenovo m90q Tiny
CPU
i7-10700
Graphics
UHD 630
Mac
  1. MacBook Pro
October 10, 2018 : Clean installed Mojave 10.14 and everything is flawless if not better.
Misc : Clover Configurator->System Parameters->InjectKexts->Yes. For some reason it doesn't work on detect. Kexts in Other are being ignored.

September 14 2019 : Mojave 10.14.6 works flawlessly. Added instruction for F12+ BIOS below.

October 22, 2019 : Catalina 10.15.0 Upgrade was flawless. At some point during the install, there was a pink glitch in verbose mode, HDD activity was gone, I have waited 10 minutes and it went good. Just be patient


Hi,

I just wanted to post my successful installations, and also the step I had to go through.

Full specs list
1x Intel - Core i7-8700 3.2GHz 6-Core Processor
1x Gigabyte - Z370 AORUS Gaming 5 (rev. 1.0) ATX LGA1151 Motherboard
1x Kingston - FURY 8GB (1 x 8GB) DDR4-2400 Memory
2x Samsung - 960 EVO 500GB M.2-2280 Solid State Drive
1x Gigabyte - Radeon RX 580 8GB Gaming 8G Video Card
1x Gigabyte - AC300W ATX Mid Tower Case
1x Corsair - TXM Gold 650W 80+ Gold Certified Semi-Modular ATX Power Supply
1x TP-Link - Archer T9E PCI-Express x1 802.11a/b/g/n/ac Wi-Fi Adapter


What works
iMessage/Facetime (Needs proper SMBIOS)
Audio (Needs kexts)
Display Port & HDMI Audio (Needs a small patch, see below)
Graphics RX 580 (Out of the box)
Sleep & Deep Sleep (Out of the box, including FANs turned off)
Shutdown (motherboard leds turn off as well)
Wifi Adapter (out of the box)
Ethernet (Needs kext)
Bluetooth
USB 2.0 & 3.0 & 3.1 & Type-C


What does not work
Wifi from the Motherboard

Steps :

Installation

BIOS SETTINGS

  1. Save & ExitLoad Optimized Defaults
  2. BIOS → Fast Boot : Disabled
  3. BIOS → CSM Support : Disabled (You might get a blackscreen otherwise with RX 580)
  4. Peripherals → Trusted Computing → Security Device Support : Disable
  5. Peripherals → Network Stack Configuration → Network Stack : Disabled
  6. Peripherals → USB Configuration → Legacy USB Support : Auto
  7. Peripherals → USB Configuration → XHCI Hand-off : Enabled (Extremely important)
  8. Chipset → Vt-d : Disabled
  9. Chipset → Internal Graphics : Enabled. (Reboot BIOS then next options will appear)
  10. Chipset → DMVT Pre-Allocated : 128M
  11. Chipset → DMVT Total Gfx Mem : 256M
  12. Chipset → Wake on LAN Enable : Disabled
  13. Chipset → IOAPIC 24-119 Entries : Enabled
  14. Power → Erp : Enabled (Fix shutdown & motherboard leds not powering off)
BIOS VERSION F12+ READ THIS https://www.tonymacx86.com/threads/...byte-z370n-rx560-16gb-ram.260337/post-1934546

Installation

Prepare USB key with UniBeast. Nothing much here. Boot & install.
Installation went flawless with APFS.

POST Installation

Ethernet :
IntelMausiEthernet in MultiBeast

iMessage/Facetime: All I had to do, was edit Clover config using Clover Configurator :
SMBIOS : iMac 18.3, Generate new serial number and make sure it doesn't exists.
System Parameters : Generate new Custom UUID
Rt Variables : From SMBIOS, Generate. My MLB is blank. CsrActive = 0x67 to fully disable SIP.


Shutdown: Enable ACPI-->Fix Shutdown in Clover Configurator. Bug: Motherboard leds stay powered on after shutdown. Leave Fix Shutdown disabled in Clover Configurator and enable ErP in Bios. Shutdown will work fine and motherboard leds will turn off as well.

Wifi Fix After Sleep: Wifi becomes extremely slow after sleep. Fix: Preference System -> Power Saver -> Disable wake for network access.

Audio:
The only way I got it to work was by doing the following:


  1. Install kexts : https://github.com/vit9696/AppleALC and https://github.com/vit9696/Lilu in /EFI/Clover/Kexts/Other
  2. Open Clover Configurator --> Device --> Inject 11. (Better sound quality for me than 1). Reset HDA is not selected, I don't know what it does.
  3. Reboot
--> Audio should be working. If it is still not working: Clover Configurator --> ACPI --> DSDT Patches click List of patches --> HDAS to HDEF and reboot.
3. Run MultiBeast : Install ALC1220 & 100 / 200 / 300 Series Audio Support. After installation, reopened it and installed "200 / 300 Series / X299 Audio Device ID Patch.
4. Reboot

I don't know why, MultiBeast patches without AppleALC & Lilu didn't work, and AppleALC & Lilu without MultiBeast patches didn't work neither. Needed both.


DisplayPort & HDMI Audio : Run the script here and reboot. My 4K monitor is recognized now in Sound Output. https://github.com/toleda/audio_CloverHDMI

USB 3.0

I built a SSDT to get all the USB ports working. The current SSDT I made currently enables all 15 USB ports (15 is the limit anyway) but does not include the left USB 2.0 header on motherboard & USB Type-C Header (for front case). So basically, it currently enables all the USB ports on the back of the motherboard + 2xUSB 3.0 for front PC case ports + the Bluetooth.

I have identified everything I could test, you can always adjust the SSDT for your needs.

1606607250535.png


1606607287114.png


  • Fixing USB using my SSDT
    1. Download USBInjectAll.kext & XHCI-300-series-injector.kext (see attachment)
    2. Copy my SSDT-UIAC.aml (see attachment) to /EFI/Clover/ACPI/patched
    3. Reboot
  • Generating your own SSDT to enable different ports
    • If you install the USB patch limit using MultiBeast, you must know that as of MultiBeast 10.2.0, it installs the 15 ports limit patch that works for 10.13.0 to 10.13.3. However, it doesn't work anymore in 10.13.4. (Update: MultiBeast 10.4.0 has the following USB port limit patch 10.13.4-6.) Follow the steps to apply the patch for 10.13.4 before following the tutorial.
      1. Open Clover Configurator --> Kernel and Kext Patches.
      2. Edit the disable port limit patch to :
      3. Name (IMPORTANT it changed ! Notice, there is no PCI at the end) : com.apple.driver.usb.AppleUSBXHCI
      4. FIND (Hex) : 837D940F 0F839704 0000
      5. Replace (HEX) : 837D940F 90909090 9090
      6. 4. Reboot
      7. PS: Kext patches are all listed here. It is where I found the one for 10.13.4 https://github.com/RehabMan/OS-X-USB-Inject-All/blob/master/config_patches.plist
    • The tutorial is right here https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/ You will not need the patches for EHC1->EH01 or EHC2->EH02 or XHCI->XHC for this board. Once the USBInjectAll & 15 ports patch are installed you can skip to Port discovery step.
    • Currently attached compiled SSDT code:
    • Code:
      DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0)
      {
      Device(UIAC)
      {
      Name(_HID, "UIA00000")
      
      Name(RMCF, Package()
      {
      "8086_a2af", Package()
      {
      "port-count", Buffer() { 26, 0, 0, 0 },
      "ports", Package()
      {
      "HS02", Package() // Bluetooth
      {
      "UsbConnector", 255,
      "port", Buffer() { 2, 0, 0, 0 },
      },
      "HS03", Package() // Yellow USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 3, 0, 0, 0 },
      },
      "HS04", Package() // Yellow USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 4, 0, 0, 0 },
      },
      "HS05", Package() // Blue USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 5, 0, 0, 0 },
      },
      "HS06", Package() // Blue USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 6, 0, 0, 0 },
      },
      "HS07", Package() // Case USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 7, 0, 0, 0 },
      },
      "HS08", Package() // Case USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 8, 0, 0, 0 },
      },
      "HS13", Package() // Black USB 2.0 Left
      {
      "UsbConnector", 0,
      "port", Buffer() { 13, 0, 0, 0 },
      },
      "HS14", Package() // Black USB 2.0 Right
      {
      "UsbConnector", 0,
      "port", Buffer() { 14, 0, 0, 0 },
      },
      "SS03", Package() // Yellow USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 19, 0, 0, 0 },
      },
      "SS04", Package() // Yellow USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 20, 0, 0, 0 },
      },
      "SS05", Package() // Blue USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 21, 0, 0, 0 },
      },
      "SS06", Package() // Blue USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 22, 0, 0, 0 },
      },
      "SS07", Package() // Case USB 3.0 Right
      {
      "UsbConnector", 3,
      "port", Buffer() { 23, 0, 0, 0 },
      },
      "SS08", Package() // Case USB 3.0 Left
      {
      "UsbConnector", 3,
      "port", Buffer() { 24, 0, 0, 0 },
      },
      },
      },
      })
      }
      }
       //EOF
(Optional) Enabling IGPU for Quick Sync / Acceleration:

As of 10.14.4, previous method results in a Kernel Panic / Blackscreen and reboots.

10.14.4+ :​

  1. Make sure WhateverGreen & Lilu is installed.
  2. In Clover Configurator, make sure Graphics->InjectIntel is enabled, Graphics->ig-platform-id and Devices->IntelGFX is empty.
  3. Reboot.
  4. If a 4k sample video such as this one plays smoothly and CPU usage stays low, it is working. https://4kmedia.org/sony-bravia-uhd-hdr-4k-demo/
  1. BIOS: Chipset : Internal Graphics: Enabled. DVMT Pre-Allocated : 128M
  2. Clover Configurator: Graphics -> Enable Inject Intel and set ig-platform-id: 0x59120003 (use 0x59120000 if you don't have NVidia/AMD GPU)
  3. Clover Configurator: Devices -> IntelGFX: 0x59128086
  4. Clover Configurator: Enable Boot -> -disablegfxfirmare

Miscs :
  • I hid the volumes "Preboot" and "Recovery" in Clover, because I find it annoying to have these volumes showing.
  • I used the standalone Clover UEFI with NVRAM installer and I had to add apfs.efi in drivers64UEFI folder of EFI/Clover to get my drives recognized. Don't forget FakeSMC.kext !
Hopefully this will help people, and maybe in exchange I will receive advice from others :)
 

Attachments

  • SSDT-UIAC.aml
    697 bytes · Views: 1,361
  • Back_Motherboard_Ports.jpeg
    Back_Motherboard_Ports.jpeg
    105.5 KB · Views: 1,504
  • Motherboard_Identified_Headers.jpg
    Motherboard_Identified_Headers.jpg
    288.1 KB · Views: 823
  • USBInjectAll + XHCI-300-series-injector.zip
    19.9 KB · Views: 1,178
Last edited by a moderator:
Great instruction!! Finally, I have my audio worked!
 
Do you have any Hard Freeze issues? Guess in 5/hrs maybe your not trying to kill the system yet!

I havn't experienced any freeze yet. But I didn't use it much, doing it in my free time, and it is mostly dedicated to fixing USB and everything right now

Great instruction!! Finally, I have my audio worked!

Thanks for the reply ! Being curious, what motherboard do you have?
 
Updated USB Fix :) A proper DSDT will follow later once I build one
 
I havn't experienced any freeze yet. But I didn't use it much, doing it in my free time, and it is mostly dedicated to fixing USB and everything right now



Thanks for the reply ! Being curious, what motherboard do you have?
I've updated my profile. My mo of current build is GA-Z370N Wifi.
which not work now:
My bluetooth seems unable to find any devices which can find via my mobile phone.
The HDMI audio still not in the output list.

the output of the script is:
Code:
Joeys-iMac:audio_CloverHDMI-master Joey$ ./audio_cloverHDMI-130_v0.8.command
Agreement
The audio_cloverHDMI script is for personal use only. Do not distribute
the patch, any or all of the files for any reason without permission.
The audio_cloverHDMI script is provided as is and without any warranty.
File: audio_cloverHDMI-130_v0.8.command
Release Mode
EFI partition is mounted
HDMI audio codec(s)
Intel:    0x8086280b
Audio ID: 11 is not valid
Audio ID set to Audio ID: 1
Edit EFI/CLOVER/ACPI/patched/SSDT-HDEF... to preferred Audio ID
Audio ID: 1, continue (y/n): y
HD630 HDMI audio is not enabled
Install SSDT-HDMI-HD630 HDMI audio ssdt (y/n): y
Download SSDT-HDMI-HD630 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45242  100 45242    0     0  16631      0  0:00:02  0:00:02 --:--:-- 16626
Download SSDT-HDEF-HDAS-1.aml ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 44816  100 44816    0     0  38420      0  0:00:01  0:00:01 --:--:-- 38435
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-HDMI-HD630 installed
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-HDEF-HDAS-1 installed
One display connected, proceeding
Confirm DP to HDMI connector edit on port 0x6 (y/n): y
Patch port 0x6
Download HD630 HDMI audio connector edits ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2122  100  2122    0     0   2435      0 --:--:-- --:--:-- --:--:--  2436
HDMI audio edited /Volumes/EFI/EFI/CLOVER/config.plist installed
Install AMD/Nvidia HDMI audio (y/n): y
Error: discrete graphics card not found, unknown acpi PCI0 name
Names checked: 0 PEG0@1 PEG1@1 PEGP@1 P0P1@1 P0P2@1 P0P2@3 NPE3@2 NPE3@3 NPE7@3 pci-bridge@1 pci-bridge@3 BR3A@3 PC02@3 PC12@3
No system files were changed
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...
 

Attachments

  • audio.jpg
    audio.jpg
    263.3 KB · Views: 746
Last edited:
Hello zoujyjs,

I have the same MoBo and see the exact same thing with the Bluetooth. I ordered a DW1830 (with BCM943602BAED) M.2 NGFF card on eBay. It should not be too difficult to swap the stock M.2 board with this one. Links to antennas might still be tricky. I see 3 RF connectors on the new board while there are only 2 SMA connectors coming out of the shield. I will have to completely dismantle my machine to access the M.2 WiFi+BT board.

To get your audio, did you strictly follow the listed steps? This is still the annoying part of the build. If I can get it to work on DisplayPort too, that would be the cherry on the cake.

When the machine goes to sleep, I also lose the network links (my 2 ethernet ports). Not a big deal if I prevent the machine to go to deep sleep.

Besides that, everything else seems to works.

Today, I was trying to see if a BootCamp install on my machine would work but it deleted clover and the Apple bootcamp software does not support this new configuration, unfortunately. If I want Windows on the Hackintosh, I'll probably have to stick to the big VM files.
By the way, while I was trying to reinstall masOS this morning, I got a message that the important files could not be downloaded and that I should try later. I verified that I have operational network connection. Some servers are down at apple side. It's a pity that we can't install anymore without having to connect to Apple.
 
Hi XavLNK,
To get your audio, did you strictly follow the listed steps? This is still the annoying part of the build. If I can get it to work on DisplayPort too, that would be the cherry on the cake.

I've run MultiBeast before I see this note (exactly as Audio 3. says), So I just put the two drivers AppleALC & Lilu into CLOVER/kext/Other, reboot (no success), repeat the Multibeast installation again, reboot (working now with my headphone). HDMI audio still missing even I've run the script and reboot many times.

When the machine goes to sleep, I also lose the network links (my 2 ethernet ports). Not a big deal if I prevent the machine to go to deep sleep.

Try not to use the AppleIntelE1000 driver, use IntelMausiEthernet instead, I've run into the same situation before.

I have the same MoBo and see the exact same thing with the Bluetooth. I ordered a DW1830 (with BCM943602BAED) M.2 NGFF card on eBay. It should not be too difficult to swap the stock M.2 board with this one. Links to antennas might still be tricky. I see 3 RF connectors on the new board while there are only 2 SMA connectors coming out of the shield. I will have to completely dismantle my machine to access the M.2 WiFi+BT board.

As for the Bluetooth, the buyers guide mentioned that wifi would not work, but the Bluetooth will. So I think maybe there is a solution, but I'm still researching. I've installed Sierra on my old notebook, I replaced the wifi module of the machine with a bcm card at then, maybe later I should move it to my new desktop machine :)
 
Last edited:
I've updated my profile. My mo of current build is GA-Z370N Wifi.
which not work now:
My bluetooth seems unable to find any devices which can find via my mobile phone.
The HDMI audio still not in the output list.

the output of the script is:
Code:
Joeys-iMac:audio_CloverHDMI-master Joey$ ./audio_cloverHDMI-130_v0.8.command
Agreement
The audio_cloverHDMI script is for personal use only. Do not distribute
the patch, any or all of the files for any reason without permission.
The audio_cloverHDMI script is provided as is and without any warranty.
File: audio_cloverHDMI-130_v0.8.command
Release Mode
EFI partition is mounted
HDMI audio codec(s)
Intel:    0x8086280b
Audio ID: 11 is not valid
Audio ID set to Audio ID: 1
Edit EFI/CLOVER/ACPI/patched/SSDT-HDEF... to preferred Audio ID
Audio ID: 1, continue (y/n): y
HD630 HDMI audio is not enabled
Install SSDT-HDMI-HD630 HDMI audio ssdt (y/n): y
Download SSDT-HDMI-HD630 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45242  100 45242    0     0  16631      0  0:00:02  0:00:02 --:--:-- 16626
Download SSDT-HDEF-HDAS-1.aml ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 44816  100 44816    0     0  38420      0  0:00:01  0:00:01 --:--:-- 38435
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-HDMI-HD630 installed
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-HDEF-HDAS-1 installed
One display connected, proceeding
Confirm DP to HDMI connector edit on port 0x6 (y/n): y
Patch port 0x6
Download HD630 HDMI audio connector edits ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2122  100  2122    0     0   2435      0 --:--:-- --:--:-- --:--:--  2436
HDMI audio edited /Volumes/EFI/EFI/CLOVER/config.plist installed
Install AMD/Nvidia HDMI audio (y/n): y
Error: discrete graphics card not found, unknown acpi PCI0 name
Names checked: 0 PEG0@1 PEG1@1 PEGP@1 P0P1@1 P0P2@1 P0P2@3 NPE3@2 NPE3@3 NPE7@3 pci-bridge@1 pci-bridge@3 BR3A@3 PC02@3 PC12@3
No system files were changed
To save a Copy of this Terminal session: Terminal/Shell/Export Text As ...

It is sad that the script did not workout for you with HDMI/DisplayPort. If I were you, I would make your own thread and ask toleda, the author of the script on this forum.

For the bluetooth part, I did run in the same issue as you : Bluetooth detected, it looked in System Preference like it was searching for devices, however no devices were ever discovered. It took me a while to fix that.

1. The antenna MUST be connect. It really MUST no matter how close you are.
--> It worked for a day than it stopped. No bluetooth device were discovered once again.
2. I installed Windows 10, and noticed the same issue. It was detecting I have bluetooth, but no way to discover any device. Also, it showed in the tray (bottom right) like I had a USB Device connected and it was the Bluetooth from the motherboard. For some reason, it kept connecting/disconnecting repeatedly. I though my motherboard was broken. I turned off the computer, turned off the power switch from the Power Supply (or just unplug electricity cable) for about 30 seconds, booted back to Windows and bam, Bluetooth was working once again. Rebooted to Mac OS and bam, Bluetooth was also working.

So it might sounds weird, but just disconnect your PC power cord for 30 seconds, boot back to Mac OS and see
 
Edited post
1. Add SSDT Instructions for USB.
2. Add new known issue : Shutdown keeps the led on the motherboard turned on.

@RehabMan Thank you very much for your help. Could you please change the title to
[SUCCESS] Gigabyte Z370 Gaming 5 - 4k RX 580 - 10.13.4 - SSDT
and also move my thread in "High Sierra Desktop Guides"

Thanks :)
 
Status
Not open for further replies.
Back
Top