-->Donations via PayPal [External Link Removed for Guests] :guitar
-->Installation/Post Installation Tutorial [Local Link Removed for Guests]
-->Useful Links [Local Link Removed for Guests]
-->Olarila Images - Updated images [Local Link Removed for Guests]
-->Guides and Tutorials [Local Link Removed for Guests]
-->Clover Folder for All Chipsets [Local Link Removed for Guests]
-->DSDT Patch Requests [Local Link Removed for Guests]

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 20 May 2019, 18:36

-All credits to Piker-Alpha
Here
[External Link Removed for Guests]
and here
[External Link Removed for Guests]

1- Check OEM SSDT about USBs, in my case is SSDT-6-A M I.aml, i'm using a Z390 mobo

2- Create Methods into SSDT OEM inside Scope _SB.PCI0.XHC.RHUB, Internal and USB 2 is native, just create USB 3, USB-C

We just need duplicate Methods (GUPC for example) native from our ACPI table and Inject values
Connector types in the ACPI specification
[External Link Removed for Guests]

Image

0xFF - internal - GUPC
Zero - USB 2 - TUPC
0x03 - USB 3 - MALD
0x09 - USB-C - MAL0 (Same HSxx/SSxx in both orientations, then it has an internal switch)
0x0A - USB-C - MAL1 (Different HSxx/SSxx in each orientation, then it has no switch)

-Example

GUPC and TUPC is a native Methods

Image
Method (GUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0xFF,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG) /* \_SB_.PCI0.XHC_.RHUB.GUPC.PCKG */
}

Method (TUPC, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
One,
Zero,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG) /* \_SB_.PCI0.XHC_.RHUB.TUPC.PCKG */
}

Method (MALD, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0x03,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG) /* \_SB_.PCI0.XHC_.RHUB.MALD.PCKG */
}

Method (MAL0, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0x09,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG) /* \_SB_.PCI0.XHC_.RHUB.MAL0.PCKG */
}

Method (MAL1, 1, Serialized)
{
Name (PCKG, Package (0x04)
{
Zero,
0x0A,
Zero,
Zero
})
PCKG [Zero] = Arg0
Return (PCKG) /* \_SB_.PCI0.XHC_.RHUB.MAL1.PCKG */
}
}
3- Enable or Disable USB ports

-Check example TUPC

Look at Method _UPC - USB Port Capabilities

Enable = One
Disable = Zero

Example
Scope (\_SB.PCI0.XHC.RHUB.HS01)
{
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities
{
If ((H1TC == Zero))
{
If (((UMAP & One) == One))
{
Return (TUPC (One))
}
Else
{
Return (GUPC (Zero))
}
}
Else
{
Return (\_SB.UBTC.RUCC (H1CR, One))
}
}
If you need identify your USB ports like USB-C for example, change TUPC/GUPC to MAL0
Scope (\_SB.PCI0.XHC.RHUB.SS01)
{
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities
{
If ((H1TC == Zero))
{
If (((UMAP & One) == One))
{
Return (MAL0 (One))
}
Else
{
Return (GUPC (Zero))
}
}
Else
{
Return (\_SB.UBTC.RUCC (H1CR, One))
}
}
0xFF - internal - GUPC
Zero - USB 2 - TUPC
0x03 - USB 3 - MALD
0x09 - USB-C - MAL0 (Same HSxx/SSxx in both orientations, then it has an internal switch)
0x0A - USB-C - MAL1 (Different HSxx/SSxx in each orientation, then it has no switch)

-USB 2 PORTS inside USB 3 BUS, just Inject USB 3

Image

-My SSDT with edits
SSDT-6-A M I.aml.zip
-Use a Diff Merge to compare files

-Original
ORIGINAL.txt.zip
-Edited
EDITED.txt.zip
-Download Diff Merge
[External Link Removed for Guests]#

Image
You do not have the required permissions to view the files attached to this post.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
User avatar
Allan
Olarila Staff
Olarila Staff
Posts: 957
Joined: 07 May 2012, 03:55
CPU: i5-3210M
Motherboard: InsydeH20
GPU: IntelHD 4000
Location: São Paulo
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by Allan » 28 May 2019, 10:44

Excellent guide MaLd0n, awesome!!

Bit by bit we will understanding more about ACPI patching, thank you.

But one doubt, I need to keep the USB Injection at Clover? E.g: Devices > USB > Inject/FixOwnership/HighCurrent

Thanks
Lenovo G480 [Local Link Removed for Guests]

[External Link Removed for Guests]
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 28 May 2019, 12:35

Allan, u can use it in clover without problem
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
User avatar
Allan
Olarila Staff
Olarila Staff
Posts: 957
Joined: 07 May 2012, 03:55
CPU: i5-3210M
Motherboard: InsydeH20
GPU: IntelHD 4000
Location: São Paulo
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by Allan » 28 May 2019, 16:28

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
28 May 2019, 12:35
Allan, u can use it in clover without problem
Got it ;)
Lenovo G480 [Local Link Removed for Guests]

[External Link Removed for Guests]
mathewgx
Posts: 66
Joined: 05 Jun 2018, 17:22
CPU: intel
Motherboard: dell
GPU: intel

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by mathewgx » 30 May 2019, 05:21

@MaLd0n,

I was waiting a long time for something like this.
Unfortunately I didn't manage to create a correct one.

If you have the time , can you help me out ?
I'm attaching my native acpi ssdt for usb and my current usb configuration.
Thank you in advance.
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 30 May 2019, 11:29

mathewgx, check if work
SSDT-2-xh_OEMBD.aml.zip
the image have all ur real ports?
You do not have the required permissions to view the files attached to this post.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
mathewgx
Posts: 66
Joined: 05 Jun 2018, 17:22
CPU: intel
Motherboard: dell
GPU: intel

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by mathewgx » 30 May 2019, 18:22

Working great !!!
Just had to change a port from usb3 to usb2 but that's nothing.

Thank you , again , my friend.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 30 May 2019, 19:43

mathewgx, ;)
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
User avatar
vinpo
Posts: 24
Joined: 14 Jul 2018, 21:12
CPU: Intel I7 6700K
Motherboard: Asus Z-170A
GPU: Sapphire RX 580 Nitro+ 8gb

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by vinpo » 01 Jun 2019, 16:50

