mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 09:33:13 -06:00
Fix Issue #90
This commit is contained in:
parent
3e4a6bcb48
commit
ea890a462b
2 changed files with 25 additions and 1 deletions
Binary file not shown.
|
@ -242,12 +242,14 @@ DefinitionBlock ("", "SSDT", 1, "tyler", "_Sleep", 0x00002000)
|
|||
}
|
||||
|
||||
External (_SB.PCI0.LPCB.EC.AC, DeviceObj)
|
||||
External (LWCP, FieldUnitObj)
|
||||
|
||||
// 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)
|
||||
Scope (_SB.PCI0.LPCB.EC.AC)
|
||||
{
|
||||
// Probably not needed, for completeness
|
||||
Name (WK00, One)
|
||||
|
||||
Method (SWAK, 1, NotSerialized)
|
||||
|
@ -262,6 +264,28 @@ DefinitionBlock ("", "SSDT", 1, "tyler", "_Sleep", 0x00002000)
|
|||
WK00 = One
|
||||
}
|
||||
}
|
||||
|
||||
// Makes AppleACPIACAdapter load
|
||||
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
|
||||
{
|
||||
// Lid-wake control power
|
||||
Debug = Concatenate ("AC:_PRW() - LWCP: ", LWCP)
|
||||
|
||||
If (OSDW () || \LWCP)
|
||||
{
|
||||
Return (Package (0x02)
|
||||
{
|
||||
0x17,
|
||||
0x04
|
||||
})
|
||||
}
|
||||
|
||||
Return (Package (0x02)
|
||||
{
|
||||
0x17,
|
||||
0x03
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
//EOF
|
||||
|
|
Loading…
Reference in a new issue