[2.0.41] Factorio prevents monitor turning off on windows lockscreen
Posted: Fri Mar 14, 2025 5:03 pm
I often leave Factorio running in the background to grind out more productivity research levels, but my monitor will not automatically turn off while Factorio is running, even while on the Windows lockscreen. I'm fine with the computer not going to sleep, just the displays turning off would be great.
I think this is a bug because it overrides the way the operating system behaves. I don't want my monitor to get burn-in or waste energy while I'm not using it. For a variety of reasons I don't want to rely on manually turning off my monitor. Sometimes I forget, sometimes my kids turn my monitor back on, and I like automating, so I don't want to rely on a manual process.
Using this as a Steam launch option does work:
But I don't really like the additional window and think this should be built into the game. The -WindowStyle hidden argument doesn't work when your default terminal application is not Windows Console Host, which I don't want as the default.
I think this is a bug because it overrides the way the operating system behaves. I don't want my monitor to get burn-in or waste energy while I'm not using it. For a variety of reasons I don't want to rely on manually turning off my monitor. Sometimes I forget, sometimes my kids turn my monitor back on, and I like automating, so I don't want to rely on a manual process.
Using this as a Steam launch option does work:
Code: Select all
powershell -WindowStyle hidden "$env:SDL_VIDEO_ALLOW_SCREENSAVER = 1; . %command%"