Skip to content

Instantly share code, notes, and snippets.

@TalalMash
Last active July 11, 2022 20:34
Show Gist options
  • Save TalalMash/509508ca49349af207f9f87154420485 to your computer and use it in GitHub Desktop.
Save TalalMash/509508ca49349af207f9f87154420485 to your computer and use it in GitHub Desktop.
[Optimus] Move dGPU apps to iGPU gracefully for power saving

In a bat file, replace with Device Instance Path from Device Manager dGPU properties

pnputil /disable-device "PCI\VEN_10DE&DEV_25E0&SUBSYS_3AAC17AA&REV_A1\4&1D71CFEE&0&0009"
pnputil /enable-device "PCI\VEN_10DE&DEV_25E0&SUBSYS_3AAC17AA&REV_A1\4&1D71CFEE&0&0009"

Create shortcut to the bat file

image image

Usage

For laptops that do not have a MUX switch on display out, display out is directly connected to dGPU causing apps to use it. This method is commonly used when undocking from external display/desktop, migrating apps from the dGPU to iGPU to significantly reduce power consumption.
Press CTRL + ALT + G whenever on battery, all GPU active applications will reload to the internal GPU, Optimus will turn of the dGPU shortly on no dGPU activity/process. Drops at least 10 watts (Pascal+).
The proccess is not automated on unplug due to few apps (mainly games) that do not support hot-reloading GPU activity.
Do not use when working on sensitive work, some apps may crash albeit very rare to occur.
This is a better alternative to killing apps (commonly used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment