1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00

Patch AppleACPIACAdapter in its own SSDT

This commit is contained in:
Tyler Nguyen 2020-11-13 17:12:58 -06:00
parent 2fcb466dd6
commit 7c84fa90ea
No known key found for this signature in database
GPG key ID: DB5B102B914991DA
3 changed files with 45 additions and 0 deletions

Binary file not shown.

View file

@ -22,6 +22,14 @@
<key>Path</key> <key>Path</key>
<string>SSDT-INIT.aml</string> <string>SSDT-INIT.aml</string>
</dict> </dict>
<dict>
<key>Comment</key>
<string>Patch AC: Load AppleACPIACAdapter</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-AC.aml</string>
</dict>
<dict> <dict>
<key>Comment</key> <key>Comment</key>
<string>Patch Battery</string> <string>Patch Battery</string>

37
patches/SSDT-AC.dsl Normal file
View file

@ -0,0 +1,37 @@
//
// 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