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

891 lines
24 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="../irq.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">
Plugin type
</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="../awac-methods/prebuilt.html">
<a href="../awac-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.3.2" data-path="../awac-methods/manual.html">
<a href="../awac-methods/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="prebuilt.html">
<a href="prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter active" data-level="6.4.2" data-path="manual.html">
<a href="manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.5" data-path="../irq.html">
<a href="../irq.html">
IRQ Fix
</a>
</li>
<li class="chapter " data-level="6.6" data-path="../spoof.html">
<a href="../spoof.html">
GPU Spoof
</a>
</li>
<li class="chapter " data-level="6.7" data-path="../smbus.html">
<a href="../smbus.html">
Fixing SMBus Support
</a>
<ul class="articles">
<li class="chapter " data-level="6.7.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">
<blockquote>
<p><em>Last modified: Sun May 31 2020 05:55:38 GMT+0000 (Coordinated Universal Time)</em></p>
</blockquote>
<h1 id="fixing-nvram-manual"><a name="fixing-nvram-manual" class="plugin-anchor" href="#fixing-nvram-manual"><i class="fa fa-link" aria-hidden="true"></i></a>Fixing NVRAM: Manual</h1>
<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>
<li><a href="#wrapping-up">Wrapping up</a></li>
</ul>
<h2 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</h2>
<p>Finding the ACPI pathing 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 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"><img src="../../images/Universal/nvram-md/lpc.png" alt=""></td>
<td style="text-align:center"><img src="../../images/Universal/nvram-md/pci0.png" alt=""></td>
</tr>
</tbody>
</table>
<p>Now with the pathing, you can head here: <a href="#edits-to-the-sample-ssdt">Edits to the sample SSDT</a></p>
<h2 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</h2>
<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-PMC.dsl" target="_blank">SSDT-PMC.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/nvram-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/nvram-md/ssdt-after.png" alt=""></p>
<h2 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</h2>
<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 warp up:</p>
<ul>
<li><a href="../../cleanup.html"><strong>Cleanup</strong></a></li>
</ul>
</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="../irq.html" class="navigation navigation-next " aria-label="Next page: IRQ Fix">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Manual","level":"6.4.2","depth":2,"next":{"title":"IRQ Fix","level":"6.5","depth":1,"path":"Universal/irq.md","ref":"Universal/irq.md","articles":[]},"previous":{"title":"Prebuilt","level":"6.4.1","depth":2,"path":"Universal/nvram-methods/prebuilt.md","ref":"Universal/nvram-methods/prebuilt.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-default","-lunr","-search","search-plus","addcssjs","favicon-plus","anchors","github-buttons","last-modified","medium-zoom"],"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":{},"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/nvram-methods/manual.md","mtime":"2020-05-31T05:55:38.188Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-05-31T05:56:32.982Z"},"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>