[Resolved] Prevent OS from sleeping.

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
mittens
Posts: 2
Joined: Fri Oct 25, 2013 8:31 am

[Resolved] Prevent OS from sleeping.

Post 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
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Prevent OS from sleeping.

Post 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
Attachments
PowerSave.zip
(2.46 KiB) Downloaded 417 times
mittens
Posts: 2
Joined: Fri Oct 25, 2013 8:31 am

Re: Prevent OS from sleeping.

Post by mittens »

Thanks, that's very helpful. :) Is this normal behaviour for UMS then?
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: Prevent OS from sleeping.

Post by DeFlanko »

As far as i know yes.
Post Reply