diff --git a/Desktops/desktop-disable.md b/Desktops/desktop-disable.md index 8a3963d..4152578 100644 --- a/Desktops/desktop-disable.md +++ b/Desktops/desktop-disable.md @@ -5,7 +5,7 @@ So this is mainly needed for GPUs that are not supported in macOS, mainly this w So to disable a specific GPU, we need to find a couple things: * ACPI Path of the GPU -* [SSDT-GPU-DISABLE](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPU-DISABLE.dsl.zip) +* [SSDT-GPU-DISABLE](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-GPU-DISABLE.dsl.zip) ## Finding the ACPI Path of the GPU @@ -36,7 +36,7 @@ And voila! We've found our ACPI path, now that we have everything we're ready to ## Making the SSDT -To start grab our [SSDT-GPU-DISABLE](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPU-DISABLE.dsl.zip) and open it up. Here there's a couple things to change: +To start grab our [SSDT-GPU-DISABLE](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-GPU-DISABLE.dsl.zip) and open it up. Here there's a couple things to change: ``` External (_SB_.PCI0.PEG0.PEGP, DeviceObj) diff --git a/Laptops/backlight.md b/Laptops/backlight.md index 56b4765..f0ff1bc 100644 --- a/Laptops/backlight.md +++ b/Laptops/backlight.md @@ -4,9 +4,9 @@ So what this SSDT does is create a PNLF device for macOS to play with, specifica No configuration required for most, just drop the pre-built file into your EFI: -* [SSDT-PNLF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml) +* [SSDT-PNLF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PNLF.aml) * For most users -* [SSDT-PNLF-CFL](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF-CFL.aml) +* [SSDT-PNLF-CFL](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PNLF-CFL.aml) * For Coffee Lake and newer Note: there are some rare cases where the iGPU is called `GPU0` or `VID`in the DSDT, you can double check by searching for `PCI0.GFX0`, `PCI0.VID` and `PCI0.GPU0`. Whichever shows up is your device diff --git a/Laptops/laptop-disable.md b/Laptops/laptop-disable.md index e79e684..03b295d 100644 --- a/Laptops/laptop-disable.md +++ b/Laptops/laptop-disable.md @@ -11,7 +11,7 @@ Note that this is not needed for install, but recommended for post-install How this works is that we call the `.off` method found on Optimus GPUs, this is the expected way to power off a GPU but some may find their dGPU will power back up later on. Mainly seen in Lenovo's, the Optimus method should work for most users: -To start, grab [SSDT-dGPU-Off.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-dGPU-Off.dsl.zip) +To start, grab [SSDT-dGPU-Off.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-dGPU-Off.dsl.zip) Next we need to get on Windows, and head to the following: @@ -46,7 +46,7 @@ Once adapted to your config, head to the compile section With some machines, the simple `.off` call won't keep the card off properly, that's where the Bumblebee method comes in. This SSDT will actually send the dGPU into D3 state being the lowest power state a device can support. Credit to Mameo for the original adaptation. -To start, grab [SSDT-NoHybGfx.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-NoHybGfx.dsl.zip) +To start, grab [SSDT-NoHybGfx.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-NoHybGfx.dsl.zip) Next we need to get on Windows, and head to the following: diff --git a/Laptops/trackpad.md b/Laptops/trackpad.md index 1c2d8cf..6bfd229 100644 --- a/Laptops/trackpad.md +++ b/Laptops/trackpad.md @@ -28,7 +28,7 @@ What we want is for this to always return `0x0F` when booting macOS, so we want **NOTE that you may have the other way around where GPHD needs to be set as `One` to return `0x0F`**. And your device name may also be different, don't throw random SSDTs in thinking it'll work -Once you found the variable and what it should be set to, grab a copy of [SSDT-GPI0.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPI0.dsl) and make the required edits. Then clean up with compiling it +Once you found the variable and what it should be set to, grab a copy of [SSDT-GPI0.dsl](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-GPI0.dsl) and make the required edits. Then clean up with compiling it ## More examples @@ -57,7 +57,7 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "GPI0", 0) So if you're still having issues enabling your trackpad in macOS, you can try removing SSDT-GPIO and instead swap for the following. Note that using these 2 will most likely break Windows and Linux so only use XOSI when troubleshooting: -* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) +* [SSDT-XOSI](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-XOSI.aml) * XOSI Rename: @@ -65,6 +65,6 @@ So if you're still having issues enabling your trackpad in macOS, you can try re | :--- | :--- | :--- | | Enabled | Boolean | YES | | Count | Number | 0 | -| Limit | Nuber | 0 | +| Limit | Number | 0 | | Find | Data | 5f4f5349 | | Replace | Data | 584f5349 | diff --git a/Universal/awac.md b/Universal/awac.md index 2241902..cb53b9f 100644 --- a/Universal/awac.md +++ b/Universal/awac.md @@ -63,6 +63,6 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "AWAC", 0x00000000) } ``` -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) +You can find a prebuilt of this here: [SSDT-AWAC.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-AWAC.aml) ## [Now you're ready to compile the SSDT!](/Manual/compile.md) diff --git a/Universal/ec-fix.md b/Universal/ec-fix.md index c695b1d..e4a202d 100644 --- a/Universal/ec-fix.md +++ b/Universal/ec-fix.md @@ -9,16 +9,16 @@ What quick fix refers to is a fancy little SSDT that actually determines what EC For desktops, you can grab either one of these pre-compiled SSDT files: -* [SSDT-EC-USBX-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-USBX-DESKTOP.aml) +* [SSDT-EC-USBX-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-USBX-DESKTOP.aml) * For Skylake and newer and all AMD systems -* [SSDT-EC-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-DESKTOP.aml) +* [SSDT-EC-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-DESKTOP.aml) * For Broadwell and older For laptops, you'll can use one of these pre-builts: -* [SSDT-EC-USBX-LAPTOP.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-USBX-LAPTOP.aml) +* [SSDT-EC-USBX-LAPTOP.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-USBX-LAPTOP.aml) * For Skylake and newer -* [SSDT-EC-LAPTOP.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-LAPTOP.aml) +* [SSDT-EC-LAPTOP.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-LAPTOP.aml) * For Broadwell and older ## Proper Fix diff --git a/Universal/nvram.md b/Universal/nvram.md index cdc89cc..3aaebcc 100644 --- a/Universal/nvram.md +++ b/Universal/nvram.md @@ -19,6 +19,6 @@ By default it uses `PCI0.LPCB` for the PCI and LowPinCount path. The device name ![](/images/Universal/nvram-md/lpc.png) -A pre-built can be found here if you have issues: [SSDT-PMC.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PMC.aml) +A pre-built can be found here if you have issues: [SSDT-PMC.aml](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PMC.aml) ## [Now you're ready to compile the SSDT!](/Manual/compile.md) diff --git a/Universal/plug.md b/Universal/plug.md index 9f1b827..b0916f7 100644 --- a/Universal/plug.md +++ b/Universal/plug.md @@ -2,7 +2,7 @@ ## 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) +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/compiled/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. @@ -12,7 +12,7 @@ CPU naming is fairly easy to figure out as well, open your decompiled DSDT and s ![](/images/Universal/plug-md/processor.png) -As we can see, the first processor in our list is `PR00`. This is what we'll be applying the `plugin-type=1` property too. Now grab [SSDT-PLUG](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PLUG.dsl.zip) and replace the default `CPU0` with our `PR00`. There's a couple things to note: +As we can see, the first processor in our list is `PR00`. This is what we'll be applying the `plugin-type=1` property too. Now grab [SSDT-PLUG](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-PLUG.dsl.zip) and replace the default `CPU0` with our `PR00`. There's a couple things to note: * There's 2 mentions of CPU0 to change * The `PR` path may need to be changed, in our example we can see that our `PR00` has `SB` in front. diff --git a/Universal/spoof.md b/Universal/spoof.md index 1e85bfd..5535697 100644 --- a/Universal/spoof.md +++ b/Universal/spoof.md @@ -15,7 +15,7 @@ So to spoof the GPU, we need to find a couple things: * Suitable PCI ID for the GPU * ACPI Path of the GPU -* [SSDT-GPU-SPOOF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPU-SPOOF.dsl.zip) +* [SSDT-GPU-SPOOF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-GPU-SPOOF.dsl.zip) ## Finding a suitable PCI ID @@ -73,7 +73,7 @@ And voila! We've found our ACPI path, now that we have everything we're ready to ## Making the SSDT -To start grab our [SSDT-GPU-SPOOF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-GPU-SPOOF.dsl.zip) and open it up. Here there's a couple things to change: +To start grab our [SSDT-GPU-SPOOF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-GPU-SPOOF.dsl.zip) and open it up. Here there's a couple things to change: ``` External (_SB_.PCI0, DeviceObj) diff --git a/extra-files/SSDT-AWAC.aml b/extra-files/compiled/SSDT-AWAC.aml similarity index 100% rename from extra-files/SSDT-AWAC.aml rename to extra-files/compiled/SSDT-AWAC.aml diff --git a/extra-files/SSDT-EC-DESKTOP.aml b/extra-files/compiled/SSDT-EC-DESKTOP.aml similarity index 100% rename from extra-files/SSDT-EC-DESKTOP.aml rename to extra-files/compiled/SSDT-EC-DESKTOP.aml diff --git a/extra-files/SSDT-EC-LAPTOP.aml b/extra-files/compiled/SSDT-EC-LAPTOP.aml similarity index 100% rename from extra-files/SSDT-EC-LAPTOP.aml rename to extra-files/compiled/SSDT-EC-LAPTOP.aml diff --git a/extra-files/SSDT-EC-USBX-DESKTOP.aml b/extra-files/compiled/SSDT-EC-USBX-DESKTOP.aml similarity index 100% rename from extra-files/SSDT-EC-USBX-DESKTOP.aml rename to extra-files/compiled/SSDT-EC-USBX-DESKTOP.aml diff --git a/extra-files/SSDT-EC-USBX-LAPTOP.aml b/extra-files/compiled/SSDT-EC-USBX-LAPTOP.aml similarity index 100% rename from extra-files/SSDT-EC-USBX-LAPTOP.aml rename to extra-files/compiled/SSDT-EC-USBX-LAPTOP.aml diff --git a/extra-files/SSDT-PLUG-DRTNIA.aml b/extra-files/compiled/SSDT-PLUG-DRTNIA.aml similarity index 100% rename from extra-files/SSDT-PLUG-DRTNIA.aml rename to extra-files/compiled/SSDT-PLUG-DRTNIA.aml diff --git a/extra-files/SSDT-PMC.aml b/extra-files/compiled/SSDT-PMC.aml similarity index 100% rename from extra-files/SSDT-PMC.aml rename to extra-files/compiled/SSDT-PMC.aml diff --git a/extra-files/SSDT-PNLF-CFL.aml b/extra-files/compiled/SSDT-PNLF-CFL.aml similarity index 100% rename from extra-files/SSDT-PNLF-CFL.aml rename to extra-files/compiled/SSDT-PNLF-CFL.aml diff --git a/extra-files/SSDT-PNLF.aml b/extra-files/compiled/SSDT-PNLF.aml similarity index 100% rename from extra-files/SSDT-PNLF.aml rename to extra-files/compiled/SSDT-PNLF.aml diff --git a/extra-files/compiled/SSDT-XOSI.aml b/extra-files/compiled/SSDT-XOSI.aml new file mode 100644 index 0000000..a6458fb Binary files /dev/null and b/extra-files/compiled/SSDT-XOSI.aml differ diff --git a/extra-files/decompiled/SSDT-AWAC.dsl b/extra-files/decompiled/SSDT-AWAC.dsl new file mode 100644 index 0000000..3b0b750 --- /dev/null +++ b/extra-files/decompiled/SSDT-AWAC.dsl @@ -0,0 +1,16 @@ +/* + * Forces enables legacy RTC clock, also gets arond INI conflict found on X299X boards + */ +DefinitionBlock ("", "SSDT", 2, "DRTNIA", "AWAC", 0x00000000) +{ + External (STAS, IntObj) + + Scope (_SB) + { + If (_OSI ("Darwin")) + { + STAS = One + } + } +} + diff --git a/extra-files/SSDT-EC-DESKTOP.dsl b/extra-files/decompiled/SSDT-EC-DESKTOP.dsl similarity index 100% rename from extra-files/SSDT-EC-DESKTOP.dsl rename to extra-files/decompiled/SSDT-EC-DESKTOP.dsl diff --git a/extra-files/SSDT-EC-LAPTOP.dsl b/extra-files/decompiled/SSDT-EC-LAPTOP.dsl similarity index 100% rename from extra-files/SSDT-EC-LAPTOP.dsl rename to extra-files/decompiled/SSDT-EC-LAPTOP.dsl diff --git a/extra-files/SSDT-EC-USBX-DESKTOP.dsl b/extra-files/decompiled/SSDT-EC-USBX-DESKTOP.dsl similarity index 100% rename from extra-files/SSDT-EC-USBX-DESKTOP.dsl rename to extra-files/decompiled/SSDT-EC-USBX-DESKTOP.dsl diff --git a/extra-files/SSDT-EC-USBX-LAPTOP.dsl b/extra-files/decompiled/SSDT-EC-USBX-LAPTOP.dsl similarity index 100% rename from extra-files/SSDT-EC-USBX-LAPTOP.dsl rename to extra-files/decompiled/SSDT-EC-USBX-LAPTOP.dsl diff --git a/extra-files/SSDT-GPI0.dsl b/extra-files/decompiled/SSDT-GPI0.dsl similarity index 100% rename from extra-files/SSDT-GPI0.dsl rename to extra-files/decompiled/SSDT-GPI0.dsl diff --git a/extra-files/SSDT-GPI0.dsl.zip b/extra-files/decompiled/SSDT-GPI0.dsl.zip similarity index 100% rename from extra-files/SSDT-GPI0.dsl.zip rename to extra-files/decompiled/SSDT-GPI0.dsl.zip diff --git a/extra-files/SSDT-GPU-DISABLE.dsl b/extra-files/decompiled/SSDT-GPU-DISABLE.dsl similarity index 100% rename from extra-files/SSDT-GPU-DISABLE.dsl rename to extra-files/decompiled/SSDT-GPU-DISABLE.dsl diff --git a/extra-files/SSDT-GPU-DISABLE.dsl.zip b/extra-files/decompiled/SSDT-GPU-DISABLE.dsl.zip similarity index 100% rename from extra-files/SSDT-GPU-DISABLE.dsl.zip rename to extra-files/decompiled/SSDT-GPU-DISABLE.dsl.zip diff --git a/extra-files/SSDT-GPU-SPOOF.dsl b/extra-files/decompiled/SSDT-GPU-SPOOF.dsl similarity index 100% rename from extra-files/SSDT-GPU-SPOOF.dsl rename to extra-files/decompiled/SSDT-GPU-SPOOF.dsl diff --git a/extra-files/SSDT-GPU-SPOOF.dsl.zip b/extra-files/decompiled/SSDT-GPU-SPOOF.dsl.zip similarity index 100% rename from extra-files/SSDT-GPU-SPOOF.dsl.zip rename to extra-files/decompiled/SSDT-GPU-SPOOF.dsl.zip diff --git a/extra-files/SSDT-NoHybGfx.dsl b/extra-files/decompiled/SSDT-NoHybGfx.dsl similarity index 100% rename from extra-files/SSDT-NoHybGfx.dsl rename to extra-files/decompiled/SSDT-NoHybGfx.dsl diff --git a/extra-files/SSDT-NoHybGfx.dsl.zip b/extra-files/decompiled/SSDT-NoHybGfx.dsl.zip similarity index 100% rename from extra-files/SSDT-NoHybGfx.dsl.zip rename to extra-files/decompiled/SSDT-NoHybGfx.dsl.zip diff --git a/extra-files/decompiled/SSDT-PLUG-DRTNIA.dsl b/extra-files/decompiled/SSDT-PLUG-DRTNIA.dsl new file mode 100644 index 0000000..76de2d4 --- /dev/null +++ b/extra-files/decompiled/SSDT-PLUG-DRTNIA.dsl @@ -0,0 +1,197 @@ +/* + * Intel ACPI Component Architecture + * AML/ASL+ Disassembler version 20200214 (64-bit version) + * Copyright (c) 2000 - 2020 Intel Corporation + * + * Disassembling to symbolic ASL+ operators + * + * Disassembly of /Users/mykolagrymalyuk/Documents/GitHub/Getting-Started-With-ACPI/extra-files/compiled/SSDT-PLUG-DRTNIA.aml, Thu May 28 18:59:18 2020 + * + * Original Table Header: + * Signature "SSDT" + * Length 0x000002B5 (693) + * Revision 0x02 + * Checksum 0xDD + * OEM ID "DRTNIA" + * OEM Table ID "CpuPlug" + * OEM Revision 0x00003000 (12288) + * Compiler ID "INTL" + * Compiler Version 0x20190509 (538510601) + */ +DefinitionBlock ("", "SSDT", 2, "DRTNIA", "CpuPlug", 0x00003000) +{ + External (_PR_.C000, ProcessorObj) + External (_PR_.CPU0, ProcessorObj) + External (_PR_.P000, ProcessorObj) + External (_PR_.PR00, ProcessorObj) + External (_SB_.CPU0, ProcessorObj) + External (_SB_.PC00.LPC0, DeviceObj) + External (_SB_.PC00.LPC0.EC0_, DeviceObj) + External (_SB_.PC00.LPC0.EC__, DeviceObj) + External (_SB_.PC00.LPC0.ECDV, DeviceObj) + External (_SB_.PC00.LPC0.H_EC, DeviceObj) + External (_SB_.PC00.LPC0.PGEC, DeviceObj) + External (_SB_.PCI0.LPC0, DeviceObj) + External (_SB_.PCI0.LPC0.EC0_, DeviceObj) + External (_SB_.PCI0.LPC0.EC__, DeviceObj) + External (_SB_.PCI0.LPC0.ECDV, DeviceObj) + External (_SB_.PCI0.LPC0.H_EC, DeviceObj) + External (_SB_.PCI0.LPC0.PGEC, DeviceObj) + External (_SB_.PCI0.LPC_, DeviceObj) + External (_SB_.PCI0.LPC_.EC0_, DeviceObj) + External (_SB_.PCI0.LPC_.EC__, DeviceObj) + External (_SB_.PCI0.LPC_.ECDV, DeviceObj) + External (_SB_.PCI0.LPC_.H_EC, DeviceObj) + External (_SB_.PCI0.LPC_.PGEC, DeviceObj) + External (_SB_.PCI0.LPCB, DeviceObj) + External (_SB_.PCI0.LPCB.EC0_, DeviceObj) + External (_SB_.PCI0.LPCB.EC__, DeviceObj) + External (_SB_.PCI0.LPCB.ECDV, DeviceObj) + External (_SB_.PCI0.LPCB.H_EC, DeviceObj) + External (_SB_.PCI0.LPCB.PGEC, DeviceObj) + External (_SB_.PCI0.PX40, DeviceObj) + External (_SB_.PCI0.PX40.EC0_, DeviceObj) + External (_SB_.PCI0.PX40.EC__, DeviceObj) + External (_SB_.PCI0.PX40.ECDV, DeviceObj) + External (_SB_.PCI0.PX40.H_EC, DeviceObj) + External (_SB_.PCI0.PX40.PGEC, DeviceObj) + External (_SB_.PCI0.SBRG, DeviceObj) + External (_SB_.PCI0.SBRG.EC0_, DeviceObj) + External (_SB_.PCI0.SBRG.EC__, DeviceObj) + External (_SB_.PCI0.SBRG.ECDV, DeviceObj) + External (_SB_.PCI0.SBRG.H_EC, DeviceObj) + External (_SB_.PCI0.SBRG.PGEC, DeviceObj) + External (_SB_.PR00, ProcessorObj) + External (_SB_.SCK0.CP00, ProcessorObj) + External (_SB_.SCK0.PR00, ProcessorObj) + + Method (PMPM, 4, NotSerialized) + { + If ((Arg2 == Zero)) + { + Return (Buffer (One) + { + 0x03 // . + }) + } + + Return (Package (0x02) + { + "plugin-type", + One + }) + } + + If (CondRefOf (\_SB.CPU0)) + { + If ((ObjectType (\_SB.CPU0) == 0x0C)) + { + Scope (\_SB.CPU0) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_PR.CPU0)) + { + If ((ObjectType (\_PR.CPU0) == 0x0C)) + { + Scope (\_PR.CPU0) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_SB.PR00)) + { + If ((ObjectType (\_SB.PR00) == 0x0C)) + { + Scope (\_SB.PR00) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_PR.C000)) + { + If ((ObjectType (\_PR.C000) == 0x0C)) + { + Scope (\_PR.C000) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_PR.P000)) + { + If ((ObjectType (\_PR.P000) == 0x0C)) + { + Scope (\_PR.P000) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_PR.PR00)) + { + If ((ObjectType (\_PR.PR00) == 0x0C)) + { + Scope (\_PR.PR00) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_SB.SCK0.CP00)) + { + If ((ObjectType (\_SB.SCK0.CP00) == 0x0C)) + { + Scope (\_SB.SCK0.CP00) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } + + If (CondRefOf (\_SB.SCK0.PR00)) + { + If ((ObjectType (\_SB.SCK0.PR00) == 0x0C)) + { + Scope (\_SB.SCK0.PR00) + { + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method + { + Return (PMPM (Arg0, Arg1, Arg2, Arg3)) + } + } + } + } +} + diff --git a/extra-files/SSDT-PLUG.dsl b/extra-files/decompiled/SSDT-PLUG.dsl similarity index 100% rename from extra-files/SSDT-PLUG.dsl rename to extra-files/decompiled/SSDT-PLUG.dsl diff --git a/extra-files/SSDT-PLUG.dsl.zip b/extra-files/decompiled/SSDT-PLUG.dsl.zip similarity index 100% rename from extra-files/SSDT-PLUG.dsl.zip rename to extra-files/decompiled/SSDT-PLUG.dsl.zip diff --git a/extra-files/SSDT-PMC.dsl b/extra-files/decompiled/SSDT-PMC.dsl similarity index 100% rename from extra-files/SSDT-PMC.dsl rename to extra-files/decompiled/SSDT-PMC.dsl diff --git a/extra-files/decompiled/SSDT-PNLF-CFL.dsl b/extra-files/decompiled/SSDT-PNLF-CFL.dsl new file mode 100644 index 0000000..9cd4eb3 --- /dev/null +++ b/extra-files/decompiled/SSDT-PNLF-CFL.dsl @@ -0,0 +1,34 @@ +/* + * Intel ACPI Component Architecture + * AML/ASL+ Disassembler version 20200214 (64-bit version) + * Copyright (c) 2000 - 2020 Intel Corporation + * + * Disassembling to symbolic ASL+ operators + * + * Disassembly of /Users/mykolagrymalyuk/Documents/GitHub/Getting-Started-With-ACPI/extra-files/compiled/SSDT-PNLF-CFL.aml, Thu May 28 18:59:18 2020 + * + * Original Table Header: + * Signature "SSDT" + * Length 0x0000007D (125) + * Revision 0x02 + * Checksum 0x84 + * OEM ID "ACDT" + * OEM Table ID "PNLFCFL" + * OEM Revision 0x00000000 (0) + * Compiler ID "INTL" + * Compiler Version 0x20190509 (538510601) + */ +DefinitionBlock ("", "SSDT", 2, "ACDT", "PNLFCFL", 0x00000000) +{ + External (_SB_.PCI0.GFX0, DeviceObj) + + Device (_SB.PCI0.GFX0.PNLF) + { + Name (_ADR, Zero) // _ADR: Address + Name (_HID, EisaId ("APP0002")) // _HID: Hardware ID + Name (_CID, "backlight") // _CID: Compatible ID + Name (_UID, 0x13) // _UID: Unique ID + Name (_STA, 0x0B) // _STA: Status + } +} + diff --git a/extra-files/decompiled/SSDT-XOSI.dsl b/extra-files/decompiled/SSDT-XOSI.dsl new file mode 100644 index 0000000..e8a4a0b --- /dev/null +++ b/extra-files/decompiled/SSDT-XOSI.dsl @@ -0,0 +1,51 @@ +/* + * Intel ACPI Component Architecture + * AML/ASL+ Disassembler version 20190509 (64-bit version) + * Copyright (c) 2000 - 2019 Intel Corporation + * + * Disassembling to symbolic ASL+ operators + * + * Disassembly of iASLYWTc6v.aml, Thu May 28 19:06:11 2020 + * + * Original Table Header: + * Signature "SSDT" + * Length 0x00000143 (323) + * Revision 0x02 + * Checksum 0x6C + * OEM ID "DRTNIA" + * OEM Table ID "XOSI" + * OEM Revision 0x00001000 (4096) + * Compiler ID "INTL" + * Compiler Version 0x20190509 (538510601) + */ +DefinitionBlock ("", "SSDT", 2, "DRTNIA", "XOSI", 0x00001000) +{ + Method (XOSI, 1, NotSerialized) + { + Local0 = Package (0x11) + { + "Windows 2001", + "Windows 2001.1", + "Windows 2001 SP1", + "Windows 2001 SP2", + "Windows 2001 SP3", + "Windows 2006", + "Windows 2006 SP1", + "Windows 2009", + "Windows 2012", + "Windows 2013", + "Microsoft Windows NT", + "Microsoft Windows", + "Microsoft WindowsME: Millennium Edition" + } + If (_OSI ("Darwin")) + { + Return ((Ones != Match (Local0, MEQ, Arg0, MTR, Zero, Zero))) + } + Else + { + Return (_OSI (Arg0)) + } + } +} + diff --git a/extra-files/SSDT-dGPU-Off.dsl b/extra-files/decompiled/SSDT-dGPU-Off.dsl similarity index 100% rename from extra-files/SSDT-dGPU-Off.dsl rename to extra-files/decompiled/SSDT-dGPU-Off.dsl diff --git a/extra-files/SSDT-dGPU-Off.dsl.zip b/extra-files/decompiled/SSDT-dGPU-Off.dsl.zip similarity index 100% rename from extra-files/SSDT-dGPU-Off.dsl.zip rename to extra-files/decompiled/SSDT-dGPU-Off.dsl.zip diff --git a/ssdt-methods/ssdt-prebuilt.md b/ssdt-methods/ssdt-prebuilt.md index 1bf7c33..6f8d545 100644 --- a/ssdt-methods/ssdt-prebuilt.md +++ b/ssdt-methods/ssdt-prebuilt.md @@ -24,7 +24,7 @@ Please refer to [Choosing the SSDTs](/ssdt-platform.md) page for which your syst For Haswell and newer: -* [SSDT-PLUG-DRTNIA](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PLUG-DRTNIA.aml) +* [SSDT-PLUG-DRTNIA](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PLUG-DRTNIA.aml) For Ivy Bridge and older, see the [Optimizing Power Management page](https://dortania.github.io/OpenCore-Desktop-Guide/post-install/pm.html). This will be done *after* install. AMD CPU users **do not** need any SSDTs for power management. @@ -32,23 +32,23 @@ For Ivy Bridge and older, see the [Optimizing Power Management page](https://dor For desktops: -* [SSDT-EC-USBX-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-USBX-DESKTOP.aml) +* [SSDT-EC-USBX-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-USBX-DESKTOP.aml) * For Skylake and newer and all AMD systems. -* [SSDT-EC-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-DESKTOP.aml) +* [SSDT-EC-DESKTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-DESKTOP.aml) * For Broadwell and older. For laptops: -* [SSDT-EC-USBX-LAPTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-USBX-LAPTOP.aml) +* [SSDT-EC-USBX-LAPTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-USBX-LAPTOP.aml) * For Skylake and newer. -* [SSDT-EC-LAPTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-EC-LAPTOP.aml) +* [SSDT-EC-LAPTOP](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-EC-LAPTOP.aml) * For Broadwell and older. ## Trackpad Used for enabling Windows only features in macOS, do note that the below patches will more than likely break Windows booting via OpenCore. I **highly** encourage you to make one yourself to prevent any issues down the line: [Trackpad GPI0](/Laptops/trackpad.md) -* [SSDT-XOSI](https://github.com/hackintosh-guides/vanilla-laptop-guide/tree/master/Misc-files/SSDT-XOSI.aml) +* [SSDT-XOSI](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-XOSI.aml) * [XOSI-Rename.plist](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/XOSI-Rename.plist) * Note you'll need to add this into your config.plist under `ACPI -> Patch`: @@ -57,7 +57,7 @@ Used for enabling Windows only features in macOS, do note that the below patches | :--- | :--- | :--- | | Enabled | Boolean | YES | | Count | Number | 0 | -| Limit | Nuber | 0 | +| Limit | Number | 0 | | Find | Data | 5f4f5349 | | Replace | Data | 584f5349 | @@ -65,16 +65,16 @@ Used for enabling Windows only features in macOS, do note that the below patches For laptops and all-in-one desktops, fixies brightness control support -* [SSDT-PNLF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF.aml) +* [SSDT-PNLF](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PNLF.aml) * For most users. -* [SSDT-PNLF-CFL](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PNLF-CFL.aml) +* [SSDT-PNLF-CFL](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PNLF-CFL.aml) * For Coffee Lake and newer. ## System Clock(AWAC) Mainly needed for newer systems running AWAC based system clocks, mainly relavant for Z390 and newer(Gigabyte and AsRock however did backport it to Z370 with a BIOS update) -* [SSDT-AWAC](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-AWAC.aml) +* [SSDT-AWAC](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-AWAC.aml) The biggest issue with this prebuilt is that we're just guessing you both have an AWAC clock and that it can be turned off, I **highly** encourage you to make one yourself to really know whether you both need this and if it's going to work: [AWAC vs RTC](/Universal/awac.md) @@ -82,7 +82,7 @@ The biggest issue with this prebuilt is that we're just guessing you both have a Needed to bring back NVRAM support for Z390 and newer, **DO NOT USE ON Z370 or older** -* [SSDT-PMC](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/SSDT-PMC.aml) +* [SSDT-PMC](https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-PMC.aml) Reminder only the following need this SSDT: