Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Joined
Jul 22, 2017
Messages
66
Motherboard
ASUS H170 Pro Gaming
CPU
i5-7600
Graphics
GTX 750 TI
Mac
iMac
Classic Mac
Classic, LC
Mobile Phone
Android, iOS
Hi Rehabman,

Thank you so much for helping us all the time, really appreciated that I learn with fun.
I can utilize all the USB ports on the H170 MB with either PMHeart's patch or SSDT.aml (finally figured out and use all Hex address to make it right!) injection.

But there is a infamous instant wake problem that annoys me a bit (no matter PMHeart/SSDT), the Razer mouse (which has LED light and check it use 500mA pwr)
before I use Razer it was an old Logitech G3 which use 98mA current. I used to attach mouse on HS11 (under a pwr switchable hub, each port!)

Have no instant wake issue on Logitech G3, but Razer, always wakes the computer up after I put OS to hibernation.
log show --style syslog | fgrep "Wake reason" tells me XHCI wakes
I pinned point that Razer mouse is responsible:banghead: for the wake (not other BT dongle, keyboard under the same HS11 hub).

I wonder if there is a fix for that without replacing the new mouse?

Further, would you be so kind as to review my current UEFI drivers/kexts to suggest me if I can reduce unnecessary ones?

Thanks a million!:thumbup:



Appendix :
USB Ports and its def. address in Hex and Dec
Their current USB Roles simple version (ASUS H170 Pro Gaming)

HS05 port 0x05 5 (reserv)
HS06 port 0x06 6 (reserv)
HS07 port 0x07 7 (low speed device)
HS08 port 0x08 8 (Android)
HS09 port 0x09 9 (Xbox 360 Wireless Receiver)
HS10 port 0x0a 10 (Printer )
HS11 port 0x0b 11 (USB 2.0 Hub KB BT Mouse.Wacom..)
HS12 port 0x0c 12 (pwr)
HS13 port 0x0d 13 (Front USB 2.0)
SS03 port 0x13 19 (ext HDD)
SS04 port 0x14 20 (reserv)
SS05 port 0x15 21 (ext HDD)
SS06 port 0x16 22 (ext HDD)
 

Attachments

Last edited:
Joined
Jun 8, 2011
Messages
17
Motherboard
Asus Maximus XI Hero z390
CPU
i7 9700K
Graphics
RX 580
Mobile Phone
Android, iOS
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
I got it to work. The only reason I didn’t upload is because he has the same board as I do and I was just wondering if he had had the same problem. I followed the guide and it went well except for that one problem. And after I downloaded his ssdt I used the guide to change it to fit my needs. The guide is written well and covers a lot of info. I had to read through it a few times to let all the information soak in. But again it’s all working now. Thanks again for the guide. Without it my usb3 ports would still be functioning at usb 2 speeds.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,415
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
I've enabled just the XHCI since I don't want to use the FakePCIID_XHCIMux.kext because it won't reflect any changes under XHC only in EH01/EH02

View attachment 377624

Am I right? If I enable EHCI Control I should patch the FakePCIID_XHCIMux.kext. So if I won't enable it I don't need to patch the kext.

Thanks skroutz999



I've enabled XHCI

View attachment 377622

Still have -uia_exclude_hs uia_include=HS11 in my boot arguments

It won't detect USB3 in SSxx ports.


BTW my problem is USB3 ports are on USB 2 speeds (480mb/sec)

Thanks RehabMan
Attached is my debug.sh results.

Thanks a lot RehabMan!
Your custom SSDT-UIAC.aml has only HSxx ports. No surprise that USB3 pins/SSxx are not working.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,415
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
But there is a infamous instant wake problem that annoys me a bit (no matter PMHeart/SSDT), the Razer mouse (which has LED light and check it use 500mA pwr)
before I use Razer it was an old Logitech G3 which use 98mA current. I used to attach mouse on HS11 (under a pwr switchable hub, each port!)

Have no instant wake issue on Logitech G3, but Razer, always wakes the computer up after I put OS to hibernation.
log show --style syslog | fgrep "Wake reason" tells me XHCI wakes
I pinned point that Razer mouse is responsible:banghead: for the wake (not other BT dongle, keyboard under the same HS11 hub).
Test device specific problem (Razer mouse) on real Mac.

Also, your ioreg shows Android File Transfer... bad idea. Read laptop FAQ:
http://www.tonymacx86.com/el-capitan-laptop-support/164990-faq-read-first-laptop-frequent-questions.html
 
Joined
Jul 3, 2013
Messages
31
Motherboard
Gigabyte GA-Z87X-UD3H
CPU
i7-4770
Graphics
RX 580
Mac
iMac, MacBook Pro
Mobile Phone
Android, iOS
Your custom SSDT-UIAC.aml has only HSxx ports. No surprise that USB3 pins/SSxx are not working.
Even if I put SSxx on the Custom SADT-UIAC the HSxx doesnt have a paired SSxx when doing a port discovery.

