From 3cc241dc5a9c67104902fd3833d0583ebd202de2 Mon Sep 17 00:00:00 2001 From: Tyler Nguyen Date: Thu, 5 Nov 2020 20:49:43 -0600 Subject: [PATCH] Issue #90 Fix SSDT-PLUG and rename to SSDT-PM --- EFI-OpenCore/EFI/OC/ACPI/SSDT-PLUG.aml | Bin 126 -> 0 bytes EFI-OpenCore/EFI/OC/ACPI/SSDT-PM.aml | Bin 0 -> 149 bytes EFI-OpenCore/EFI/OC/config.plist | 4 +-- patches/README.md | 2 +- patches/SSDT-PLUG.dsl | 28 --------------------- patches/SSDT-PM.dsl | 33 +++++++++++++++++++++++++ 6 files changed, 36 insertions(+), 31 deletions(-) delete mode 100644 EFI-OpenCore/EFI/OC/ACPI/SSDT-PLUG.aml create mode 100644 EFI-OpenCore/EFI/OC/ACPI/SSDT-PM.aml delete mode 100644 patches/SSDT-PLUG.dsl create mode 100644 patches/SSDT-PM.dsl diff --git a/EFI-OpenCore/EFI/OC/ACPI/SSDT-PLUG.aml b/EFI-OpenCore/EFI/OC/ACPI/SSDT-PLUG.aml deleted file mode 100644 index 1158b604da5ed1835b173d57e6ba17001338178a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 126 zcmWFzb_uCtU|?YKE~(5(Eny{%F)ktQ0UWHNF?#U< zK|o|+z{4Qm!HVFDc(cU21pBfS@P-# Comment - Intel Power Management + System Power Management Enabled Path - SSDT-PLUG.aml + SSDT-PM.aml Comment diff --git a/patches/README.md b/patches/README.md index 6b46d76..5bdbe45 100644 --- a/patches/README.md +++ b/patches/README.md @@ -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. diff --git a/patches/SSDT-PLUG.dsl b/patches/SSDT-PLUG.dsl deleted file mode 100644 index 2253dc5..0000000 --- a/patches/SSDT-PLUG.dsl +++ /dev/null @@ -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) - } - } - } -} \ No newline at end of file diff --git a/patches/SSDT-PM.dsl b/patches/SSDT-PM.dsl new file mode 100644 index 0000000..4b6ad33 --- /dev/null +++ b/patches/SSDT-PM.dsl @@ -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) + } + } +} \ No newline at end of file