mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 01:23:14 -06:00
Patch AppleACPIACAdapter in its own SSDT
This commit is contained in:
parent
2fcb466dd6
commit
7c84fa90ea
3 changed files with 45 additions and 0 deletions
BIN
EFI-OpenCore/EFI/OC/ACPI/SSDT-AC.aml
Normal file
BIN
EFI-OpenCore/EFI/OC/ACPI/SSDT-AC.aml
Normal file
Binary file not shown.
|
@ -22,6 +22,14 @@
|
|||
<key>Path</key>
|
||||
<string>SSDT-INIT.aml</string>
|
||||
</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>
|
||||
<key>Comment</key>
|
||||
<string>Patch Battery</string>
|
||||
|
|
37
patches/SSDT-AC.dsl
Normal file
37
patches/SSDT-AC.dsl
Normal 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
|
Loading…
Reference in a new issue