Files
Getting-Started-With-ACPI/Universal/awac-methods/manual.html

977 lines
28 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Manual · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../../gitbook/style.css">
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-medium-zoom/plugin.css">
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
<link rel="stylesheet" href="../../styles/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="../nvram.html" />
<link rel="prev" href="prebuilt.html" />
<style>
@media only screen and (max-width: 640px) {
.book-header .hidden-mobile {
display: none;
}
}
</style>
<script>
window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"dortania","repo":"Getting-Started-With-ACPI","type":"star","size":"large"}]};
</script>
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../../">
<a href="../../">
Getting Started With ACPI
</a>
</li>
<li class="chapter " data-level="1.2" data-path="../../ssdt-platform.html">
<a href="../../ssdt-platform.html">
Choosing the SSDTs
</a>
</li>
<li class="header">Methods</li>
<li class="chapter " data-level="2.1" data-path="../../ssdt-methods/ssdt-methods.html">
<a href="../../ssdt-methods/ssdt-methods.html">
How to create SSDTs
</a>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="../../ssdt-methods/ssdt-prebuilt.html">
<a href="../../ssdt-methods/ssdt-prebuilt.html">
SSDTs: Prebuilt
</a>
</li>
<li class="chapter " data-level="2.1.2" data-path="../../ssdt-methods/ssdt-easy.html">
<a href="../../ssdt-methods/ssdt-easy.html">
SSDTs: Easy Way
</a>
</li>
<li class="chapter " data-level="2.1.3" data-path="../../ssdt-methods/ssdt-long.html">
<a href="../../ssdt-methods/ssdt-long.html">
SSDTs: Long Way
</a>
</li>
</ul>
</li>
<li class="header">Manual</li>
<li class="chapter " data-level="3.1" data-path="../../Manual/dump.html">
<a href="../../Manual/dump.html">
Dumping the DSDT
</a>
</li>
<li class="chapter " data-level="3.2" data-path="../../Manual/compile.html">
<a href="../../Manual/compile.html">
Decompiling and Compiling
</a>
</li>
<li class="header">Desktop</li>
<li class="chapter " data-level="4.1" data-path="../../Desktops/desktop-disable.html">
<a href="../../Desktops/desktop-disable.html">
Disabling desktop dGPUs
</a>
</li>
<li class="header">Laptop</li>
<li class="chapter " data-level="5.1" data-path="../../Laptops/backlight.html">
<a href="../../Laptops/backlight.html">
Backlight PNLF
</a>
<ul class="articles">
<li class="chapter " data-level="5.1.1" data-path="../../Laptops/backlight-methods/prebuilt.html">
<a href="../../Laptops/backlight-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="5.1.2" data-path="../../Laptops/backlight-methods/manual.html">
<a href="../../Laptops/backlight-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.2" data-path="../../Laptops/trackpad.html">
<a href="../../Laptops/trackpad.html">
Trackpad GPI0
</a>
<ul class="articles">
<li class="chapter " data-level="5.2.1" data-path="../../Laptops/trackpad-methods/prebuilt.html">
<a href="../../Laptops/trackpad-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="5.2.2" data-path="../../Laptops/trackpad-methods/manual.html">
<a href="../../Laptops/trackpad-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.3" data-path="../../Laptops/laptop-disable.html">
<a href="../../Laptops/laptop-disable.html">
Disabling laptop dGPUs
</a>
</li>
<li class="header">Universal</li>
<li class="chapter " data-level="6.1" data-path="../ec-fix.html">
<a href="../ec-fix.html">
Embedded Controller
</a>
<ul class="articles">
<li class="chapter " data-level="6.1.1" data-path="../ec-methods/prebuilt.html">
<a href="../ec-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.1.2" data-path="../ec-methods/ssdttime.html">
<a href="../ec-methods/ssdttime.html">
SSDTTime
</a>
</li>
<li class="chapter " data-level="6.1.3" data-path="../ec-methods/manual.html">
<a href="../ec-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.2" data-path="../plug.html">
<a href="../plug.html">
CPU Power Management
</a>
<ul class="articles">
<li class="chapter " data-level="6.2.1" data-path="../plug-methods/prebuilt.html">
<a href="../plug-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.2.2" data-path="../plug-methods/ssdttime.html">
<a href="../plug-methods/ssdttime.html">
SSDTTime
</a>
</li>
<li class="chapter " data-level="6.2.3" data-path="../plug-methods/manual.html">
<a href="../plug-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.3" data-path="../awac.html">
<a href="../awac.html">
AWAC vs RTC
</a>
<ul class="articles">
<li class="chapter " data-level="6.3.1" data-path="prebuilt.html">
<a href="prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter active" data-level="6.3.2" data-path="manual.html">
<a href="manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.4" data-path="../nvram.html">
<a href="../nvram.html">
NVRAM PMC
</a>
<ul class="articles">
<li class="chapter " data-level="6.4.1" data-path="../nvram-methods/prebuilt.html">
<a href="../nvram-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.4.2" data-path="../nvram-methods/manual.html">
<a href="../nvram-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.5" data-path="../rhub.html">
<a href="../rhub.html">
USB RHUB
</a>
<ul class="articles">
<li class="chapter " data-level="6.5.1" data-path="../rhub-methods/prebuilt.html">
<a href="../rhub-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.5.2" data-path="../rhub-methods/manual.html">
<a href="../rhub-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.6" data-path="../irq.html">
<a href="../irq.html">
IRQ Fix
</a>
</li>
<li class="chapter " data-level="6.7" data-path="../spoof.html">
<a href="../spoof.html">
GPU Spoof
</a>
</li>
<li class="chapter " data-level="6.8" data-path="../smbus.html">
<a href="../smbus.html">
Fixing SMBus Support
</a>
<ul class="articles">
<li class="chapter " data-level="6.8.1" data-path="../smbus-methods/manual.html">
<a href="../smbus-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="header">Cleanup</li>
<li class="chapter " data-level="7.1" data-path="../../cleanup.html">
<a href="../../cleanup.html">
Cleanup
</a>
</li>
<li class="header">Misc</li>
<li class="chapter " data-level="8.1" data-path="../../troubleshooting.html">
<a href="../../troubleshooting.html">
Troubleshooting
</a>
</li>
<li class="chapter " data-level="8.2" data-path="../../CONTRIBUTING.html">
<a href="../../CONTRIBUTING.html">
Contributing
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="../.." >Manual</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div class="search-plus" id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<html><head></head><body><blockquote>
<p><em>Last modified: Fri Jun 26 2020 02:16:12 GMT+0000 (Coordinated Universal Time)</em></p>
</blockquote>
<h1 id="fixing-system-clocks-manual"><a name="fixing-system-clocks-manual" class="plugin-anchor" href="#fixing-system-clocks-manual"><i class="fa fa-link" aria-hidden="true"></i></a>Fixing System Clocks: Manual</h1>
<ul>
<li><a href="#determining-which-ssdt-you-need">Determining which SSDT you need</a></li>
<li><a href="#rtc0-method">RTC0 Method</a><ul>
<li><a href="#finding-the-acpi-path">Finding the ACPI path</a></li>
<li><a href="#edits-to-the-sample-ssdt">Edits to the sample SSDT</a></li>
<li><a href="#compiling-the-ssdt">Compiling the SSDT</a></li>
</ul>
</li>
<li><a href="#wrapping-up">Wrapping up</a></li>
</ul>
<h2 id="determining-which-ssdt-you-need"><a name="determining-which-ssdt-you-need" class="plugin-anchor" href="#determining-which-ssdt-you-need"><i class="fa fa-link" aria-hidden="true"></i></a>Determining which SSDT you need</h2>
<p>Finding which SSDT you need is quite easy actually, first open your decompiled DSDT you got from <a href="../../Manual/dump.html">Dumping the DSDT</a> and <a href="../../Manual/compile.html">Decompiling and Compiling</a> with either maciASL(if in macOS) or any other text editor if in Windows or Linux(VSCode has an <a href="https://marketplace.visualstudio.com/items?itemName=Thog.vscode-asl" target="_blank">ACPI extension</a> that can also help).</p>
<p>Next search for <code>ACPI000E</code>. You should get something similar:</p>
<p><img src="../../images/Universal/awac-md/ACPI000E.png" alt=""></p>
<p>The above tells us a few things:</p>
<ul>
<li>We in fact do have an AWAC clock<ul>
<li>If nothing shows up, you don&apos;t need to do anything for AWAC or RTC</li>
</ul>
</li>
<li>It can be easily disabled with STAS(if not, you can skip to here: <a href="#rtc0-method">RTC0 Method</a>)<ul>
<li><code>_STA</code> is the device status, with <code>Zero</code> meaning it won&apos;t show up</li>
</ul>
</li>
</ul>
<p>But to double check, next search for <code>PNP0B00</code>:</p>
<p><img src="../../images/Universal/awac-md/PNP0B00.png" alt=""></p>
<p>And looks at that, we can in fact disable our AWAC and enable the RTC! If not skip to here: <a href="#rtc0-method">RTC0 Method</a></p>
<p>Now it&apos;s as simple as grabbing <a href="https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-AWAC.dsl" target="_blank">SSDT-AWAC.dsl</a> and <a href="#compiling-the-ssdt">compile</a>, no changes needed You can also use the below SSDT to the same effect:</p>
<ul>
<li><a href="https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/compiled/SSDT-AWAC.aml" target="_blank">SSDT-AWAC.aml</a></li>
</ul>
<h3 id="ini-edge-cases"><a name="ini-edge-cases" class="plugin-anchor" href="#ini-edge-cases"><i class="fa fa-link" aria-hidden="true"></i></a>_INI Edge Cases</h3>
<p>Mainly seen on X299 refresh boards, there&apos;s already a <code>Scope (_SB) { Method (_INI...</code> in your DSDT. This means our SSDT-AWAC will conflict with the one found in our DSDT. For these situations, you&apos;ll want to remove <code>Method (_INI, 0, NotSerialized) {}</code> from the SSDT. You&apos;ll be left this this in the end:</p>
<pre><code>DefinitionBlock (&quot;&quot;, &quot;SSDT&quot;, 2, &quot;DRTNIA&quot;, &quot;AWAC&quot;, 0x00000000)
{
External (STAS, IntObj)
Scope (_SB)
{
If (_OSI (&quot;Darwin&quot;))
{
STAS = One
}
}
}
</code></pre><h2 id="rtc0-method"><a name="rtc0-method" class="plugin-anchor" href="#rtc0-method"><i class="fa fa-link" aria-hidden="true"></i></a>RTC0 Method</h2>
<p>This method is for those who either don&apos;t have a <code>PNP0B00</code> device to re-enable or have no easy way(via STAS variable).</p>
<h3 id="finding-the-acpi-path"><a name="finding-the-acpi-path" class="plugin-anchor" href="#finding-the-acpi-path"><i class="fa fa-link" aria-hidden="true"></i></a>Finding the ACPI path</h3>
<p>Assuming you&apos;ve gotten your DSDT already opened from earlier, search for the following:</p>
<ul>
<li>Finding the LowPinCount path:<ul>
<li>Search <code>Name (_ADR, 0x001F0000)</code></li>
</ul>
</li>
<li>Finding the PCI path:<ul>
<li>Search <code>PNP0A08</code> (If multiple show up, use the first one)</li>
</ul>
</li>
</ul>
<p>You should get something like the following show up:</p>
<table>
<thead>
<tr>
<th style="text-align:center">LPC Pathing</th>
<th style="text-align:center">PCI Pathing</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center" colspan="2"><img src="../../images/Universal/nvram-md/lpc.png" alt=""></td>
</tr>
</tbody>
</table>
<p>From the above, we can see we have both <code>PCI0</code> and <code>LPC</code>. Now we can head to the next stage</p>
<h3 id="edits-to-the-sample-ssdt"><a name="edits-to-the-sample-ssdt" class="plugin-anchor" href="#edits-to-the-sample-ssdt"><i class="fa fa-link" aria-hidden="true"></i></a>Edits to the sample SSDT</h3>
<p>Now that we have our ACPI path, lets grab our SSDT and get to work:</p>
<ul>
<li><a href="https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-RTC0.dsl" target="_blank">SSDT-RTC0.dsl</a></li>
</ul>
<p>By default, this uses <code>PCI0.LPCB</code> for the pathing. you&apos;ll want to rename accordingly.</p>
<p>Following the example from above, we&apos;ll be renaming it to <code>PCI0.LPC</code>:</p>
<p><strong>Before</strong>:</p>
<pre><code>External (_SB_.PCI0.LPCB, DeviceObj) &lt;- Rename this
Scope (_SB.PCI0.LPCB) &lt;- Rename this
</code></pre><p><img src="../../images/Universal/awac-md/ssdt-before.png" alt=""></p>
<p>Following the example pathing we found, the SSDT should look something like this:</p>
<p><strong>After</strong>:</p>
<pre><code>External (_SB_.PCI0.LPC, DeviceObj) &lt;- Renamed
Scope (_SB.PCI0.LPC) &lt;- Renamed
</code></pre><p><img src="../../images/Universal/awac-md/ssdt-after.png" alt=""></p>
<h3 id="compiling-the-ssdt"><a name="compiling-the-ssdt" class="plugin-anchor" href="#compiling-the-ssdt"><i class="fa fa-link" aria-hidden="true"></i></a>Compiling the SSDT</h3>
<p> With the SSDT done, you&apos;re now <a href="../../Manual/compile.html">ready to compile the SSDT!</a></p>
<h2 id="wrapping-up"><a name="wrapping-up" class="plugin-anchor" href="#wrapping-up"><i class="fa fa-link" aria-hidden="true"></i></a>Wrapping up</h2>
<p>Once you&apos;re done making your SSDT, either head to the next page to finish the rest of the SSDTs or head here if you&apos;re ready to wrap up:</p>
<ul>
<li><a href="../../cleanup.html"><strong>Cleanup</strong></a></li>
</ul>
</body></html>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="prebuilt.html" class="navigation navigation-prev " aria-label="Previous page: Prebuilt">
<i class="fa fa-angle-left"></i>
</a>
<a href="../nvram.html" class="navigation navigation-next " aria-label="Next page: NVRAM PMC">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Manual","level":"6.3.2","depth":2,"next":{"title":"NVRAM PMC","level":"6.4","depth":1,"path":"Universal/nvram.md","ref":"Universal/nvram.md","articles":[{"title":"Prebuilt","level":"6.4.1","depth":2,"path":"Universal/nvram-methods/prebuilt.md","ref":"Universal/nvram-methods/prebuilt.md","articles":[]},{"title":"Manual","level":"6.4.2","depth":2,"path":"Universal/nvram-methods/manual.md","ref":"Universal/nvram-methods/manual.md","articles":[]}]},"previous":{"title":"Prebuilt","level":"6.3.1","depth":2,"path":"Universal/awac-methods/prebuilt.md","ref":"Universal/awac-methods/prebuilt.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-default","-lunr","-search","search-plus","addcssjs","favicon-plus","anchors","github-buttons","last-modified","medium-zoom","table-cell-merge"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"last-modified":{},"output":"_book","intopic-toc":{"label":"Navigation"},"addcssjs":{"css":[],"js":[]},"medium-zoom":{},"table-cell-merge":{},"fontsettings":{"theme":"night","family":"sans","size":2},"favicon-plus":{"appleTouchIconPrecomposed152":"","favicon":"","output":"_book"},"highlight":{},"github-edit":{"repo":"dortania/Getting-Started-With-ACPI","branch":"master"},"favicon":"/icons/favicon.ico","appleTouchIconPrecomposed152":"/icons/appleTouchIconPrecomposed152.png","github-buttons":{"buttons":[{"user":"dortania","repo":"Getting-Started-With-ACPI","type":"star","size":"large"}]},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":[]},"theme-default":{"showLevel":false,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}},"anchors":{},"search-plus":{}},"theme":"default","medium-zoom":{"margin":24,"background":"#363b40","scrollOffset":0},"pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"google":false,"facebook":false,"twitter":false,"weibo":false,"all":false}},"gitbook":"*"},"file":{"path":"Universal/awac-methods/manual.md","mtime":"2020-06-26T02:16:12.171Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-26T02:17:09.496Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
<script src="../../gitbook/gitbook.js"></script>
<script src="../../gitbook/theme.js"></script>
<script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
<script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
<script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-medium-zoom/medium-zoom.min.js"></script>
<script src="../../gitbook/gitbook-plugin-medium-zoom/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>