From a8829eb71e4ff6000f441d9e383606edb4f67c36 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Mon, 4 May 2020 17:15:31 -0600 Subject: [PATCH] Add INI Edge case for X299 --- Universal/awac.md | 22 ++++++++++++++++++++++ Universal/plug.md | 8 ++++++++ extra-files/SSDT-AWAC.aml | Bin 0 -> 73 bytes extra-files/SSDT-PLUG-DRTNIA.aml | Bin 0 -> 693 bytes 4 files changed, 30 insertions(+) create mode 100644 extra-files/SSDT-AWAC.aml create mode 100644 extra-files/SSDT-PLUG-DRTNIA.aml diff --git a/Universal/awac.md b/Universal/awac.md index 5e86c13..d30c3e7 100644 --- a/Universal/awac.md +++ b/Universal/awac.md @@ -42,4 +42,26 @@ By default the SSDT uses `LPCB`, you can check what your system uses by just sea ![](/images/Universal/awac-md/lpc.png) +## _INI Edge Cases + +Mainly seen on X299 refresh boards, there's already a `Scope (_SB) { Method (_INI...` in your DSDT. This means our SSDT-AWAC will conflict with the one found in our DSDT. For these situations, you'll want to remove `Method (_INI, 0, NotSerialized) {}` from the SSDT. You'll be left this this in the end: + +``` +DefinitionBlock ("", "SSDT", 2, "DRTNIA", "AWAC", 0x00000000) +{ + External (STAS, IntObj) + + Scope (_SB) + { + If (_OSI ("Darwin")) + { + STAS = One + } + } +} +``` + +You can find a prebuilt of this here: [SSDT-AWAC.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-AWAC.aml) + + ## [Now you're ready to compile the SSDT!](/Manual/compile.md) diff --git a/Universal/plug.md b/Universal/plug.md index 9c468dd..9f1b827 100644 --- a/Universal/plug.md +++ b/Universal/plug.md @@ -1,5 +1,13 @@ # Fixing Power Management +## Easy Way + +With CPU Power Management, it's a simple as taking [SSDT-PLUG](https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-PLUG.dsl) provided by Acidanthera and compiling it yourself. You can find a prebuilt of the file here: [SSDT-PLUG-DRTNIA.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PLUG-DRTNIA.aml) + +* Note: This file has a bit of extra bloat as it includes checks for all common CPU names, if you wish to clean this up, either remove unused names or follow the guide below. + +## Long Way(For those who want to learn) + CPU naming is fairly easy to figure out as well, open your decompiled DSDT and search for `Processor`. This should give you a result like this: ![](/images/Universal/plug-md/processor.png) diff --git a/extra-files/SSDT-AWAC.aml b/extra-files/SSDT-AWAC.aml new file mode 100644 index 0000000000000000000000000000000000000000..5189bf4d2c072f8fd62d0fd33953e073c0d4598b GIT binary patch literal 73 zcmWFzb_wxhU|?XL1i(2!Jpn<;GEj~_Gsw7LXKw>%pkk1b2oZ<|5v2g%0AH2`oRhN{ zmIyL4GA|JlVB#$RIxaI$x1_Qlm4R`ARkRSoT?`AfC-)(^Ts#8O2%ZRkyi2ez%My^8 z8JStxP_0m3z_dcSP_0lN4y{n1!L&lT2wOqEz@ZgnFffE*TA^GdTY-|ewF1KnSu2Q( z&L6sJ HumvLk?G3yE literal 0 HcmV?d00001