Contribute
Register

The New Beginner's Guide to USB Port Configuration

Joined
Jul 18, 2016
Messages
83
Motherboard
Asus Z-170 Deluxe
CPU
i7-6700K
Graphics
RX 580
Mobile Phone
  1. iOS
It worked, @UtterDisbelief. I learned a lot about USB Port configuration from you. I owe you one.

I'm curious, this time when I load the USBInjectAll.kext with the right config.plist file, those PXSX ports from ASMedia controllers were not visible. Was the wrong entry on the config.plist causing the problem in the first place?

Thanks again.
 

Attachments

  • Screen Shot 2020-04-05 at 08.18.43.png
    Screen Shot 2020-04-05 at 08.18.43.png
    752.9 KB · Views: 19
  • Screen Shot 2020-04-05 at 08.17.34.png
    Screen Shot 2020-04-05 at 08.17.34.png
    628.8 KB · Views: 21
Last edited:
Joined
Nov 13, 2010
Messages
123
Motherboard
Asus Prime Z370-A
CPU
i7-8700K
Graphics
RX580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I've followed the instructions to the tee, before the reboot, I see this and all my USB ports work perfectly, I can plug/unplug to any physical port:
Screenshot 2020-04-05 at 16.45.32.png


So I disable the Clover patch, I remove the USBInjectAll.kext, put USBPorts.kext instead of it. I reboot, and see this:

Screenshot 2020-04-05 at 16.57.53.png

The USB2 ports are gone and when I plug in a card reader to case USB3 port, nothing happens, half of the ports stop working.

I've attached the USBPorts.kext for reference

Any ideas?

EDIT: When I run this I see some old rehabman kext is coming from.. somewhere, it is not in /Volumes/EFI Or /Library or /System, where could it be coming from??

Code:
Mac-Pro.local ➜  Tether  sudo kextstat | grep -i inject
   18    0 0xffffff7f8131f000 0x4000     0x4000     com.rehabman.driver.USBInjectAll (0.6.5) A63DACD5-10FE-3A1C-BCB1-4EEF5308B7CC <13 12 5 3>
 

Attachments

  • USBPorts.kext.zip
    1.7 KB · Views: 11
Last edited:
Joined
Jun 20, 2014
Messages
1,019
Motherboard
Gigabyte Aero 15X v8-BK4K4P
CPU
i7-8750H
Graphics
UHD 630 / GTX 1070
EDIT: When I run this I see some old rehabman kext is coming from.. somewhere, it is not in /Volumes/EFI Or /Library or /System, where could it be coming from??
Make sure it's also deleted out of /S/L/E and L/E. You can then use Hackintool to "Rebuild KextCache and Repair Permissions"
 
Last edited:

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
4,966
Motherboard
Gigabyte Z390M Gaming - Clover 5102
CPU
i5-9600K
Graphics
RX 570 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
I've followed the instructions to the tee, before the reboot, I see this and all my USB ports work perfectly, I can plug/unplug to any physical port:
View attachment 459857

So I disable the Clover patch, I remove the USBInjectAll.kext, put USBPorts.kext instead of it. I reboot, and see this:

View attachment 459858
The USB2 ports are gone and when I plug in a card reader to case USB3 port, nothing happens, half of the ports stop working.

I've attached the USBPorts.kext for reference

Any ideas?

EDIT: When I run this I see some old rehabman kext is coming from.. somewhere, it is not in /Volumes/EFI Or /Library or /System, where could it be coming from??

Code:
Mac-Pro.local ➜  Tether  sudo kextstat | grep -i inject
   18    0 0xffffff7f8131f000 0x4000     0x4000     com.rehabman.driver.USBInjectAll (0.6.5) A63DACD5-10FE-3A1C-BCB1-4EEF5308B7CC <13 12 5 3>


Hi there

Also a couple of notes:

No, your USB2 ports are still there in the second screengrab = HS** etc.

Although I'm not certain without seeing IORegistryExplorer, the SS** ports all have the same Location ID so this makes me think they are actually attached to the ASMedia hubs, not Intel ports.

Conclusion is, USBInjectAll is still active, maybe cached as @headkaze points out :thumbup:
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
4,966
Motherboard
Gigabyte Z390M Gaming - Clover 5102
CPU
i5-9600K
Graphics
RX 570 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
You are right, I had to "Rebuild KextCache and Repair Permissions" for the injector to disappear, now it shows this:

View attachment 459904
The ports on the case still don't work and nothing shows up when I unplug/plug devices in :( - any ideas?


Hopefully @headkaze will pop back and shed some light here.

My take on this is that you have all XHC ports set as "Internal" whereas you should configure each according to its type using the pull-down menu.

