1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/patches/SSDT-USBX.dsl
2020-11-03 11:58:35 -06:00

41 lines
1.1 KiB
Text

/*
* Fix USB Power
* https://dortania.github.io/OpenCore-Post-Install/usb/misc/power.html
*/
DefinitionBlock ("", "SSDT", 2, "tyler", "_USBX", 0x00001000)
{
External (DTGP, MethodObj) // 4 Arguments
External (OSDW, MethodObj) // 0 Arguments
Scope (\_SB)
{
Device (\_SB.USBX)
{
Name (_ADR, Zero) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Local0 = Package ()
{
"kUSBSleepPortCurrentLimit", 1500,
"kUSBSleepPowerSupply", 9600,
"kUSBWakePortCurrentLimit", 1500,
"kUSBWakePowerSupply", 9600,
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (OSDW ())
{
Return (0x0F)
}
Return (Zero)
}
}
}
}