Contribute
Register

GA-Z170X-UD5 TH USB header and port mapping

Status
Not open for further replies.
Joined
May 30, 2016
Messages
987
Motherboard
Gigabyte Z490 Vision G
CPU
i9-10900K
Graphics
RX 5700 XT
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Classic Mac
  1. PowerBook
  2. Quadra
Mobile Phone
  1. iOS
well...it's done! ... i've trimmed them to 15ports, confirmed by IORegistryExplorer...
but don't congratulate me, 'cause i'm exactly as before ... shutdown>restarts [even tho i've checked 'fix shutdown'>ACPI]...sleeps for 2sec [after wake, no sound] ...
the only plus is that after wake the display doesn't show large square puzzle anymore...but that could be because of SMBIOS>14,2 [i'll try 17,1...but that implies lilu.kext afaik]

if you have any more ideas ...please let me know

Sleep, or actual shutdown? Sleep is not working on my system and I gave up on trying to get it working :)
 
Joined
Jul 3, 2010
Messages
22
Motherboard
X299-UD4-Pro
CPU
i9-7920X
Graphics
RX 580
Mac
  1. Mac Pro
Mobile Phone
  1. iOS
no sleep...not the machine...neither the user ...
the real good news is that i've managed to repair my main setup... i'm on it right now [10.12.6] and i will stay right there !
i've erased HS... i will go to sleep now...sleep and forget ...no more apfs
it was a nightmare
but, thanks to you and Rehabman
i've learned how to setup my usb mess ...the right way
thanks again
good night
 
Joined
May 30, 2016
Messages
987
Motherboard
Gigabyte Z490 Vision G
CPU
i9-10900K
Graphics
RX 5700 XT
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Classic Mac
  1. PowerBook
  2. Quadra
Mobile Phone
  1. iOS
no sleep...not the machine...neither the user ...
the real good news is that i've managed to repair my main setup... i'm on it right now [10.12.6] and i will stay right there !
i've erased HS... i will go to sleep now...sleep and forget ...no more apfs
it was a nightmare
but, thanks to you and Rehabman
i've learned how to setup my usb mess ...the right way
thanks again
good night

If successful sleep is what you're after, I believe I found the answer.

Remove
EFI/Clover/Drivers64UEFI/EmuVariableUEFI-64.efi (if you have it installed)

Replace
EFI/Clover/drivers64UEFI/OsxAptioFixDrv-64.efi
or
EFI/Clover/drivers64UEFI/OsxAptioFixDrv2-64.efi
with
EFI/Clover/drivers64UEFI/AptioMemoryFix.efi

And change all the necessary bios settings described here:
https://github.com/vit9696/AptioFixPkg

and download and install this Lilu Plugin:
https://github.com/lvs1974/HibernationFixup
 
Last edited:
Joined
May 30, 2016
Messages
987
Motherboard
Gigabyte Z490 Vision G
CPU
i9-10900K
Graphics
RX 5700 XT
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Classic Mac
  1. PowerBook
  2. Quadra
Mobile Phone
  1. iOS
I'll beat a dead horse here and upload mine with all ports correctly assigned.

Code:
// SSDT-UIAC-ALL.dsl
//
// This SSDT can be used as a template to build your own
// customization for USBInjectAll.kext.
//
// This SSDT contains all ports, so using it is the same as without
// a custom SSDT.  Delete ports that are not connected or ports you
// do not need.
//
// Change the UsbConnector or portType as needed to match your
// actual USB configuration.
//


