Allow the OS to sleep/hibernate when the (singleplayer) game is paused
Posted: Fri Dec 24, 2021 8:49 pm
I'm currently on Factorio 1.1.50 from Steam on Windows 10, single player (with mods but I don't think it matters).
While factorio is running, Windows doesn't turn off the screen even when idle (which makes sense). I'd like it to allow Windows to turn off the screen and sleep if the game is paused.
More words below, but not much new information so don't read the rest if you don't want to.
My setup is that I often pause the game to do something else without knowing when I will return - could be 1 minute, could be the next day (I have kids you see..). Today I just found that even though I `WinKey-D`-ed to the desktop (while the game is paused), it just stayed like that for many hours without turning off the screen and computer (wasting computer and screen power, and possibly burning the pixels a bit, though that's negligible compared to the factorio UI that's burned there ). Now, I already knew that it doesn't allow Windows to sleep, and didn't expect it, but still it would've been real nice if it did anyway and i didn't have to know in advance for how long i'll be gone. After all, that's what the automatic sleep feature is for in the first place.
Related post: viewtopic.php?p=453123#p453123 (for headless, Aug 2019, got no answer as of now). It _feels_ like this one (single player case) is simpler to implement, and probably useful to more people.
Related thread: viewtopic.php?f=49&t=71018 (has a suggested fix which i didn't try because it ignores whether the game is paused; my powercfg btw: https://pastebin.com/raw/3B6Ggm3N)
While factorio is running, Windows doesn't turn off the screen even when idle (which makes sense). I'd like it to allow Windows to turn off the screen and sleep if the game is paused.
More words below, but not much new information so don't read the rest if you don't want to.
My setup is that I often pause the game to do something else without knowing when I will return - could be 1 minute, could be the next day (I have kids you see..). Today I just found that even though I `WinKey-D`-ed to the desktop (while the game is paused), it just stayed like that for many hours without turning off the screen and computer (wasting computer and screen power, and possibly burning the pixels a bit, though that's negligible compared to the factorio UI that's burned there ). Now, I already knew that it doesn't allow Windows to sleep, and didn't expect it, but still it would've been real nice if it did anyway and i didn't have to know in advance for how long i'll be gone. After all, that's what the automatic sleep feature is for in the first place.
Related post: viewtopic.php?p=453123#p453123 (for headless, Aug 2019, got no answer as of now). It _feels_ like this one (single player case) is simpler to implement, and probably useful to more people.
Related thread: viewtopic.php?f=49&t=71018 (has a suggested fix which i didn't try because it ignores whether the game is paused; my powercfg btw: https://pastebin.com/raw/3B6Ggm3N)