Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

Joined
Oct 30, 2018
Messages
236
Motherboard
GIGABYTE Z370 AORUS Gaming 7
CPU
i7-8700K
Graphics
RX 580
Mac
iMac, MacBook, MacBook Pro, Mac mini, Mac Pro
Classic Mac
eMac, iMac, Performa
Mobile Phone
Android, iOS
ASUS TUF Z390 PRO GAMING.

Trying to set up SSDT following the guide. After several attempts, I realize that I am missing something important somewhere. But, cannot find what it is.

Can anyone spot my error(s) or point me in the right direction?
Solved by referring to the guide posted by @UtterDisbelief - covers recent developments.
 
Last edited:
Joined
Sep 22, 2011
Messages
281
Motherboard
Thinkpad T61-Clover
CPU
T9300/ICH8M
Graphics
Quadro NVS 140m, 1280x800
Mac
MacBook Pro
IORegistryExplorer indicates that the portType for Port 5 of my EHC1 Hub (EH01.PR11.HP15) is 0x00. According to Rehabman's USBInjectAll guide for creating a custom UIAC-SSDT, portType 0 is "a normal external USB2 port" even though this port is used by an internal Bluetooth device. I'd like to set this port to internal (portType=2) to see if it resolves the sleep issue on my Dell Latitude E6410. Is it possible to set the port type of USB ports on the EHCx hubs? My custom SSDT-UIAC.dsl is also attached.

Thank you.
 

Attachments

Feartech

Moderator
Joined
Aug 3, 2013
Messages
12,545
Motherboard
Asus N752VX-Clover
CPU
i7-6700HQ / HM170
Graphics
HD530 + GTX 950m 1920 x 1080
Mac
iMac
Mobile Phone
Android
IORegistryExplorer indicates that the portType for Port 5 of my EHC1 Hub (EH01.PR11.HP15) is 0x00. According to Rehabman's USBInjectAll guide for creating a custom UIAC-SSDT, portType 0 is "a normal external USB2 port" even though this port is used by an internal Bluetooth device. I'd like to set this port to internal (portType=2) to see if it resolves the sleep issue on my Dell Latitude E6410. Is it possible to set the port type of USB ports on the EHCx hubs? My custom SSDT-UIAC.dsl is also attached.

Thank you.
should be 255 if it is internal and your bluetooth card is attached to is
 
Joined
Sep 22, 2011
Messages
281
Motherboard
Thinkpad T61-Clover
CPU
T9300/ICH8M
Graphics
Quadro NVS 140m, 1280x800
Mac
MacBook Pro
should be 255 if it is internal and your bluetooth card is attached to is
EDIT - @Feartech - I agreed too quickly. I believe that usbConnector value for the hub should be 255 and the portType of each port (on the hub) should be either 0 or 2 (for external and internal respectively). In Rehabman's SSDT-UIAC-ALL.dsl example, he uses values of 0 and 255 for UsbConnector and portType = 0 (although his notes at the top of the file indicate portType value of 2 is Internal).

Rehabman's SSDT-UIAC template does not provide an example for setting the portType of USB ports on the EHCx hub (it only provides a way to set the portType of the hub itself). See attached screen shot showing that the EHC1 hub does in fact have a portType of 2. All USB ports off of the hub have portType = 0.
 

Attachments

Last edited:
Joined
Sep 22, 2011
Messages
281
Motherboard
Thinkpad T61-Clover
CPU
T9300/ICH8M
Graphics
Quadro NVS 140m, 1280x800
Mac
MacBook Pro
@Feartech I figured out how to set the portType for ports off of the EHCx hub. Rehabman's SSDT-UIAC-ALL.dsl file includes portTypes for HUB1 and HUB2 at the beginning of the file. I never realized that these defined the portType for ports off of the EHCx hubs. My revised SSDT-UIAC.dsl (attached) changes the internal ports to portType=2 as shown in the screenshot.

EDIT: I uncommented the UsbConnector values for the HUB1 USB ports and see that each of the USB ports on USB hub EHC1 now has a USB Connector value. I set the USB connector value to 0 for external USB 2.0 ports and 255 for internal ports (like the Bluetooth USB port). The updated IORegistryExplorer screen shot and SSDT-UIAC.dsl is attached.
 

Attachments

Last edited:
Joined
Sep 22, 2011
Messages
281
Motherboard
Thinkpad T61-Clover
CPU
T9300/ICH8M
Graphics
Quadro NVS 140m, 1280x800
Mac
MacBook Pro
@RehabMan Would it be possible to request the addition of MacBookPro5,1 to USBInjectAll.kext/Contents/Info.plist? I am running High Sierra 10.13.6 (and Mojave 10.14.5) on my Thinkpad T61 emulating a MacBookPro5,1 (using CLOVER -no_compat_check). CPU Performance Management is better as a MacBookPro5,1 than it was as a MacBookPro6,1 or MacBookPro7,1. I have modified the Info.plist in my version of USBInjectAll.kext by duplicating the entries for MacBookPro7,1 and replacing "MacBookPro7,1" with "MacBookPro5,1".

I don't mind manually editing the Info.plist this way, but if you believe it makes sense to add the MacBookPro5,1 , that would be great. Thanks for all the great work you do!
 
Joined
Dec 16, 2016
Messages
103
Motherboard
Msi z270 pro carbon
CPU
i7 7700k
Graphics
RX 580 + GTX 1080
Mac
iMac, MacBook Pro, Mac mini
Mobile Phone
Android
I need help to create my ssdt file.
I have a msi z370 gaming pro carbon motherboard
I have tested all the doors and this is the result:
Internal doors 2.0
HS07 - HS08
HS11 - HS12
Internal doors 3.1
HS05 / SS01 - HS06 / SS02
HS03 / SS03 - HS04 / SS04
External doors only 2.0
HS09
HS10
External doors 3.1
HS01 / SS07
HS02 / SS08
HS13 / SS06
HS14 / SS05
3.1 external ports connected to ASMedia-ASM3142:
RP05 ----> SSS2 / HSS2 Type A
RP05 ----> SSS1 / HSS1 Type C

As I have to proceed, my processor is an 8700K. My main question is with the ports connected to the ASMedia chipset even if it is detected in the PCI0 tree. And a correct file for my ID.

P.s. my XHC device- ID is <af a2 00 00>
Hi did you solve it? I am facing the same problem with z270 pro carbon
 
Joined
Nov 17, 2015
Messages
9
Motherboard
HP EliteBook 840G1-Clover
CPU
i5-4310U
Graphics
HD 4400
Hi. It's been a long time since I had the need to post something here. The guides by Rehabman are great, but I have a tiny little issue here, and I've banging my head against a wall for several weeks now.
I installed Mojave from scratch on a HP 840G1, and had a WiFi card with no Bluetooth (I came from a 8460p which did have onboard BT). I bought an Azurewave card (Broadcom BCM4352 Azurewave AW-CE123H WiF i+ BT 867Mbps Bluetooth 4.0 Hackintosh, said the eBay listing), and I thought it would work immediately, which of course, it didn't.

The WiFi portion of the card worked with absolutely no issues (as a Broadcom BCM43XX), but the bluetooth portion does not work at all.

I plugged a small BT dongle and enabled the BT indicator on the notification bar but when I unplug that dongle it just stays there, with a message that says "Bluetooth: Not Available".
There are no notifications in the System Report about Bluetooth, it just thinks there's no Bluetooth adapter.

After reading, I came across the fact that the BT portion of the card should be connected to a USB bus, and it led me to believe that somehow the card was faulty, or that there was a problem with the USB bus, since I tried it on Windows 10 and it didn't show the Bluetooth portion either (WiFi did work), but then I tried with Ubuntu. Ubuntu did show both devices, one on the PCI bus (WiFi, although it doesn't work there, and I won't look into it), and the other one on the USB bus. Funny thing, it seems as it's connected to a hub which is connected to the USB bus in the machine. Bluetooth DOES work on Ubuntu.

ubuntu@ubuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:16.3 Serial controller: Intel Corporation 8 Series HECI KT (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
02:00.0 Network controller: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter (rev 03)

ubuntu@ubuntu:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 125f:dc1a A-DATA Technology Co., Ltd.
Bus 003 Device 002: ID 0424:5534 Standard Microsystems Corp. Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 010: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 002 Device 009: ID 04f2:b3ed Chicony Electronics Co., Ltd
Bus 002 Device 004: ID 0a5c:21fb Broadcom Corp.
Bus 002 Device 002: ID 0424:2134 Standard Microsystems Corp. Hub
Bus 002 Device 011: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@ubuntu:~$

From dmesg in Linux, I have:

[ 11.370129] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[ 11.370131] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 11.370133] usb usb2: Product: xHCI Host Controller
[ 11.370134] usb usb2: Manufacturer: Linux 4.18.0-15-generic xhci-hcd
[ 11.370136] usb usb2: SerialNumber: 0000:00:14.0
[ 11.370344] hub 2-0:1.0: USB hub found
[ 11.370357] hub 2-0:1.0: 9 ports detected

