Option to disable machine going to sleep

Issue #241 new
Petr Nejedly repo owner created an issue

Comments (13)

  1. Petr Nejedly reporter

    From Caffeine developer:

    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.

  2. Petr Nejedly reporter

    This needs some listeners for file started / file ended, similar to the trakt.tv ticket.

  3. Log in to comment