Prevent sleep when CPUs busy?

Locked
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Prevent sleep when CPUs busy?

Post 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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Prevent sleep when CPUs busy?

Post by ^misantropia^ »

OS?
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Re: Prevent sleep when CPUs busy?

Post 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.
User avatar
Bacon
Posts: 1477
Joined: Sat Jul 31, 2004 7:00 am

Re: Prevent sleep when CPUs busy?

Post 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. :)
[b]CAPSLOCK IS ON[/b]
Fender
Posts: 5876
Joined: Sun Jan 14, 2001 8:00 am

Re: Prevent sleep when CPUs busy?

Post by Fender »

Hmmm... maybe time to cut my teeth on .NET
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Re: Prevent sleep when CPUs busy?

Post 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.
Locked