Contribute
Register

[Guide] Creating a Custom SSDT for USBInjectAll.kext

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,731
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
OK, I checked out with IOReg:

EH01 = divice-id <26 1e 00 00> => 0x1e26 => I have to leave the "8086_9xxx", Package() section, because there is no better match

EH02 = divice-id <2d 1e 00 00> => 0x1e2d => I have to leave the "8086_9xxx", Package() section, because there is no better match

XHC = divice-id <31 1e 00 00> => 0x1e31=> I have to leave the "8086_1e31", Package() section


Do I understand it right? :idea:
0x1e26 and 0x1e2d do not match against "8086_9xxx".

EH01/EH02 ports match against "EH01"/"EH02" (and "HUB1"/"HUB2").
Your XHC matches against "8086_1e31".

So... you should leave only "EH01", "EH02", "HUB1", "HUB2", and "8086_1e31". All other sections can be deleted.
 
Joined
Sep 21, 2013
Messages
34
Mac
iMac, MacBook Air, Mac Pro
Mobile Phone
iOS
Good to know!

Another question! I´m a little bit confused because of the ports in EH01 and EH02..let me explain! I´m not sure which ports should I delete within EH01 and EH02!

I have these Ports:

EH01
Front USB: PR11-HP18
Back USB1: PR11-HP15
Back USB2: PR11-HP16

EH02
Back USB3: PR21-HP21
Back USB4: PR21-HP22
Back USB5: PR21-HP25
Back USB6: PR21-HP26

XHC
Back USB7: SSP7 / HS03 this is clear!
Back USB8: SSP8 / HS04 this is clear!

But in the SSDT_UIAC-ALL.dsl, there is
- within EH01: PR11 to PR18
- within EH02: PR21 to PR26

Should I delete in my case EH01: PR12...PR18 and in EH02: PR22..PR26? And leave only PR11+PR21?
 
