1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 01:23:14 -06:00

Issue #90 Fix SSDT-PLUG and rename to SSDT-PM

This commit is contained in:
Tyler Nguyen 2020-11-05 20:49:43 -06:00
parent ea890a462b
commit 3cc241dc5a
No known key found for this signature in database
GPG key ID: DB5B102B914991DA
6 changed files with 36 additions and 31 deletions

Binary file not shown.

View file

@ -40,11 +40,11 @@
</dict>
<dict>
<key>Comment</key>
<string>Intel Power Management</string>
<string>System Power Management</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-PLUG.aml</string>
<string>SSDT-PM.aml</string>
</dict>
<dict>
<key>Comment</key>

View file

@ -2,7 +2,7 @@
In the current directory are ACPI source files of patches in-use.
Please refer to [docs/3_README-ACPIpatching.md](https://github.com/tylernguyen/x1c6-hackintosh/blob/master/docs/3_README-ACPIpatching.md) for each of their specific usage and purposes. In addition, each patch have insightful comments in them, please read throughly read their source code.
Please refer to [docs/2_README-ACPIpatching.md](https://github.com/tylernguyen/x1c6-hackintosh/blob/master/docs/2_README-ACPIpatching.md) for each of their specific usage and purposes. In addition, each patch have insightful comments in them, please read throughly read their source code.
## OpenCore Patches
By default, the repo `config.plist` should have already have these patches included. These patches are mostly dependencies of various ACPI patches. They are here for reference patches.

View file

@ -1,28 +0,0 @@
/*
* XCPM power management compatibility table.
*/
DefinitionBlock ("", "SSDT", 2, "tyler", "_PLUG", 0x00001000)
{
External(_PR.PR00, ProcessorObj)
/* Support methods */
External (DTGP, MethodObj) // 5 Arguments
If (CondRefOf (\PR.PR00))
{
Scope (\_PR.PR00)
{
Method (_DSM, 4, NotSerialized)
{
Local0 = Package ()
{
// Inject plugin-type = 0x01
"plugin-type",
One
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}
}

33
patches/SSDT-PM.dsl Normal file
View file

@ -0,0 +1,33 @@
/*
* XCPM power management compatibility table.
*/
DefinitionBlock ("", "SSDT", 2, "tyler", "_PM", 0x00001000)
{
External (DTGP, MethodObj) // 5 Arguments
//
// The CPU device name. (PR00 here)
//
External (_PR.PR00, ProcessorObj)
/*
* XCPM power management compatibility table.
*/
Scope (\_PR.PR00)
{
Method (_DSM, 4, NotSerialized)
{
//
// Inject plugin-type = 0x01 to load X86*.kext
//
Debug = "Writing plugin-type to Registry!"
Local0 = Package (0x02)
{
"plugin-type",
One
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}