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-AC.dsl
2020-11-13 17:12:58 -06:00

37 lines
984 B
Text

//
// AC-Adapter
//
DefinitionBlock ("", "SSDT", 2, "tyler", "_AC", 0x00001000)
{
// Common utils from SSDT-Darwin.dsl
External (OSDW, MethodObj) // 0 Arguments
External (_SB.PCI0.LPCB.EC.AC, DeviceObj)
External (LWCP, FieldUnitObj) // LID control power
// Patching AC-Device so that AppleACPIACAdapter-driver loads.
// Device named ADP1 on Mac
// See https://github.com/khronokernel/DarwinDumped/blob/b6d91cf4a5bdf1d4860add87cf6464839b92d5bb/MacBookPro/MacBookPro14%2C1/ACPI%20Tables/DSL/DSDT.dsl#L7965
Scope (\_SB.PCI0.LPCB.EC.AC)
{
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
{
If (\OSDW () || \LWCP)
{
Return (Package (0x02)
{
0x17,
0x04
})
}
Return (Package (0x02)
{
0x17,
0x03
})
}
}
}
// EOF