(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{431:function(e,t,o){"use strict";o.r(t);var a=o(25),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"getting-started-with-acpi"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#getting-started-with-acpi"}},[e._v("#")]),e._v(" Getting started with ACPI")]),e._v(" "),o("img",{attrs:{src:"acpi-logo.png",width:"512"}}),e._v(" "),o("h2",{attrs:{id:"a-quick-explainer-on-acpi"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#a-quick-explainer-on-acpi"}},[e._v("#")]),e._v(" A quick explainer on ACPI")]),e._v(" "),o("p",[e._v("So what are DSDTs and SSDTs? Well, these are tables present in your firmware that outline hardware devices like USB controllers, CPU threads, embedded controllers, system clocks and such. A DSDT(Differentiated System Description Table) can be seen as the body holding most of the info with smaller bits of info being passed by the SSDT(Secondary System Description Table). You can think of the DSDT as the building blueprints with SSDTs being sticky notes outlining extra details to the project")]),e._v(" "),o("p",[e._v("You can read more about ACPI and it's spec here: "),o("a",{attrs:{href:"https://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v("ACPI 6.3 Manual"),o("OutboundLink")],1)]),e._v(" "),o("blockquote",[o("p",[e._v("So why do we care about these tables?")])]),e._v(" "),o("p",[e._v("macOS can be very picky about the devices present in the DSDT and so our job is to correct it. The main devices that need to be corrected for macOS to work properly:")]),e._v(" "),o("ul",[o("li",[e._v("Embedded controllers(EC)\n"),o("ul",[o("li",[e._v("All semi-modern intel machines have an EC (usually called H_EC, ECDV, EC0, etc...) exposed in their DSDT, with many AMD systems also having it exposed. These controllers are generally not compatible with macOS and can cause panics, so then need to be hidden from macOS. macOS Catalina requires a device named "),o("code",[e._v("EC")]),e._v(" to be present though, so a dummy EC is created.")]),e._v(" "),o("li",[e._v("With laptops, the actual embedded controller still needs to be enabled for battery and hotkeys to work, and renaming the EC can additionally cause issues with windows, so creating a fake EC without disabling the real embedded controller is preferable.")])])]),e._v(" "),o("li",[e._v("Plugin type\n"),o("ul",[o("li",[e._v("This allows the use of XCPM providing native CPU power management on "),o("strong",[e._v("Intel")]),e._v(" Haswell and newer CPUs, the SSDT will connect to the first thread of the CPU. Not meant for AMD")])])]),e._v(" "),o("li",[e._v("AWAC system clock.\n"),o("ul",[o("li",[e._v("This applies to all 300 series motherboards including many Z370 boards, the specific issue is that newer boards ship with AWAC clock enabled. This is a problem because macOS cannot communicate with AWAC clocks, so this requires us to either force on the legacy RTC clock or if unavailable create a fake one for macOS to play with")])])]),e._v(" "),o("li",[e._v("NVRAM SSDT\n"),o("ul",[o("li",[e._v("True 300 series motherboards(non-Z370) don't declare the FW chip as MMIO in ACPI and so the kernel ignores the MMIO region declared by the UEFI memory map. This SSDT brings back NVRAM support")])])]),e._v(" "),o("li",[e._v("Backlight SSDT\n"),o("ul",[o("li",[e._v("Used for fixing backlight control support on laptops")])])]),e._v(" "),o("li",[e._v("GPIO SSDT\n"),o("ul",[o("li",[e._v("Used for creating a stub to allow VoodooI2C to connect onto, for laptops only")])])]),e._v(" "),o("li",[e._v("XOSI SSDT\n"),o("ul",[o("li",[e._v("Used for rerouting OSI calls to this SSDT, mainly used for tricking our hardware into thinking its booting Windows so we get better trackpad support. This is a very hacky solution known for breaking Windows boot, use the GPIO SSDT instead. Usage of XOSI will not be covered in this guide")])])]),e._v(" "),o("li",[e._v("IRQ SSDT and ACPI patches\n"),o("ul",[o("li",[e._v("Needed for fixing IRQ conflicts within the DSDT, for laptops mainly. SSDTTime exclusive")]),e._v(" "),o("li",[e._v("Note Skylake and newer systems rarely have IRQ conflicts, this is mainly prevalent on Broadwell and older")])])])]),e._v(" "),o("p",[e._v("Now head to the next page on what SSDTs do your systems need:")]),e._v(" "),o("h2",{attrs:{id:"choosing-the-ssdts"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#choosing-the-ssdts"}},[e._v("#")]),e._v(" "),o("RouterLink",{attrs:{to:"/ssdt-platform.html"}},[e._v("Choosing the SSDTs")])],1)])}),[],!1,null,null,null);t.default=s.exports}}]);