Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
172 lines (158 sloc) 5.45 KB
// Necessary hotpatch
// Maintained by: stevezhengshiqi
// Reference: https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311 and https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
// USB power injection and patch USB ports, pair with USBInjectAll.kext
DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000)
{
Device (_SB.USBX)
{
Name (_ADR, Zero) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (!Arg2)
{
Return (Buffer (One)
{
0x03 // .
})
}
Return (Package (0x04)
{
"kUSBSleepPortCurrentLimit",
0x0BB8,
"kUSBWakePortCurrentLimit",
0x0BB8
})
}
}
Device (UIAC)
{
Name (_HID, "UIA00000") // _HID: Hardware ID
Name (RMCF, Package (0x02)
{
"8086_9dxx",
Package (0x04)
{
"port-count",
Buffer (0x04)
{
0x10, 0x00, 0x00, 0x00 // ....
},
"ports",
Package (0x14)
{
"HS01", // HS USB3 near right
Package (0x04)
{
"UsbConnector",
0x0A,
"port",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00 // ....
}
},
"HS03", // HS USB3 near left
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x03, 0x00, 0x00, 0x00 // ....
}
},
"HS04", // HS USB3 far right
Package (0x04)
{
"UsbConnector",
0x0A,
"port",
Buffer (0x04)
{
0x04, 0x00, 0x00, 0x00 // ....
}
},
"HS05", // bluetooth
Package (0x04)
{
"UsbConnector",
0xFF,
"port",
Buffer (0x04)
{
0x05, 0x00, 0x00, 0x00 // ....
}
},
"HS06", // camera
Package (0x04)
{
"UsbConnector",
0xFF,
"port",
Buffer (0x04)
{
0x06, 0x00, 0x00, 0x00 // ....
}
},
"HS09", // HS USB3 far left
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x09, 0x00, 0x00, 0x00 // ....
}
},
"SS01", // SS USB3 near right
Package (0x04)
{
"UsbConnector",
0x0A,
"port",
Buffer (0x04)
{
0x0D, 0x00, 0x00, 0x00 // ....
}
},
"SS02", // SS USB3 near left
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x0E, 0x00, 0x00, 0x00 // ....
}
},
"SS03", // SS USB3 far left
Package (0x04)
{
"UsbConnector",
0x03,
"port",
Buffer (0x04)
{
0x0F, 0x00, 0x00, 0x00 // ....
}
},
"SS04", // SS USB3 far right
Package (0x04)
{
"UsbConnector",
0x0A,
"port",
Buffer (0x04)
{
0x10, 0x00, 0x00, 0x00 // ....
}
}
}
}
})
}
}
You can’t perform that action at this time.