Skip to content

Instantly share code, notes, and snippets.

View SubBastion's full-sized avatar

SubBastion

View GitHub Profile
# Always use the integrated graphics card while running on battery power
sudo pmset -b gpuswitch 0
# Always use the discrete graphics card while running on battery power
sudo pmset -b gpuswitch 1
# Switch between discrete and integrated graphics cards automatically while running on battery power
sudo pmset -b gpuswitch 2