Hi, guys
ffor which version of macOS is this method applicable?
Thanks everyone
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 01 Jun 2019, 21:57

vinpo, all
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
piyushrawal
Posts: 7
Joined: 23 Apr 2019, 20:25
CPU: i7-7700
Motherboard: MSI H270-A Pro
GPU: RX 580

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by piyushrawal » 04 Jun 2019, 20:29

Hey, thanks for the guide but it seems I didn't grasp it right.
Do you mind looking at what I did wrong?
Also, can I also remove XHCI-unsupported.kext if I use this method?
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 04 Jun 2019, 20:43

piyushrawal, dont need usbinjectall and XHCI-unsupported.kext

use ssdt with usb patch limit and u don't need more
SSDT-xh.aml.zip
[Local Link Removed for Guests]

if u need change connectors, check inside all _upc and change

0xFF - internal - GUPC
Zero - USB 2 - TUPC
0x03 - USB 3 - MALD
0x09 - USB-C - MAL0
0x0A - USB-C - MAL1

btw, SSDT-xh is a native name or u renamed it? use a native name and clover replace a correct table, i never test with rename
You do not have the required permissions to view the files attached to this post.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
piyushrawal
Posts: 7
Joined: 23 Apr 2019, 20:25
CPU: i7-7700
Motherboard: MSI H270-A Pro
GPU: RX 580

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by piyushrawal » 04 Jun 2019, 21:13

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
04 Jun 2019, 20:43
piyushrawal, dont need usbinjectall and XHCI-unsupported.kext

use ssdt with usb patch limit and u don't need more
SSDT-xh.aml.zip
[Local Link Removed for Guests]

if u need change connectors, check inside all _upc and change

0xFF - internal - GUPC
Zero - USB 2 - TUPC
0x03 - USB 3 - MALD
0x09 - USB-C - MAL0
0x0A - USB-C - MAL1

btw, SSDT-xh is a native name or u renamed it? use a native name and clover replace a correct table, i never test with rename
It's working with limit patch. But I am unable to disable USB ports to get it under 15 limit by setting Return (MALD (One)) to Return (MALD (Zero)). It has no effect.
And yes, renaming was a bad idea. It doesn't work if renamed.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 04 Jun 2019, 21:16

piyushrawal, remove ssdt uiac
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
piyushrawal
Posts: 7
Joined: 23 Apr 2019, 20:25
CPU: i7-7700
Motherboard: MSI H270-A Pro
GPU: RX 580

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by piyushrawal » 04 Jun 2019, 21:32

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
04 Jun 2019, 21:16
piyushrawal, remove ssdt uiac
It's deleted. If you wish to take a look, I've attached the clover folder. It contains stock ssdt in origin folder as well.
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 04 Jun 2019, 22:51

piyushrawal, replace full EFI, reboot and extract new send_me, don't change nothing
EFI.zip
You do not have the required permissions to view the files attached to this post.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
piyushrawal
Posts: 7
Joined: 23 Apr 2019, 20:25
CPU: i7-7700
Motherboard: MSI H270-A Pro
GPU: RX 580

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by piyushrawal » 04 Jun 2019, 23:18

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]
04 Jun 2019, 22:51
piyushrawal, replace full EFI, reboot and extract new send_me, don't change nothing
EFI.zip
MaLd0n, there you go.
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 04 Jun 2019, 23:20

piyushrawal, run my app for full dump
--Run_Me
[Local Link Removed for Guests]
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
piyushrawal
Posts: 7
Joined: 23 Apr 2019, 20:25
CPU: i7-7700
Motherboard: MSI H270-A Pro
GPU: RX 580

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by piyushrawal » 04 Jun 2019, 23:28

MaLd0n, my apologies for misunderstanding.
You do not have the required permissions to view the files attached to this post.
User avatar
MaLd0n
Site Admin
Site Admin
Posts: 14436
Joined: 05 Dec 2010, 19:35
CPU: i9-9900K
Motherboard: GA Z390 M GAMING
GPU: RX 590 8 GB
Location: Rio de Janeiro, Brazil
Contact:

[Guide] Native USB Fix - No Injector/Kext Required - SkyLake+

Post by MaLd0n » 04 Jun 2019, 23:38

piyushrawal,
DSDT.aml.zip
now, just change One to Zero if u need disable
You do not have the required permissions to view the files attached to this post.
:guitar[External Link Removed for Guests]:guitar-[Local Link Removed for Guests]:guitar

Problems with Paypal Donate? Check [Local Link Removed for Guests]

-Donated? Send me one PM-
Post Reply

Return to “Guides and tutorials”