Page 1 of 1

Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 11:59 am
by Fender
I haven't done any searching yet, just posting to see if someone knows a good solution.

I'd like my HTPC to go to sleep when it isn't active. Unfortunately, "inactive" seems to mean "nobody has touched the KB/mouse in X minutes," not if the computer is really "inactive." I want it to stay awake while encoding (high CPU), etc., but automatically go to sleep otherwise.

Any ideas?

Re: Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 2:16 pm
by ^misantropia^
OS?

Re: Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 3:26 pm
by Fender
Sorry... Win7.

I went w/ Win7 because there's good support for nvidia's CUDA GPU extensions under Windows for decoding h.264, but not so much under Linux.

Re: Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 10:50 pm
by Bacon
All the programs I have / tried shuts down the computer after x amount of seconds when cpu usage is below y, which is useless because you want it to sleep, not shut down...

Theres lots of documents online that could help write your own program for this, I can't see it being too complicated, but don't take any of my word for it, im a noob. :)

Re: Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 11:08 pm
by Fender
Hmmm... maybe time to cut my teeth on .NET

Re: Prevent sleep when CPUs busy?

Posted: Mon Oct 26, 2009 11:49 pm
by Foo
Check the software you're using to encode. Some of them have option flags for 'prevent computer going into sleep mode' while they're running.

LAME has this IIRC, and most torrent apps.