Contribute
Register

The New Beginner's Guide to USB Port Configuration

Joined
Dec 20, 2013
Messages
13
Motherboard
Gigabyte h55m-usb3
CPU
X3440
Graphics
R9 270X
Hello, i followed your guide to try fix my usb but hackintool don't recognize my pots when i plug in a usb 3 device
I manually set them as usb 3 and disabling all the patches they works fine even when pluggin a usb3 device they works ad higher speed than usb 2, but for soem reason if i plut into the usb 3 port a hub usb 3 the pc freeze after waking from sleep.
Hackintool recognize it as usb 2 when i plug the hub but speeds are usb3.
I also have a usb 3 pci ex card based with a VIA VL805 chip, it works but when i try to turn off or sleep the mac it get stuck on the shutdown with a black screen but fans are still running.

How do i fix my usb 3 problems?

I'm using mojave 10.14.6 on a gigabyte h55m-usb 3
I'm posting my config.plist, the kext patch for the port removal are disabled becuase now i'm using the usbkext i made using hackingtool and aside the usb3 problems works fine without them.
During the process i used the usbinjectall.kext and the xhci-unsupported.kext


Edit: the reason why the usb3 works is because i have this kext https://github.com/chris1111/USB-3.0-NEC
removing it will stop making my port works as usb 3.
i would like to have a proper solution by making them all works using hackintool. Any tips on how to make it see my usb3?
 

Attachments

  • config.plist
    13 KB · Views: 27
Last edited:

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,783
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT 1030
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
What I was saying in post #530 was that it's still not working. It may have come across in the wrong way, but I never got it working.

I was just explaining what was happening in clover, and what is now happening in OpenCore.

Current situation:
OpenCore
All EHC are off
UsbPorts.kext
(nothing else)

When I wake up, all devices get ejected, then reattached (except hard drives, they stay unattached).

Hi.

Okay, the USB subsystem is configured using the same methods in OpenCore as it is in Clover. The only difference is the port-limit removal patching, when needed.

USBPorts.kext works for both as long as it is in EFI/CLOVER/kexts/Other.

USB cutting-out after wake from sleep can be reinstated by manually reloading the USBPorts.kext but this is hardly convenient.

Try USBInjectAll.kext along with its SSDT-UIAC.aml to see if you get the same behaviour.

:)

(PS - I don't like Vanilla guides because they may sound more like a real Mac but the truth is a PC is NOT a Mac and needs help. Our UniBeast/MultiBeast guides are an easier option, usually :thumbup:)
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,783
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT 1030
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
Hello, i followed your guide to try fix my usb but hackintool don't recognize my pots when i plug in a usb 3 device
I manually set them as usb 3 and disabling all the patches they works fine even when pluggin a usb3 device they works ad higher speed than usb 2, but for soem reason if i plut into the usb 3 port a hub usb 3 the pc freeze after waking from sleep.
Hackintool recognize it as usb 2 when i plug the hub but speeds are usb3.
I also have a usb 3 pci ex card based with a VIA VL805 chip, it works but when i try to turn off or sleep the mac it get stuck on the shutdown with a black screen but fans are still running.

How do i fix my usb 3 problems?

I'm using mojave 10.14.6 on a gigabyte h55m-usb 3
I'm posting my config.plist, the kext patch for the port removal are disabled becuase now i'm using the usbkext i made using hackingtool and aside the usb3 problems works fine without them.
During the process i used the usbinjectall.kext and the xhci-unsupported.kext

Hi.

I'll take a look and come back to you later if no one else does :thumbup:
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,783
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT 1030
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
Hello, i followed your guide to try fix my usb but hackintool don't recognize my pots when i plug in a usb 3 device
I manually set them as usb 3 and disabling all the patches they works fine even when pluggin a usb3 device they works ad higher speed than usb 2, but for soem reason if i plut into the usb 3 port a hub usb 3 the pc freeze after waking from sleep.
Hackintool recognize it as usb 2 when i plug the hub but speeds are usb3.
I also have a usb 3 pci ex card based with a VIA VL805 chip, it works but when i try to turn off or sleep the mac it get stuck on the shutdown with a black screen but fans are still running.

How do i fix my usb 3 problems?

I'm using mojave 10.14.6 on a gigabyte h55m-usb 3
I'm posting my config.plist, the kext patch for the port removal are disabled becuase now i'm using the usbkext i made using hackingtool and aside the usb3 problems works fine without them.
During the process i used the usbinjectall.kext and the xhci-unsupported.kext


Edit: the reason why the usb3 works is because i have this kext https://github.com/chris1111/USB-3.0-NEC
removing it will stop making my port works as usb 3.
i would like to have a proper solution by making them all works using hackintool. Any tips on how to make it see my usb3?

Hi there.

Your motherboard does not have an USB3 controllers you can configure properly. Being an H55 chipset it will only have USB1.0/2.0. The USB3 ports you have are, as you know, controlled by an NEC chip and this is not controlled by the system as XHCI. Your external PCI-e VIA USB3 card is also not controlled by the system. Only Intel ports are.

Hackintool might recognise these external USB3 ports but patching ACPI (which is basically what these tools do) does not put the ports on an XHCI controller, so they will always be treated differently, just like Apple does, as an external PCI card. This means they will work but unless you add a VIA or NEC driver kext, they may not be reliable or deliver the correct power. They will always interfere with wake/sleep, especially if on "hubs".

@RehabMan did provide a driver called GenericUSBXHCI.kext which allowed these external ports to act as internal, but this kext has not been updated for 5-years now and will no-longer work with the later macOS versions.

If you have an NEC driver that is great. You should get USB3 speeds but they will probably show up in the PXS (or similar) area of the IORegistryExplorer tree, not XHC.

You can remove a lot of ACPI patches from your config.plist to make it tighter.:thumbup:

:)
 
