Skip to content

Instantly share code, notes, and snippets.

View DavidGitter's full-sized avatar
🐄

DavidGitter

🐄
View GitHub Profile
@GleasonK
GleasonK / ToggleGTX.ps1
Created February 7, 2022 16:41
Useful Script for Surface Book 2 to toggle off GTX when attempting to detach the screen.
# Useful script for detaching the screen of Surface Book.
# Run if detach light blinks red indicating that it cannot be detached
# since applications are preventing the detach.
#
# Option 1: Copy-paste into powershell window.
#
# Option 2: Run as PowerShell script (requires execution policy change):
# https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
#
Try {