[ 11.852368] usb 2-3: New USB device found, idVendor=0424, idProduct=2134, bcdDevice=50.00
[ 11.852370] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 11.852371] usb 2-3: Product: USB2134B
[ 11.852372] usb 2-3: Manufacturer: SMSC
[ 11.852846] hub 2-3:1.0: USB hub found
[ 11.852907] hub 2-3:1.0: 4 ports detected

and

[ 12.844091] usb 2-3.2: new full-speed USB device number 4 using xhci_hcd
[ 12.947628] usb 2-3.2: New USB device found, idVendor=0a5c, idProduct=21fb, bcdDevice= 1.12
[ 12.947631] usb 2-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 12.947633] usb 2-3.2: Product: BCM20702A0
[ 12.947634] usb 2-3.2: Manufacturer: Broadcom Corp
[ 12.947635] usb 2-3.2: SerialNumber: 28C2DD406542

This tells me that the Broadcom BT is connected to an internal hub, but it doesn't show up on MacOS.

Now, I went and read the USBInjectAll post, and prepared to do my testing, and booted MacOS with the -uia_ignore_rmcf, which gave me a couple of extra ports (I followed the original procedure to install MacOS on this machine by Rehabman, and I assume one of the ddst files did hide the ports), but the I can't find port in which the Bluetooth adapter should be, in fact, I open all the ports information and there's no adapter.

The SMSC hub appears on MacOS (vendor 0424, product 2134), but the BT device does not appear to be connected there.

Am I doing something wrong here? Am I missing something?? I've already reinstalled MacOS over my partition to have a "refresh install", as Rehabman recommended somewhere but it's doing the same thing.

I installed the Brcm kexts as well, but since the Bluetooth portion of the card isn't even being recognized, it doesn't do a thing. I think the first thing I need to do is to have the adapter visible on the USB ports.

I'm attaching my macos debug files as well as my dmesg from Ubuntu to see if I'm missing something.

Thanks for the help, Bluetooth is the one of two things that are still missing for the full experience on my machine, the other one being hibernate (which I hope can be worked out but that's for another thread).


** EDIT **
I installed Mojave from scratch on another HD (smaller one), and before applying any patches to the system, ran IORegistryExplorer, and the BT device appears connected inside HS03, it creates an Apple USB 2.0 Hub, and it´s connected to port 2, just like in Linux. This appears to go well.
I´ll finish the installation and see if I get both WiFi and Bluetooth, and if it works I might rework the original installation that I do have.

** EDIT 2 **
I did the installation scripts from Rehabman´s repository, and the thing broke. I used the configuration for 8x0G1 Haswell, and it seems that it disables the detection on the port, as after rebooting I do have WiFi but the Bluetooth device appears not connected again in IORegistryExplorer. Is there a way to quickly fix this? I just need to enable that port to get things up and running, I wouldn´t want to redo Rehabman´s job of detecting ports just for one extra port.

Thanks for your time. This has been great, it´s almost over, I just need a small push in the right direction.
 

Attachments

Last edited:
Joined
Mar 4, 2014
Messages
300
Motherboard
GA-Z87-HD3
CPU
i5-4570
Graphics
RX 580
Mac
iMac
Mobile Phone
iOS
you can just use either the kext is creates and install to /Library/Extensions

or

use USbInjectAll.kext and place .amls in patched/other
Hi, I have been using the USB kext created by Hackintool for my High Sierra build, I have now done a clean install of Mojave, do I need to go through the process again or can I use the same kext?
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
12,545
Motherboard
Asus N752VX-Clover
CPU
i7-6700HQ / HM170
Graphics
HD530 + GTX 950m 1920 x 1080
Mac
iMac
Mobile Phone
Android
Hi, I have been using the USB kext created by Hackintool for my High Sierra build, I have now done a clean install of Mojave, do I need to go through the process again or can I use the same kext?
use the same
 

Top