[Resolved] Prevent OS from sleeping.
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
[Resolved] Prevent OS from sleeping.
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
Kind regards,
mittens
Re: Prevent OS from sleeping.
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
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



Please remember to Upload your debug logs!
Universal Media Server Wiki!
"...functionality before beautification..."
Re: Prevent OS from sleeping.
Thanks, that's very helpful.
Is this normal behaviour for UMS then?

Re: Prevent OS from sleeping.
As far as i know yes.



Please remember to Upload your debug logs!
Universal Media Server Wiki!
"...functionality before beautification..."