Files
Getting-Started-With-ACPI/Laptops/laptop-disable.html

945 lines
27 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Disabling laptop dGPUs · 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="../Universal/ec-fix.html" />
<link rel="prev" href="trackpad-methods/manual.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="backlight.html">
<a href="backlight.html">
Backlight PNLF
</a>
<ul class="articles">
<li class="chapter " data-level="5.1.1" data-path="backlight-methods/prebuilt.html">
<a href="backlight-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="5.1.2" data-path="backlight-methods/manual.html">
<a href="backlight-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.2" data-path="trackpad.html">
<a href="trackpad.html">
Trackpad GPI0
</a>
<ul class="articles">
<li class="chapter " data-level="5.2.1" data-path="trackpad-methods/prebuilt.html">
<a href="trackpad-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="5.2.2" data-path="trackpad-methods/manual.html">
<a href="trackpad-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter active" data-level="5.3" data-path="laptop-disable.html">
<a href="laptop-disable.html">
Disabling laptop dGPUs
</a>
</li>
<li class="header">Universal</li>
<li class="chapter " data-level="6.1" data-path="../Universal/ec-fix.html">
<a href="../Universal/ec-fix.html">
Embedded Controller
</a>
<ul class="articles">
<li class="chapter " data-level="6.1.1" data-path="../Universal/ec-methods/prebuilt.html">
<a href="../Universal/ec-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.1.2" data-path="../Universal/ec-methods/ssdttime.html">
<a href="../Universal/ec-methods/ssdttime.html">
SSDTTime
</a>
</li>
<li class="chapter " data-level="6.1.3" data-path="../Universal/ec-methods/manual.html">
<a href="../Universal/ec-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.2" data-path="../Universal/plug.html">
<a href="../Universal/plug.html">
CPU Power Management
</a>
<ul class="articles">
<li class="chapter " data-level="6.2.1" data-path="../Universal/plug-methods/prebuilt.html">
<a href="../Universal/plug-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.2.2" data-path="../Universal/plug-methods/ssdttime.html">
<a href="../Universal/plug-methods/ssdttime.html">
SSDTTime
</a>
</li>
<li class="chapter " data-level="6.2.3" data-path="../Universal/plug-methods/manual.html">
<a href="../Universal/plug-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.3" data-path="../Universal/awac.html">
<a href="../Universal/awac.html">
AWAC vs RTC
</a>
<ul class="articles">
<li class="chapter " data-level="6.3.1" data-path="../Universal/awac-methods/prebuilt.html">
<a href="../Universal/awac-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.3.2" data-path="../Universal/awac-methods/manual.html">
<a href="../Universal/awac-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.4" data-path="../Universal/nvram.html">
<a href="../Universal/nvram.html">
NVRAM PMC
</a>
<ul class="articles">
<li class="chapter " data-level="6.4.1" data-path="../Universal/nvram-methods/prebuilt.html">
<a href="../Universal/nvram-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.4.2" data-path="../Universal/nvram-methods/manual.html">
<a href="../Universal/nvram-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.5" data-path="../Universal/rhub.html">
<a href="../Universal/rhub.html">
USB RHUB
</a>
<ul class="articles">
<li class="chapter " data-level="6.5.1" data-path="../Universal/rhub-methods/prebuilt.html">
<a href="../Universal/rhub-methods/prebuilt.html">
Prebuilt
</a>
</li>
<li class="chapter " data-level="6.5.2" data-path="../Universal/rhub-methods/manual.html">
<a href="../Universal/rhub-methods/manual.html">
Manual
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.6" data-path="../Universal/irq.html">
<a href="../Universal/irq.html">
IRQ Fix
</a>
</li>
<li class="chapter " data-level="6.7" data-path="../Universal/spoof.html">
<a href="../Universal/spoof.html">
GPU Spoof
</a>
</li>
<li class="chapter " data-level="6.8" data-path="../Universal/smbus.html">
<a href="../Universal/smbus.html">
Fixing SMBus Support
</a>
<ul class="articles">
<li class="chapter " data-level="6.8.1" data-path="../Universal/smbus-methods/manual.html">
<a href="../Universal/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=".." >Disabling laptop dGPUs</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="disabling-laptop-dgpus-ssdt-dgpu-offnohybgfx"><a name="disabling-laptop-dgpus-ssdt-dgpu-offnohybgfx" class="plugin-anchor" href="#disabling-laptop-dgpus-ssdt-dgpu-offnohybgfx"><i class="fa fa-link" aria-hidden="true"></i></a>Disabling laptop dGPUs (SSDT-dGPU-Off/NoHybGfx)</h1>
<ul>
<li><a href="#what-this-ssdt-does">What this SSDT does</a></li>
<li><a href="#methods-to-make-this-ssdt">Methods to make this SSDT</a><ul>
<li><a href="#prebuilts">Prebuilt</a></li>
<li><a href="#ssdttime">SSDTTime</a></li>
<li><a href="#manual">Manual</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>
</ul>
</li>
</ul>
<p>So with laptops, we can hide the dGPU from macOS with the little boot-arg called <code>-wegnoegpu</code> from WhateverGreen. But one small problem, the dGPU is still pulling power draining your battery slowly. We&apos;ll be going over 2 methods for disabling the dGPU in a laptop:</p>
<ul>
<li><a href="laptop-disable.html#optimus-method">Optimus Method</a></li>
<li><a href="laptop-disable.html#bumblebee-method">Bumblebee Method</a></li>
</ul>
<p>Note that this is not needed for install, but recommended for post-install</p>
<h2 id="optimus-method"><a name="optimus-method" class="plugin-anchor" href="#optimus-method"><i class="fa fa-link" aria-hidden="true"></i></a>Optimus Method</h2>
<p>How this works is that we call the <code>.off</code> 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&apos;s, the Optimus method should work for most users:</p>
<p>To start, grab <a href="https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-dGPU-Off.dsl.zip" target="_blank">SSDT-dGPU-Off.dsl</a></p>
<p>Next we need to get on Windows, and head to the following:</p>
<pre><code class="lang-text">Device Manager -&gt; Display Adapters -&gt; dGPU -&gt; Properties -&gt; Details &gt; BIOS device name
</code></pre>
<ul>
<li>Note some GPUs may be hiding under &quot;BIOS device name&quot;</li>
</ul>
<p>This should provided you with an ACPI path for your dGPU, most commonly:</p>
<ul>
<li>Nvidia dGPU: <code>\_SB.PCI0.PEG0.PEGP</code></li>
<li>AMD dGPU: <code>\_SB.PCI0.PEGP.DGFX</code></li>
</ul>
<p><img src="../images/Desktops/nvidia.png" alt="Credit to 1Revenger1 for the image"></p>
<p>Now with that, we&apos;ll need to change the ACPI path in the SSDT. Main sections:</p>
<pre><code class="lang-text">External(_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
</code></pre>
<pre><code class="lang-text">If (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
</code></pre>
<p>Once adapted to your config, head to the compile section</p>
<ul>
<li>For those with sleep issues, you can refer to the original <a href="https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/" target="_blank">Rehabman thread</a></li>
</ul>
<h2 id="bumblebee-method"><a name="bumblebee-method" class="plugin-anchor" href="#bumblebee-method"><i class="fa fa-link" aria-hidden="true"></i></a>Bumblebee Method</h2>
<p>With some machines, the simple <code>.off</code> call won&apos;t keep the card off properly, that&apos;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.</p>
<p>To start, grab <a href="https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-NoHybGfx.dsl.zip" target="_blank">SSDT-NoHybGfx.dsl</a></p>
<p>Next we need to get on Windows, and head to the following:</p>
<pre><code class="lang-text">Device Manager -&gt; Display Adapters -&gt; dGPU -&gt; Properties -&gt; Details &gt; BIOS device name
</code></pre>
<p>This should provided you with an ACPI path for your dGPU, most commonly:</p>
<ul>
<li>Nvidia dGPU: <code>\_SB.PCI0.PEG0.PEGP</code></li>
<li>AMD dGPU: <code>\_SB.PCI0.PEGP.DGFX</code></li>
</ul>
<p>Now with that, we&apos;ll need to change the ACPI path in the SSDT. Main sections:</p>
<pre><code class="lang-text">External (_SB_.PCI0.PEG0.PEGP._DSM, MethodObj) // dGPU ACPI Path
External (_SB_.PCI0.PEG0.PEGP._PS3, MethodObj) // dGPU ACPI Path
</code></pre>
<pre><code class="lang-text">If ((CondRefOf (\_SB.PCI0.PEG0.PEGP._DSM) &amp;&amp; CondRefOf (\_SB.PCI0.PEG0.PEGP._PS3)))
</code></pre>
<pre><code class="lang-text"> // Card Off Request
\_SB.PCI0.PEG0.PEGP._DSM (ToUUID (&quot;a486d8f8-0bda-471b-a72b-6042a6b5bee0&quot;), 0x0100, 0x1A, Buffer (0x04)
</code></pre>
<pre><code class="lang-text"> // Card Off
\_SB.PCI0.PEG0.PEGP._PS3 ()
</code></pre>
<p>Once adapted to your config, head to the compile section</p>
<h2 id="now-youre-ready-to-compile-the-ssdt"><a name="now-youre-ready-to-compile-the-ssdt" class="plugin-anchor" href="#now-youre-ready-to-compile-the-ssdt"><i class="fa fa-link" aria-hidden="true"></i></a><a href="../Manual/compile.html">Now you&apos;re ready to compile the SSDT!</a></h2>
</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="trackpad-methods/manual.html" class="navigation navigation-prev " aria-label="Previous page: Manual">
<i class="fa fa-angle-left"></i>
</a>
<a href="../Universal/ec-fix.html" class="navigation navigation-next " aria-label="Next page: Embedded Controller">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Disabling laptop dGPUs","level":"5.3","depth":1,"next":{"title":"Embedded Controller","level":"6.1","depth":1,"path":"Universal/ec-fix.md","ref":"Universal/ec-fix.md","articles":[{"title":"Prebuilt","level":"6.1.1","depth":2,"path":"Universal/ec-methods/prebuilt.md","ref":"Universal/ec-methods/prebuilt.md","articles":[]},{"title":"SSDTTime","level":"6.1.2","depth":2,"path":"Universal/ec-methods/ssdttime.md","ref":"Universal/ec-methods/ssdttime.md","articles":[]},{"title":"Manual","level":"6.1.3","depth":2,"path":"Universal/ec-methods/manual.md","ref":"Universal/ec-methods/manual.md","articles":[]}]},"previous":{"title":"Manual","level":"5.2.2","depth":2,"path":"Laptops/trackpad-methods/manual.md","ref":"Laptops/trackpad-methods/manual.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":"Laptops/laptop-disable.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>