Fallout 4

Fallout 4

Not enough ratings
Fallout 4 Start Batch File
By LHammonds
This is a batch file that will change the power scheme prior to starting Fallout 4 and then change it back after exiting Fallout 4 to avoid a problem when the power scheme tries to turn off the monitor while in-game.
   
Award
Favorite
Favorited
Unfavorite
Overview
I have found that if your power saver configuration tries to turn off you monitor because you walked away for a bit, it will glitch out the game. To avoid this problem, I created a batch file to switch power scheme profiles between my normal "Balanced" mode into the "High Performance" profile which will NOT try to turn off the monitor while the game is running.

The batch file sets the current power scheme to balanced, then starts the game and waits for the game to be closed, then sets the power scheme to balanced.

You can set it to any scheme you want with the correct setting and have it switch back. Or you can comment out the line that sets it back and let it always switch to high-performance mode if that is what you normally run under....but just want to ensure it always gets set prior to starting (just in case).
Source Code
The source code is kept on github but will copied here for your convenience.

https://raw.githubusercontent.com/LHammonds/dos-batch/master/Start-FO4.bat

@ECHO OFF REM ############################################################# REM Name : Start-FO4.bat REM Version : 1.0 REM Date : 2020-06-07 REM Author : LHammonds REM Purpose : Switch power modes before starting Fallout4 REM Compatibility : Verified on to work on: Windows 10 REM Requirements : None REM Run Frequency : Manual as needed (when starting the game) REM NOTES : Fallout4 will freeze PC if the power settings turns off REM : the monitor during gameplay. REM : List all power scheme GUID's from this command: REM : powercfg -L REM : Make sure the 3 variables below match your system. REM ###################### CHANGE LOG ########################### REM DATE VER WHO WHAT WAS CHANGED REM ---------- --- --- --------------------------------------- REM 2020-06-07 1.0 LTH Created script. REM ############################################################# SET HIGHPERF=8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c SET BALANCED=381b4222-f694-41f0-9685-ff5bb260df2e SET GAMEPATH="C:\Program Files\Steam\steamapps\common\Fallout 4\" TITLE Start game with High Performance Power setting CLS ECHO. ECHO This window will close automatically when the game is closed. ECHO. ECHO List of power profiles before making changes: %windir%\system32\powercfg.exe -L ECHO. ECHO Setting power profile to "High Performance" ECHO. %windir%\system32\powercfg.exe /SETACTIVE %HIGHPERF% ECHO List of power profiles while game is running: %windir%\system32\powercfg.exe -L ECHO. ECHO Starting game... CD /D %GAMEPATH% START /WAIT "Fallout4" Fallout4.exe %windir%\system32\powercfg.exe /SETACTIVE %BALANCED% SET GAMEPATH= SET BALANCED= SET HIGHPERF=