[2.0.41] Factorio prevents monitor turning off on windows lockscreen

Bugs that are actually features.
Myrdamo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Feb 21, 2025 11:08 pm
Contact:

[2.0.41] Factorio prevents monitor turning off on windows lockscreen

Post by Myrdamo »

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:

Code: Select all

powershell -WindowStyle hidden "$env:SDL_VIDEO_ALLOW_SCREENSAVER = 1; . %command%"
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.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4118
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.41] Factorio prevents monitor turning off on windows lockscreen

Post by boskid »

Thanks for the report. This is Not a bug.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16057
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.41] Factorio prevents monitor turning off on windows lockscreen

Post by Rseding91 »

Specifically, Factorio tells the operating system that an active display-required program is running using https://learn.microsoft.com/en-us/windo ... utionstate ES_SYSTEM_REQUIRED because, well, it is. The operating system should not go into sleep mode while the game is running - regardless of the player moving their mouse/pressing keys.

You can either close Factorio, or manually power off your monitors as work-arounds.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”