Joined
Dec 20, 2013
Messages
13
Motherboard
Gigabyte h55m-usb3
CPU
X3440
Graphics
R9 270X
I see, thank you very much for the help :)
 
Joined
Nov 8, 2015
Messages
33
Motherboard
MSi B150M BAZOOKA
CPU
i5-6500
Graphics
Sapphire Tri-X R9 290X
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
  2. iOS
Is anyone else having a weird issue where you select one port but it deselects itself?

Trying really hard to move my mouse faster to delete the ports.
 
Joined
Jul 18, 2016
Messages
94
Motherboard
Asus Z-170 Deluxe
CPU
i7-6700K
Graphics
RX 580
Mobile Phone
  1. iOS
Hi @UtterDisbelief, I use Asus Z170 Deluxe for my build and followed your guide, but the ports I deactivated HS03, HS04, HS08, HS09, HS10, HS13, HS14 are still active after reboot as you can see on the screenshots attached below. Can you point out what's wrong?

I even tried the SSDT-3.aml file @beelzebozo posted for his Asus Z170 Deluxe system and those ports are still active.

Thanks.
 

Attachments

  • Screen Shot 2020-04-04 at 12.00.24.png
    Screen Shot 2020-04-04 at 12.00.24.png
    903.4 KB · Views: 26
  • Screen Shot 2020-04-04 at 11.57.52.png
    Screen Shot 2020-04-04 at 11.57.52.png
    686.8 KB · Views: 29

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,783
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT 1030
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
Hi @UtterDisbelief, I use Asus Z170 Deluxe for my build and followed your guide, but the ports I deactivated HS03, HS04, HS08, HS09, HS10, HS13, HS14 are still active after reboot as you can see on the screenshots attached below. Can you point out what's wrong?

I even tried the SSDT-3.aml file @beelzebozo posted for his Asus Z170 Deluxe system and those ports are still active.

Thanks.

Hi there.

I think it depends how you are configuring the XHC ports.

Are you using the SSDT-UIAC.aml Hackintool outputs, along with USBInjectAll.kext? Or are you using USBPorts.kext instead?

The IORegistryExplorer shows that whichever method, it is not working. You have the basic 15-ports unconfigured.

Upload the configuration file you are using :thumbup:
 
Joined
Feb 5, 2018
Messages
12
Motherboard
GA-H270-HD3
CPU
i5 7400
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. Android
  2. iOS
Hi there,

I am trying to follow UtterDisbeliefs guide on page 1. This was probably asked already but it is hard to read over 55 pages so I go again:

In step 5 it says "Delete USBInjectAll.kext and replace it with USBPorts.kext in EFI/CLOVER/kexts/Other."

I don't have this file in that location. I do have USBInfectAll.kext in /Library/Extensions. I do not remember exactly how it got there. I guess it installed via MultiBeast when I set up the system. In general I think I only used MultiBeast directly after setup and then "An iDiot's Guide To Lilu and its Plug-in's" in order to get my audio running. I don't want to break anything that's why I am extra cautious here.

Should I now delete USBInjectAll.kext and replace it with USBPorts.kext in /Library/Extensions? Or something else?

Best,
Nicky
 

UtterDisbelief

Moderator
Joined
Feb 13, 2012
Messages
6,783
Motherboard
Gigabyte Z490i Aorus Ultra - OC 0.6.8
CPU
i5-10600K
Graphics
GT 1030
Mac
  1. iMac
  2. Mac mini
Classic Mac
  1. eMac
  2. iBook
Mobile Phone
  1. Android
Hi there,

I am trying to follow UtterDisbeliefs guide on page 1. This was probably asked already but it is hard to read over 55 pages so I go again:

In step 5 it says "Delete USBInjectAll.kext and replace it with USBPorts.kext in EFI/CLOVER/kexts/Other."

I don't have this file in that location. I do have USBInfectAll.kext in /Library/Extensions. I do not remember exactly how it got there. I guess it installed via MultiBeast when I set up the system. In general I think I only used MultiBeast directly after setup and then "An iDiot's Guide To Lilu and its Plug-in's" in order to get my audio running. I don't want to break anything that's why I am extra cautious here.

Should I now delete USBInjectAll.kext and replace it with USBPorts.kext in /Library/Extensions? Or something else?

Best,
Nicky

Hi there.

Because I describe using USBInjectAll.kext and port-limit removal patches to make all your Intel USB ports visible and configurable, once the configuration process has been done you then remove this kext and disable the patches, then install USBPorts.kext instead as it has all your hard work inside it :thumbup:

You don't specify which version of macOs you are using but from now on I recommend EFI/CLOVER/kexts/Other as the location for these kexts. Going forward the L/E location is going to get trickier and trickier as Apple ramps-up security, eventually disappearing completely.

USBInjectAll/USBPorts do not affect Audio unless you are using a USB audio device, obviously. Moving the kexts should not affect even USB audio though. It's not actually audio configuration, just USB. As long as a port works as it should, so do devices plugged-in to it.

If you move kexts to EFI/CLOVER/kexts/Other from L/E remember to rebuild your kextcaches with the Terminal command:

Code:
sudo kextcache -i /

... and reboot :thumbup:
 
Top