DefinitionBlock ("", "SSDT", 2, "hack", "UIAC-ALL", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")

        Name(RMCF, Package()
        {
            "8086_a12f", Package()
            {
                "port-count", Buffer() { 0x1a, 0, 0, 0 },
                "ports", Package()
                {
                    "HS01", Package() // USB2 on bottom right USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x01, 0, 0, 0 },
                    },
                    "HS02", Package() // USB2 on top right USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x02, 0, 0, 0 },
                    },
                    "HS03", Package() // USB2 on bottom left USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x03, 0, 0, 0 },
                    },
                    "HS04", Package() // USB2 on top left USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x04, 0, 0, 0 },
                    },
                    "HS05", Package() // USB2 #1 from USB3 MB Header F_USB30_1
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x05, 0, 0, 0 },
                    },
                    "HS06", Package() // USB2 #2 from USB3 MB Header F_USB30_1
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x06, 0, 0, 0 },
                    },
                    "HS07", Package() // USB2 #1 from USB3 MB Header F_USB30_2
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x07, 0, 0, 0 },
                    },
                    "HS08", Package() // USB2 #2 from USB3 MB Header F_USB30_2
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x08, 0, 0, 0 },
                    },
                    "HS09", Package() // USB2 from USB2 MB Header F_USB1
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x09, 0, 0, 0 },
                    },
                    "HS10", Package() // USB2 from USB2 MB Header F_USB2
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x0a, 0, 0, 0 },
                    },
                    "HS11", Package() // USB2 on bottom port below Ethernet Port
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x0b, 0, 0, 0 },
                    },
                    "HS12", Package() // USB2 on top port below Ethernet Port
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x0c, 0, 0, 0 },
                    },
                    "HS13", Package() // USB2 on bottom port above PS/2
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x0d, 0, 0, 0 },
                    },
                    "HS14", Package() // USB2 on top port above PS/2
                    {
                        "UsbConnector", 0,
                        "port", Buffer() { 0x0e, 0, 0, 0 },
                    },
                    "SS01", Package() // USB3 on bottom right USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x11, 0, 0, 0 },
                    },
                    "SS02", Package() // USB3 on top right USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x12, 0, 0, 0 },
                    },
                    "SS03", Package() // USB3 on bottom left USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x13, 0, 0, 0 },
                    },
                    "SS04", Package() // USB3 on top left USB3 on back
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x14, 0, 0, 0 },
                    },
                    "SS05", Package() // USB3 #1 from USB3 MB Header F_USB30_1
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x15, 0, 0, 0 },
                    },
                    "SS06", Package() // USB3 #2 from USB3 MB Header F_USB30_1
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x16, 0, 0, 0 },
                    },
                    "SS07", Package() // USB3 #1 from USB3 MB Header F_USB30_2
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x17, 0, 0, 0 },
                    },
                    "SS08", Package() // USB3 #2 from USB3 MB Header F_USB30_2
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x18, 0, 0, 0 },
                    },
                    "SS09", Package() // Unsure where this is on MB
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x19, 0, 0, 0 },
                    },
                    "SS10", Package() // Unsure where this is on MB
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x1a, 0, 0, 0 },
                    },
                    "USR1", Package() // Unsure where this is on MB
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x0f, 0, 0, 0 },
                    },
                    "USR2", Package() // Unsure where this is on MB
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 0x10, 0, 0, 0 },
                    },
                },
            },
        })
    }
}
//EOF
Z170_MB_ports.jpgZ170_BackPorts.jpg
 

Attachments

  • GA-Z170X-UD5-TH-UIAC.dsl
    6.4 KB · Views: 151
Last edited:
Joined
Jul 19, 2015
Messages
49
Motherboard
Dell XPS 15 9570 (Clover UEFI)
CPU
i7-8750H/CM246
Graphics
UHD 630/1050Ti Max-Q, 3840x2160
Mobile Phone
  1. iOS
Hi,

Regarding those that are after successfull sleep... Downgrade the BIOS to version F5. I was attempting to achieve sleep for many days after my elimination of causes approach arrived at ‘try other BIOS versions’. As soon as I tried F5, all worked as it should. I’m talking about ‘sleep’ mode, not standby/hibernation, since I don’t care about that on a desktop and thus I’ve disabled that.
 
Joined
May 30, 2016
Messages
987
Motherboard
Gigabyte Z490 Vision G
CPU
i9-10900K
Graphics
RX 5700 XT
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Classic Mac
  1. PowerBook
  2. Quadra
Mobile Phone
  1. iOS
Hi,

Regarding those that are after successfull sleep... Downgrade the BIOS to version F5. I was attempting to achieve sleep for many days after my elimination of causes approach arrived at ‘try other BIOS versions’. As soon as I tried F5, all worked as it should. I’m talking about ‘sleep’ mode, not standby/hibernation, since I don’t care about that on a desktop and thus I’ve disabled that.

Interesting... what sort of sleep behaviour did you have with other BIOS versions?
 
Joined
Jul 19, 2015
Messages
49
Motherboard
Dell XPS 15 9570 (Clover UEFI)
CPU
i7-8750H/CM246
Graphics
UHD 630/1050Ti Max-Q, 3840x2160
Mobile Phone
  1. iOS
The machine went to 'sleep' and woke up 40 seconds after the GFX card finally powered down. As soon as the BIOS was downgraded to F5 it worked, without requiring additional changes with MacOS 10.13.6.
 
Status
Not open for further replies.
Top