Created
November 6, 2020 23:25
-
-
Save spiashko/3cec1ef083a8dbeb68c6ffa589ae53fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The -a, -b, -c, -u flags determine whether the settings apply to battery ( -b ), charger (wall power) ( -c ), UPS ( -u ) or all ( -a ).