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:
parent
ea890a462b
commit
3cc241dc5a
6 changed files with 36 additions and 31 deletions
Binary file not shown.
BIN
EFI-OpenCore/EFI/OC/ACPI/SSDT-PM.aml
Normal file
BIN
EFI-OpenCore/EFI/OC/ACPI/SSDT-PM.aml
Normal file
Binary file not shown.
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
33
patches/SSDT-PM.dsl
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue