Contribute
Register

A Beginner's Guide to Creating a Custom USB SSDT

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,582
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
.. the problem is the hub ...

So the hub is the one thing which now prevents sleep?

When we started this process, it was the bluetooth causing the problem. And you seem to have sorted-out that one.

We don't know anything about the hub you are using so cannot offer help.

For sure though, a hub plugged into a motherboard header does not increase the total port count. It may have 4x or 6x or 8x ports on it, but the hub still only uses 1x motherboard port on the XHC controller.

:)
 
Joined
Dec 16, 2016
Messages
130
Motherboard
Msi z270 pro carbon
CPU
i7 7700k
Graphics
RX 580 + GTX 1080
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. Android
Do you suggest any hub , till now I used those two both gave me the same issue .
 

Attachments

  • 20190718_085324.jpg
    20190718_085324.jpg
    2.2 MB · Views: 25
  • 20190718_085320.jpg
    20190718_085320.jpg
    1.9 MB · Views: 39
Joined
Dec 16, 2016
Messages
130
Motherboard
Msi z270 pro carbon
CPU
i7 7700k
Graphics
RX 580 + GTX 1080
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. Android
So the hub is the one thing which now prevents sleep?

When we started this process, it was the bluetooth causing the problem. And you seem to have sorted-out that one.

We don't know anything about the hub you are using so cannot offer help.

For sure though, a hub plugged into a motherboard header does not increase the total port count. It may have 4x or 6x or 8x ports on it, but the hub still only uses 1x motherboard port on the XHC controller.

:)
Esactly how can I see why this hub weak me up the machine.
Those are the hub I use
 

Attachments

  • 20190718_085320.jpg
    20190718_085320.jpg
    1.9 MB · Views: 33
  • 20190718_085324.jpg
    20190718_085324.jpg
    2.2 MB · Views: 25

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,582
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
Esactly how can I see why this hub weak me up the machine.
Those are the hub I use

Hi there.

Yes, those look like standard internal hubs. No problem on that score.

This is well beyond the scope of a beginner's guide ...

Some ideas:

As I explained before a device plugged-in to a USB port can wake a machine by polling it. You could check System Report to see how they are recognised, and IORegistryExplorer for how they are managed.

You could check the system.log to see what exactly woke the machine. It will give you time and date and then "Wake reason:"

Clearly a hub needs power all the time to work.
 
Joined
Dec 16, 2016
Messages
130
Motherboard
Msi z270 pro carbon
CPU
i7 7700k
Graphics
RX 580 + GTX 1080
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
Mobile Phone
  1. Android
Hi there.

Yes, those look like standard internal hubs. No problem on that score.

This is well beyond the scope of a beginner's guide ...

Some ideas:

As I explained before a device plugged-in to a USB port can wake a machine by polling it. You could check System Report to see how they are recognised, and IORegistryExplorer for how they are managed.

You could check the system.log to see what exactly woke the machine. It will give you time and date and then "Wake reason:"

Clearly a hub needs power all the time to work.


I open another post i hope is the correct section with all information
I really hope to solve and finally close this case and enjoy my hackintosh
 
Joined
Aug 13, 2010
Messages
418
Motherboard
GA-X58A-UD3R
CPU
X5650
Graphics
7970HD
Mac
  1. Mac Pro
Mobile Phone
  1. iOS
Hi I need assistance creating an USB SSDT, not sure what I am doing wrong (have been trying for awhile). I have put the DSDT patches in, but my ports still are showing as PR, not HS as in every tutorial. Am I missing some patch or kext? Thank you very much for whatever assistance, tips, etc.
 

Attachments

  • Screen Shot 2019-08-06 at 9.09.49 PM.png
    Screen Shot 2019-08-06 at 9.09.49 PM.png
    175.3 KB · Views: 27
  • config.plist
    15.1 KB · Views: 33
Joined
Aug 6, 2017
Messages
11
Motherboard
Gigabyte Z370N WIFI
CPU
i5-8400
Graphics
Intel version # > See Rules!
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
Hi everyone, I followed the guide and managed to map my USB ports, the ports are working but now Bluetooth isn't working anymore. I noticed that my Broadcom card (internally plugged into the m.2 slot, replacing original gigabyte card, not actually plugged into a USB port) was seen by IORegistryExplorer in port HS10 so I kept it active setting it as "USBConnector", 255, but still it doesn't work (and now disappeared in IORegistryExplorer). WiFi is working properly (and it wasn't mentioned in IORegistryExplorer).
What should I do?
In attachment the SSDT_USB.aml file and a screenshot of IORegistryExplorer before rebooting with SSDT file in EFI folder.
Thanks a lot for helping, guys!
 

Attachments

  • SSDT_USB.aml
    691 bytes · Views: 28
  • IOservice screnshot.png
    IOservice screnshot.png
    124.1 KB · Views: 24

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,582
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
Hi I need assistance creating an USB SSDT, not sure what I am doing wrong (have been trying for awhile). I have put the DSDT patches in, but my ports still are showing as PR, not HS as in every tutorial. Am I missing some patch or kext? Thank you very much for whatever assistance, tips, etc.

Hi there.

This thread isn't concerning the Hackintool method for configuration. There are differences.

However, to try and help. let us see the SSDT you've created and an IORegistryExplorer output - either an *ioreg export or a screengrab covering the XHC controller.

:)
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,582
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT710 - 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. iOS
Hi everyone, I followed the guide and managed to map my USB ports, the ports are working but now Bluetooth isn't working anymore. I noticed that my Broadcom card (internally plugged into the m.2 slot, replacing original gigabyte card, not actually plugged into a USB port) was seen by IORegistryExplorer in port HS10 so I kept it active setting it as "USBConnector", 255, but still it doesn't work (and now disappeared in IORegistryExplorer). WiFi is working properly (and it wasn't mentioned in IORegistryExplorer).
What should I do?
In attachment the SSDT_USB.aml file and a screenshot of IORegistryExplorer before rebooting with SSDT file in EFI folder.
Thanks a lot for helping, guys!

Hi there.

1) Your SSDT looks okay :thumbup:.

2) The IOReg output shows that the Bluetooth adapter is connected as a hub. This is usually a problem. Because a hub can be more than one port you can't configure them, only single ports.

As the motherboard has clearly 'pinched' one of the USB ports for the m.2 slot, maybe the internal wiring for this turns it into a hub rather than a simple port. Or maybe the adapter/riser card, if you used one, is responsible. Disabling HS10 otherwise seems an odd choice. I checked the Gigabyte manual but I see no mention of this in the BIOS set-up.

When you did your port testing prior to building the SSDT template, did you, by any chance, do this without the wireless/BT card in place? If so did you notice if the HS10 port was present elsewhere, or not?

3) Check About this Mac / System Report / USB and the "USB Device Tree" to see what controllers and hubs are showing.

:)
 
Last edited:
Joined
Aug 13, 2010
Messages
418
Motherboard
GA-X58A-UD3R
CPU
X5650
Graphics
7970HD
Mac
  1. Mac Pro
Mobile Phone
  1. iOS
Thank you very much. Here are the files (I am sorry I cannot create problem reporting files, for some reason no F-key will work in the Clover boot). Used Hackintool to create the files. I still have to trim a few ports. I remove all the port limit patches and it seems to be stable, but waiting a while to see what happens.
 

Attachments

  • USBSSDT TRY.zip
    1.2 MB · Views: 36
Top