Skip to content

Instantly share code, notes, and snippets.

@psyke83
Created May 14, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psyke83/d5954276a405e5274b362ceb0a1cd692 to your computer and use it in GitHub Desktop.
Save psyke83/d5954276a405e5274b362ceb0a1cd692 to your computer and use it in GitHub Desktop.
2200g switchable graphics fix
@echo off
SETLOCAL
SET Integrated_GPU="PCI\VEN_1002&DEV_15DD&SUBSYS_15DD1002&REV_C8"
SET Dedicated_GPU_PCIERoot="@PCI\VEN_1022&DEV_15D3&SUBSYS_14531022&REV_00\3&11583659&0&09"
pushd "%~dp0"
devcon disable %Dedicated_GPU_PCIERoot%
devcon disable %Integrated_GPU%
devcon enable %Integrated_GPU%
devcon enable %Dedicated_GPU_PCIERoot%
popd
ENDLOCAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment