Page 1 of 1

keep my computer wake when Serviio sending video to my tv.

PostPosted: Sat Aug 16, 2014 9:53 pm
by wheels3321
keep my computer wake when Serviio sending video to my tv.

i find this program called Caffeine it will keep my computer wake. here is the link for that program here. http://www.zhornsoftware.co.uk/caffeine/
----
i asked the programmer for the caffeine program this question here
----
i need help with Caffeine with a other program i want it to work with a program called Serviio. Serviio is a free media server. It allows you to stream your media files (music, video or images) to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected home network.
----
now my problem is i have my computer let to go to sleep after 10 minutes but when Serviio streaming a video. i don't want my computer to go to sleep. now i stream videos from my computer to a Blu-ray player now. if my computer is sleep and if I click on the serviio app on my Blu-ray player my computer do awake up my computer and I can play videos but after 10 minutes if video is playing my computer. will go to sleep. so I what Caffeine. looking for streaming files and when caffeine. see streaming files i what it to keep awake my computer. but when the streaming files stop i want the computer go to sleep. i have windows 8.1
----
and I got a reply back him say this

I think that by far the simplest solution is that you ask the Serviio guy to add this line to his code:

SetThreadExecutionState(ES_SYSTEM_REQUIRED);

That’s what Caffeine uses to keep the computer awake when it’s running – well, it’s one of the methods it can use anyway. That would avoid the problem of trying to determine when Serviio is streaming media and when it’s not – as that’s the only time you need the system awake. That app already knows exactly when to run the above, whereas you or I don’t know that, and will have to try to interrogate Serviio to work it out.

Given that it’s literally one line of code, and it’s something which the app possibly should be doing already ... he might help you out and solve your problem exactly?!

Tom