Last edited:
Joined
Sep 21, 2013
Messages
34
Mac
iMac, MacBook Air, Mac Pro
Mobile Phone
iOS
Damn, my Bluetooth problem still exist! :( Okay, I will explain it.

I got an Bluetooth dongle GMYLE Micro USB Bluetooth 4.0 Dongle (Broadcom BCM20702). After every reboot, I have no Mouse and no keyboard to use. I have to unplug the dongle and than to put him back in the USB port to get mouse and keyboard working on login screen! I hoped to fix it with your guide too. :((((((((

Could you please have a look at my files?

Thank you in advance
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,731
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Damn, my Bluetooth problem still exist! :( Okay, I will explain it.

I got an Bluetooth dongle GMYLE Micro USB Bluetooth 4.0 Dongle (Broadcom BCM20702). After every reboot, I have no Mouse and no keyboard to use. I have to unplug the dongle and than to put him back in the USB port to get mouse and keyboard working on login screen! I hoped to fix it with your guide too. :((((((((

Could you please have a look at my files?

Thank you in advance
Does your computer use all HP11-HP18 and HP21-HP26? (that is 14 USB2 ports, which seems excessive enough to be unlikely).
USB power properties are not injected (config.plist/Devices/USB/Inject=true).
You should attach ioreg that shows bluetooth not working.
Your BT controller probably needs BrcmPatchRAM kexts.
 
Joined
Sep 21, 2013
Messages
34
Mac
iMac, MacBook Air, Mac Pro
Mobile Phone
iOS
Does your computer use all HP11-HP18 and HP21-HP26? (that is 14 USB2 ports, which seems excessive enough to be unlikely).

USB power properties are not injected (config.plist/Devices/USB/Inject=true).

You should attach ioreg that shows bluetooth not working.

Your BT controller probably needs BrcmPatchRAM kexts.

No, I use only these 9 ports!

I have these Ports:

Front USB: PR11-HP18
Back USB1: PR11-HP15
Back USB2: PR11-HP16
Back USB3: PR21-HP21
Back USB4: PR21-HP22
Back USB5: PR21-HP25
Back USB6: PR21-HP26
Back USB7: SSP7 / HS03
Back USB8: SSP8 / HS04



I injected the power properties in config.plist. Is that correct?

Bildschirmfoto 2017-01-06 um 08.54.43.png

Here is a ioreg with bluetooth is not working. (The bluetooth dongle its in EH02-PR21-HP22)[/QUOTE]
 

Attachments

Joined
Dec 20, 2016
Messages
16
Hello RehabMan
I'm experiencing KP/reboot after deep sleep issue so VoiletDragon suggested me to follow your guide to customize my USB settings.
I followed your guide and my USB3.0/2.0 both work great now (I edited info.plist in USBInjectall.kext and reinstalled it rather than using customized SSDT). However the KP after deep sleep issue is still there...

Here's my build.
GA-Z97X-UD5H f11c bios
Intel Core i7-4770
ASUS GTX980 Matrix
16GB of RAM
Sierra 10.12.2
USBInjectall / FakePCIID.kext / FakePCIID_XHCIMux.kext installed

I tried typing pmset -g log | grep -i failure in terminal and got something like this:
2017-01-06 21:14:03 +0900 Failure Drivers Failure panic during wake due to PEG0():
2017-01-06 22:42:45 +0900 Failure Drivers Failure panic during wake due to PEG0():
and the panic report looks like this
Anonymous UUID: 268C5B79-2292-840F-B454-5D9E487925BB

Fri Jan 6 21:14:04 2017

*** Panic Report ***
panic(cpu 6 caller 0xffffff7f8107d27e): NVRM[0/1:0:0]: Read Error 0x00070000: CFG 0x13c010de 0x00100407 0xf6000000, BAR0 0xf6000000 0xffffff91f159b000 0x124000a1, D3, P3/4
Backtrace (CPU 6), Frame : Return Address
0xffffff91f0332ff0 : 0xffffff80002f211c
0xffffff91f0333070 : 0xffffff7f8107d27e
0xffffff91f0333130 : 0xffffff7f81157e9d
0xffffff91f0333190 : 0xffffff7f8137042b
0xffffff91f0333200 : 0xffffff7f8136f7d7
0xffffff91f0333350 : 0xffffff7f8136a2ca
0xffffff91f0333400 : 0xffffff7f8143aeff
0xffffff91f03334b0 : 0xffffff7f8142ed32
0xffffff91f0333580 : 0xffffff7f8142f4f2
0xffffff91f0333650 : 0xffffff7f81159570
0xffffff91f0333690 : 0xffffff7f811593c6
0xffffff91f03336f0 : 0xffffff7f8144a606
0xffffff91f0333790 : 0xffffff7f8144a269
0xffffff91f03337b0 : 0xffffff7f8107e0df
0xffffff91f0333830 : 0xffffff7f81080f53
0xffffff91f0333a30 : 0xffffff7f81082f90
0xffffff91f0333b20 : 0xffffff7f81296db7
0xffffff91f0333c20 : 0xffffff7f81013bba
0xffffff91f0333cb0 : 0xffffff7f80ff6fc4
0xffffff91f0333d30 : 0xffffff7f80ff9cac
0xffffff91f0333d90 : 0xffffff7f80ff9843
0xffffff91f0333e00 : 0xffffff7f80fbe1b1
0xffffff91f0333e40 : 0xffffff7f80fbd34c
0xffffff91f0333e80 : 0xffffff7f80fb912b
0xffffff91f0333ee0 : 0xffffff80008be51f
0xffffff91f0333f30 : 0xffffff80008bcd81
0xffffff91f0333f80 : 0xffffff80008bc366
0xffffff91f0333fb0 : 0xffffff80002a0af7
Kernel Extensions in backtrace:
com.apple.iokit.IOGraphicsFamily(513.1)[578F9D07-96F4-3F09-A6A6-047F257CB3BA]@0xffffff7f80fae000->0xffffff7f80ff4fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[6F8D3ACB-27CB-3B57-9E06-53E377762F5C]@0xffffff7f80a4f000
com.apple.iokit.IONDRVSupport(513.1)[07F97C14-C6EE-3577-9875-8BA38DDCBCCD]@0xffffff7f80ff5000->0xffffff7f81004fff
dependency: com.apple.iokit.IOGraphicsFamily(513.1)[578F9D07-96F4-3F09-A6A6-047F257CB3BA]@0xffffff7f80fae000
dependency: com.apple.iokit.IOPCIFamily(2.9)[6F8D3ACB-27CB-3B57-9E06-53E377762F5C]@0xffffff7f80a4f000
com.nvidia.web.NVDAResmanWeb(10.1.5)[EE27FF58-F17C-354B-AC5D-02F94D0B3841]@0xffffff7f81011000->0xffffff7f8134cfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[6F8D3ACB-27CB-3B57-9E06-53E377762F5C]@0xffffff7f80a4f000
dependency: com.apple.iokit.IONDRVSupport(513.1)[07F97C14-C6EE-3577-9875-8BA38DDCBCCD]@0xffffff7f80ff5000
dependency: com.apple.iokit.IOGraphicsFamily(513.1)[578F9D07-96F4-3F09-A6A6-047F257CB3BA]@0xffffff7f80fae000
dependency: com.apple.AppleGraphicsDeviceControl(3.13.78)[FD48FB7F-3F5F-38F1-A8C7-B82C80807726]@0xffffff7f81005000
com.nvidia.web.NVDAGM100HalWeb(10.1.5)[BEBAB721-B71D-3E29-8FE6-85C8215911B1]@0xffffff7f8134d000->0xffffff7f8160efff
dependency: com.nvidia.web.NVDAResmanWeb(10.1.5)[EE27FF58-F17C-354B-AC5D-02F94D0B3841]@0xffffff7f81011000
dependency: com.apple.iokit.IOPCIFamily(2.9)[6F8D3ACB-27CB-3B57-9E06-53E377762F5C]@0xffffff7f80a4f000

BSD process name corresponding to current thread: kernel_task
Boot args: dart=0 darkwake=0 nvda_drv=1 -uia_exclude_xhc slide=0

Mac OS version:
16C68

Kernel version:
Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64
Kernel UUID: 8DF81F81-019F-348E-B47E-40A4484B9E21
__HIB text base: 0xffffff8000100000
System model name: iMac14,2 (Mac-27ADBB7B4CEE8E61)

System uptime in nanoseconds: 5087610621722
last loaded kext at 48834810834: com.apple.filesystems.msdosfs 1.10 (addr 0xffffff7f8160f000, size 69632)
last unloaded kext at 727541409573: com.apple.driver.AppleIntelLpssGspi 3.0.60 (addr 0xffffff7f83157000, size 45056)
loaded kexts:
com.tuxera.filesystems.tufsfs.fusefs_txantfs 2015.11.5
com.nvidia.web.GeForceWeb 10.1.5
com.nvidia.web.NVDAGM100HalWeb 10.1.5
com.nvidia.web.NVDAResmanWeb 10.1.5
com.insanelymac.IntelMausiEthernet 2.1.0d5
org.rehabman.driver.FakePCIID.XHCIMux 1.3.5
org.rehabman.driver.FakePCIID 1.3.5
org.netkas.driver.FakeSMC 1723
com.rehabman.driver.USBInjectAll 0.5.16
com.apple.driver.AppleTopCaseHIDEventDriver 104
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleHSBluetoothDriver 104
com.apple.driver.AGPM 110.23.14
com.apple.driver.ApplePlatformEnabler 2.7.0d0
com.apple.driver.X86PlatformShim 1.0.0
com.apple.driver.AppleHDA 278.56
com.apple.driver.AppleUpstreamUserClient 3.6.4
com.apple.driver.pmtelemetry 1
com.apple.driver.AppleMCCSControl 1.2.15
com.apple.iokit.IOUserEthernet 1.0.1
com.apple.iokit.IOBluetoothSerialManager 5.0.2f4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleOSXWatchdog 1
com.apple.driver.AppleHV 1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 5.0.2f4
com.apple.driver.Apple16X50ACPI 3.2
com.apple.driver.AppleLPC 3.1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 40
com.apple.filesystems.hfs.kext 366.30.3
com.apple.iokit.IOAHCIBlockStorage 295.20.1
com.apple.driver.AirPort.Brcm4360 1130.3.1a4
com.apple.driver.AppleAHCIPort 326
com.apple.driver.AppleACPIButtons 5.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleAPIC 1.7
com.apple.nke.applicationfirewall 172
com.apple.security.quarantine 3
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleMultitouchDriver 368.7
com.apple.driver.AppleInputDeviceSupport 76.4
com.apple.kext.triggers 1.0
com.apple.driver.IOBluetoothHIDDriver 5.0.2f4
com.apple.driver.DspFuncLib 278.56
com.apple.kext.OSvKernDSPLib 525
com.apple.iokit.IOSurface 153.3
com.apple.iokit.IOAcceleratorFamily2 289.27
com.apple.AppleGraphicsDeviceControl 3.13.78
com.apple.driver.AppleSSE 1.0
com.apple.driver.AppleSMBusController 1.0.14d1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IONDRVSupport 513.1
com.apple.driver.AppleHDAController 278.56
com.apple.iokit.IOGraphicsFamily 513.1
com.apple.iokit.IOHDAFamily 278.56
com.apple.iokit.IOBluetoothHostControllerUSBTransport 5.0.2f4
com.apple.iokit.IOBluetoothHostControllerTransport 5.0.2f4
com.apple.iokit.IOBluetoothFamily 5.0.2f4
com.apple.driver.Apple16X50Serial 3.2
com.apple.iokit.IOSerialFamily 11
com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
com.apple.driver.AppleSMBusPCI 1.0.14d1
com.apple.driver.X86PlatformPlugin 1.0.0
com.apple.driver.AppleSMC 3.1.9
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.iokit.IOSCSIArchitectureModelFamily 394.30.2
com.apple.driver.usb.IOUSBHostHIDDevice 1.1
com.apple.driver.AppleUSBAudio 307.7
com.apple.iokit.IOAudioFamily 205.11
com.apple.vecLib.kext 1.2.0
com.apple.driver.AppleUSBHostMergeProperties 1.1
com.apple.driver.usb.networking 5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice 1.1
com.apple.driver.usb.AppleUSBHub 1.1
com.apple.filesystems.hfs.encodings.kext 1
com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IO80211Family 1200.12.2
com.apple.driver.mDNSOffloadUserClient 1.0.1b8
com.apple.driver.corecapture 1.0.4
com.apple.iokit.IOAHCIFamily 288
com.apple.driver.usb.AppleUSBEHCIPCI 1.1
com.apple.driver.usb.AppleUSBEHCI 1.1
com.apple.driver.usb.AppleUSBXHCIPCI 1.1
com.apple.driver.usb.AppleUSBXHCI 1.1
com.apple.iokit.IONetworkingFamily 3.2
com.apple.driver.AppleEFINVRAM 2.1
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.security.sandbox 300.0
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.AppleKeyStore 2
com.apple.driver.AppleMobileFileIntegrity 1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost 1
com.apple.iokit.IOUSBHostFamily 1.1
com.apple.driver.AppleBusPowerController 1.0
com.apple.driver.DiskImages 444.30.5
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily 31
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleACPIPlatform 5.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.Libm 1
com.apple.kec.pthread 1
com.apple.kec.corecrypto 1.0
Model: iMac14,2, BootROM IM142.0118.B00, 4 processors, Intel Core i7, 3.4 GHz, 16 GB, SMC 2.15f7
Graphics: NVIDIA GeForce GTX 980, NVIDIA GeForce GTX 980, PCIe, 4095 MB
Memory Module: BANK0/DIMM0, 8 GB, DDR3, 2400 MHz, Kingston, KHX2400C11D38GX
Memory Module: BANK1/DIMM0, 8 GB, DDR3, 2400 MHz, Kingston, KHX2400C11D38GX
AirPort: Third-Party Wireless Card
Bluetooth: Version 5.0.2f4, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
PCI Card: Intel 9 Series Chipset Family USB xHCI Host Controller, USB Controller, Built In
PCI Card: Intel 9 Series Chipset Family SATA Controller,,,,,,,,,, AHCI Controller, Built In
Serial ATA Device: ST4000DX001-1CE168, 4 TB
Serial ATA Device: SAMSUNG SSD PM830 mSATA 256GB, 256.06 GB
Serial ATA Device: Samsung SSD 840 EVO 250GB, 250.06 GB
Serial ATA Device: KINGSTON SHSS37A960G, 960.2 GB
USB Device: USB 3.0 Bus
USB Device: Hub
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: KS-3HQM USB Audio 2.0
USB Device: USB2.0 Hub
USB Device: FILCO FKB쀁̄Љ̌F
USB Device: Hub
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Intuos PTM
USB Device: BCM20702A0
Thunderbolt Bus:

I've also attached files and outputs you mentioned so could you please help to solve this annoying problem.
Thanks very much.
hangmongdeiMac:~ zhangmofeng$ kextstat|grep -y acpiplat

13 1 0xffffff7f8355e000 0x66000 0x66000 com.apple.driver.AppleACPIPlatform (5.0) B8468080-CED9-30EA-B151-33368AF9555B <12 11 7 6 5 4 3 1>

zhangmongdeiMac:~ zhangmofeng$ kextstat|grep -y appleintelcpu

zhangmongdeiMac:~ zhangmofeng$ kextstat|grep -y applelpc

76 0 0xffffff7f830d4000 0x3000 0x3000 com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <75 12 5 4 3>

zhangmongdeiMac:~ zhangmofeng$ kextstat|grep -y applehda

92 1 0xffffff7f83248000 0x1d000 0x1d000 com.apple.driver.AppleHDAController (278.56) CFB0D0AE-F09A-3660-8F95-7A02FD5FBF07 <91 90 70 12 7 6 5 4 3 1>

116 0 0xffffff7f833ca000 0xb4000 0xb4000 com.apple.driver.AppleHDA (278.56) A4EB06C9-A40A-39EF-9C4A-D7F23DB9A2F9 <115 98 92 91 90 70 6 5 4 3 1>
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext IntelMausiEthernet.kext

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakeSMC.kext

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_XHCIMux.kext

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext

kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext

KernelCache ID: 5493E70E6D7B330B0909F1F383B4D05F

symlink("/System/Library/PrelinkedKernels/prelinkedkernel", "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache") failed 17 (File exists) <createPrelinkedKernel 2795>
 

Attachments

Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,731
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
No, I use only these 9 ports!

I have these Ports:

Front USB: PR11-HP18
Back USB1: PR11-HP15
Back USB2: PR11-HP16
Back USB3: PR21-HP21
Back USB4: PR21-HP22
Back USB5: PR21-HP25
Back USB6: PR21-HP26
Back USB7: SSP7 / HS03
Back USB8: SSP8 / HS04



I injected the power properties in config.plist. Is that correct?

View attachment 228757

Here is a ioreg with bluetooth is not working. (The bluetooth dongle its in EH02-PR21-HP22)
Eliminate all unused ports as per post #1.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,731
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Hello RehabMan
I'm experiencing KP/reboot after deep sleep issue so VoiletDragon suggested me to follow your guide to customize my USB settings.
I followed your guide and my USB3.0/2.0 both work great now (I edited info.plist in USBInjectall.kext and reinstalled it rather than using customized SSDT). However the KP after deep sleep issue is still there...

Here's my build.
GA-Z97X-UD5H f11c bios
Intel Core i7-4770
ASUS GTX980 Matrix
16GB of RAM
Sierra 10.12.2
USBInjectall / FakePCIID.kext / FakePCIID_XHCIMux.kext installed

I tried typing pmset -g log | grep -i failure in terminal and got something like this:


and the panic report looks like this



I've also attached files and outputs you mentioned so could you please help to solve this annoying problem.
Thanks very much.
Your panic is in the Nvidia drivers. Not related to USB. Off-topic here.
 
Top