-
Does Imp prevent the computer from sleeping with it's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is a somewhat difficult question to answer. imp itself does not intentionally do anything to keep the computer awake. (In fact, if anything, it goes out of its way to minimize the potential impact it has on making the system appear non-idle; the script that does the job sleeps for an hour at a time to avoid creating any CPU load. And obviously, as a WSL process, it can't call SetThreadExecutionState() to mark its thread as no-display-sleep or no-system-sleep even if it wanted to.) However, that said, Windows itself determines when to sleep by looking for "user or application activity". The details of this are obscure, but it does include both user input and, more relevantly, network communications. So, with systemd services running in the background, and not subject to automatic termination when you close all your WSL sessions, it's possible that those services are generating enough aggregate network communication activity (or other unspecified criteria) to make Windows think that the system is non-idle and thus stop it from going into sleep state. That's what I suspect is most likely, anyway. |
Beta Was this translation helpful? Give feedback.
That is a somewhat difficult question to answer.
imp itself does not intentionally do anything to keep the computer awake. (In fact, if anything, it goes out of its way to minimize the potential impact it has on making the system appear non-idle; the script that does the job sleeps for an hour at a time to avoid creating any CPU load. And obviously, as a WSL process, it can't call SetThreadExecutionState() to mark its thread as no-display-sleep or no-system-sleep even if it wanted to.)
However, that said, Windows itself determines when to sleep by looking for "user or application activity". The details of this are obscure, but it does include both user input and, more relevantly, network …