Not sure that is fully causing your problem. I think an IORegistryExplorer Export file might prove handy.

:)
 
Joined
Nov 13, 2010
Messages
123
Motherboard
Asus Prime Z370-A
CPU
i7-8700K
Graphics
RX580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Hopefully @headkaze will pop back and shed some light here.

My take on this is that you have all XHC ports set as "Internal" whereas you should configure each according to its type using the pull-down menu.

Not sure that is fully causing your problem. I think an IORegistryExplorer Export file might prove handy.

:)

This is how I configured all ports:
Screenshot 2020-04-05 at 16.45.32.png

This is how they showed up after boot :( -
Screenshot 2020-04-05 at 19.07.11.png
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
4,966
Motherboard
Gigabyte Z390M Gaming - Clover 5102
CPU
i5-9600K
Graphics
RX 570 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
This is how I configured all ports:
View attachment 459924
This is how they showed up after boot :( -
View attachment 459925


Curious. If you are using the same USBPorts.kext you uploaded previously in post #562 then the UsbConnector types are all configured correctly. So more likely something else is causing the kext to be ignored.

Trying to be logical here:

1) Are you using the MacPro system-definition 6,1 ?

2) Are you placing the USBPorts.kext in EFI/CLOVER/kexts/Other?

3) Have you removed any USBPorts or USBInjectAll kexts from L/E and rebuilt caches? (I guess so from. yuor comment above).

4) No SSDTs in EFI/CLOVER/ACPI/patched folder?

:)
 
Joined
Nov 13, 2010
Messages
123
Motherboard
Asus Prime Z370-A
CPU
i7-8700K
Graphics
RX580
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Curious. If you are using the same USBPorts.kext you uploaded previously in post #562 then the UsbConnector types are all configured correctly. So more likely something else is causing the kext to be ignored.

Trying to be logical here:

1) Are you using the MacPro system-definition 6,1 ?

2) Are you placing the USBPorts.kext in EFI/CLOVER/kexts/Other?

3) Have you removed any USBPorts or USBInjectAll kexts from L/E and rebuilt caches? (I guess so from. yuor comment above).

4) No SSDTs in EFI/CLOVER/ACPI/patched folder?

:)

1) Yes, I am using MacPro 6,1 - anything else my second display doesn't work :(
2) Yes, after mounting, it's in /Volumes/EFI/EFI/CLOVER/kexts/Other/USBPorts.kext -- the config.plist I'm editing is /Volumes/EFI/EFI/CLOVER/config.plist which is the correct path
3) Yes:
Code:
Mac-Pro.local ➜  ~  sudo kextstat | egrep  -i 'usbi|usbp'
Mac-Pro.local ➜  ~

4) Hmm:
Code:
Mac-Pro.local ➜  ~  find /Volumes/EFI | grep -i patc
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-EC.aml
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-USBX.aml

Should I delete those?

EDIT: If I delete those files, it stops booting:
IMG_1735.jpg
 
Last edited:

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
4,966
Motherboard
Gigabyte Z390M Gaming - Clover 5102
CPU
i5-9600K
Graphics
RX 570 1920x1080
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
1) Yes, I am using MacPro 6,1 - anything else my second display doesn't work :(
2) Yes, after mounting, it's in /Volumes/EFI/EFI/CLOVER/kexts/Other/USBPorts.kext -- the config.plist I'm editing is /Volumes/EFI/EFI/CLOVER/config.plist which is the correct path
3) Yes:
Code:
Mac-Pro.local ➜  ~  sudo kextstat | egrep  -i 'usbi|usbp'
Mac-Pro.local ➜  ~

4) Hmm:
Code:
Mac-Pro.local ➜  ~  find /Volumes/EFI | grep -i patc
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-EC.aml
/Volumes/EFI/EFI/CLOVER/ACPI/patched/SSDT-USBX.aml

Should I delete those?

EDIT: If I delete those files, it stops booting:
View attachment 459954


Yes, keep those two SSDTs in place. They are what prevent the "1689" error which you can see second line up from the bottom. The SSDT-EC is an "Embedded Controller" and SSDT-USBX is used to boost power output to ports. Actually the latters settings are also in USBPorts.kext so may be duplication. Not sure.

I was wondering about an SSDT-UIAC or SSDT-USB patch.

Quite why those UsbConnector types do not work is a pointer to something, but I haven't spotted it on what I've seen so far ...

What setting do you have in config.plist for <key>Devices</key> <key>USB</key> ?
What setting do you have in config.plist for <key>SystemParameters</key> <key>InjectKexts</key> ?

:)
 
Top