This is my initial roadblock to your guide as I mention in Post #2,906:

After discovering all HS ports (HS09-11,HS14) I've rebooted with -uia_exclude_hs uia_include=HS11 argument to discover SS ports.

Upon restart, USB 3 ports won't work anymore.



Thanks RehabMan


UPDATE:

@RehabMan

I was able to booth my High Sierra to check my IOReg. I notice that it uses SSP5 and SSP6 for my USB 3s. But on Mojave, when I install USBinjectAll.ktext it replaces SSP to SS. Is there anyway to force inject SSP instead of SS to see if it will recognize SSP5 and SSP6 in Mojave?

Here's an screenshot of the IOreg of my High Sierra

Screen Shot 2019-01-10 at 3.56.42 AM.png


Thanks again
 
Last edited:
Joined
Sep 7, 2018
Messages
81
Motherboard
Gigabyte Z370N WiFi
CPU
i5-8400
Graphics
RX 580
Mac
MacBook Pro
Mobile Phone
iOS
I have a question @RehabMan, and I apologize if by any chance it's been asked before.

Once somebody creates a custom SSDT for a certain motherboard, that SSDT is valid for the *model* or for that person's motherboard only?

I ask this because I found some threads here where people have created SSDT's for the same motherboard I have, and I am unsure whether I can use that one or need to create my own...
 
Joined
Dec 4, 2018
Messages
3
Motherboard
G551JW
CPU
i7-4720HQ
Graphics
HD 4600
I'm stuck at USB2 speed, only one of the three ports runs at full speed. All are USB3, according to this:
Asus Website G551JW Spec
and my own testing in Windows (all ports read at 90-100 MB/s)

I use Multibeast at first, it installed the port limit patch, and it worked but still only one full speed port. I did what the post told me and found out:
- EH02 / PR21 / HP21: BT
- EH02 / PR21 / HP23: Cam
- EH01 / PR11 / HP12 and HP13: 2 port which run at USB2
- XHC/SS01: run at USB3. When I use an USB2 sticks, it says that the USB is attached to EH01 / PR11 / HP11
And the situation stays the same: 2 USB2, 1 USB3.

How can I fix this? and what to choose to keep in the template, HUB with all those HP ports or EH with just (mixed) PR ports? Thanks!
 

Attachments

Joined
Jul 22, 2017
Messages
66
Motherboard
ASUS H170 Pro Gaming
CPU
i5-7600
Graphics
GTX 750 TI
Mac
iMac
Classic Mac
Classic, LC
Mobile Phone
Android, iOS
Joined
Jun 15, 2015
Messages
172
Motherboard
P5WE0
CPU
i5-2450M
Graphics
HD 3000
Mac
MacBook Air, Mac mini
Mobile Phone
Android, iOS
I have a question @RehabMan, and I apologize if by any chance it's been asked before.

Once somebody creates a custom SSDT for a certain motherboard, that SSDT is valid for the *model* or for that person's motherboard only?

I ask this because I found some threads here where people have created SSDT's for the same motherboard I have, and I am unsure whether I can use that one or need to create my own...
Different cases with their own interface options could cause enough change to make them a poor substitute for creating your own. Furthermore, a user may have disabled certain USB ports that they felt they didn't need but you do to get under the 15 port limit. And vice versa. For example, in someone's SSDT they might not have wireless and have disabled it or they do and you don't despite having the same board.

I highly advise making your own and only using the others as reference if needed.
 
Joined
Sep 24, 2012
Messages
172
Motherboard
Gigabyte Z390 Aorus Master
CPU
i7-9900K
Graphics
GTX 760
Classic Mac
Power Mac
Mobile Phone
iOS
Dear Rehabman,

I have the following issue. I tried to do a usb ssdt for Z390 and 9900K. Sleep worked when i only used the port limit patch and usbinjectall. But then i installed the abwb PCI Card for wifi and bluetooth, since then there is really the need of a usb ssdt, because sleep doesnt work anymore. I did the ssdt with usbMap script, but actually i guess i did wrong. i tried to set the usb header from the wifi bluetooth pcicard connected to an internal USB Header, HS13, to internal that sleep works again. But the ssdt doesnt work correctly. What command do i need to set in clover configurator, that the ssdt is loaded properly, only automerge in acpi? I would like to set up an ssdt for HS03-05 and HS08-13. But the script didnt do the same for the SS ports, or do i dont need to set them?

https://www.amazon.de/dp/B00MBP25UK/?tag=tonymacx8603-21
https://www.tonymacx86.com/threads/abwb-wifi-bluetooth-card-keeps-preventing-sleep.204161/
https://github.com/corpnewt/USBMap

Best Regards

Samuel

Edit: I did the port HS13 internal meanwhile. But no change to get sleep working. Instant wakeup caused by the abwb pcie card. There are several personens who got sleep working properly even with the abwb card, any support very welcome
 

Attachments

Last edited:
Top