sasacatering.blogg.se

Will steam download while computer is sleep
Will steam download while computer is sleep








#Will steam download while computer is sleep download#

Looptime = 20 # time interval between checksĭownload_wait = 300 # time (seconds) to wait after the last download activity before suspend is re- activated Speed_limit = 0 # set a minimum speed (kb/sec) to be considered a download activity #- you can change values below, but I'd leave them as they are #- set time after which screen should blackout (seconds)

will steam download while computer is sleep

will steam download while computer is sleep

Return int(subprocess.check_output().decode("utf-8").split()) As always (- should be) with background scripts, the additional processor load is nihil.The download is noticed by a change in the size of the Downloads folder, as measured by periodically checks, using du -ks ~/Downloads if the size of the folder does not change any more during five minutes, the script assumes the download to be finished. After an arbitrary time, to set in the head of the script, the thread shuts down the screen(s), while the other (main) thread prevents suspend for as long as the download is active. xprintidle is triggered by keyboard- and mouse events. The solution is a background script to run as a Startup Application, that will disable suspend for as long as the download takes.Īt the same time, a second thread inside the script, keeps track of the idle time with the help of xprintidle.Although seemingly a small difference, it does make a substantial difference in the answer (script). The difference with that question is however that you want the computer not suspended, but the screen still shut off during downloading large files nevertheless.








Will steam download while computer is sleep