Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active May 28, 2019 13:16
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 lextra2/f4da0fd363c9f40a037ea0f9d030b02a to your computer and use it in GitHub Desktop.
Save lextra2/f4da0fd363c9f40a037ea0f9d030b02a to your computer and use it in GitHub Desktop.
Switches the power plan in the power options of windows to "High performance", Launches a steam game, and sets the power option to "Balanced" upon pressing any key inside the command line window (preferably after quitting the game). Read comment for additional info.
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
start steam://rungameid/638970
pause
powercfg /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
@lextra2
Copy link
Author

lextra2 commented May 26, 2019

This "pause" workaround is for some reason needed with steam games. Otherwise the power plan is set back to "balanced" right after the game launches. Remove "pause" from the bat when used for any other .exe as every line is executed in sucession. So when the .exe is closed, the power plan is automatically switched again.

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