Page 1 of 1

[Resolved] Prevent OS from sleeping.

Posted: Fri Oct 25, 2013 8:38 am
by mittens
Hi. I'm using UMS 2.6.5 on Windows 7 32bit (Also tried 3.0.0-b1: same result). I have enabled the "Prevent OS from sleeping" option, but it seems to work too well. According to the config file, this option prevents the computer from going to sleep *while streaming*, but it prevents mine from ever going to sleep. Is this normal? I'd prefer it if my computer would sleep shortly after I finish streaming something.

Kind regards,

mittens

Re: Prevent OS from sleeping.

Posted: Fri Oct 25, 2013 8:47 am
by DeFlanko
This will take some work but the payoff is sweeeeet...

So the only way I know to bypass this is that i had to make windows tasks, to run bat files, that changed my power plans for me at set times.

Make two Tasks to run as defined times.

I used, respectively, "Server Day Time", and "Server Night Time".

and what those do is that it calls two different Bat files.

I've attached my Bat files and my XML exports, to make life easier on you

please edit the permissions first...

Make a folder in "C:\" called "Scripts"

Place them in there. and import the XML's into Task Scheduler.

Now you might need to edit the Bat files to match GUID of your machine; for that follow this guide should help.

Create Power Plans via Shortcuts

Re: Prevent OS from sleeping.

Posted: Fri Oct 25, 2013 8:53 am
by mittens
Thanks, that's very helpful. :) Is this normal behaviour for UMS then?

Re: Prevent OS from sleeping.

Posted: Fri Oct 25, 2013 8:54 am
by DeFlanko
As far as i know yes.