DuoStream / Duo

An HDR-compatible multiseat streaming solution based around RdpWrap, Sunshine, Moonlight, and a variety of custom driver and library patches
443 stars 1 forks source link

Windows 11 sleep/resume during a busy Duo instance #116

Open appledoc1 opened 6 months ago

appledoc1 commented 6 months ago

Hey all, I was wondering if sleep/resume is possible with a Duo instance without the instance resetting entirely? I read through all the docs and previous issues but this specific scenario doesn't seem to have come up before.

I've been tinkering with it, but it seems the Duo instance always restarts after the computer fully resumes from sleep mode. Meaning any application/game that was running in Duo when the computer went to sleep will be closed.

Just wondering if this is working as intended or if my setup has some configuration issue? It would be really handy if the computer could suspend with games running in the Duo instance and being able to resume where it left off.

samkitty commented 6 months ago

The commit 0cbdd6d2567896451faff8ecf1cd5c14b8d12372 mentions a change that allows Duo to pause when Windows is suspended. This however does not seem to be the case for me on v1.4.4.

I'm also very interested in knowing whether this is something Duo can do, but I suppose only @Black-Seraph has the answer atm.

bogsen commented 6 months ago

This used to work fine on previous versions of Duo. I can confirm that with Duo 1.4.4, this no longer works as all sessions seem to be closed during sleep/resume (including RDP sessions not related to Duo).

Black-Seraph commented 5 months ago

This used to work fine on previous versions of Duo. I can confirm that with Duo 1.4.4, this no longer works as all sessions seem to be closed during sleep/resume (including RDP sessions not related to Duo).

Can't have it both ways.

Remote sessions keep the computer awake to an extend and people complained.

Now suspend requests stop all active remote sessions to allow the host to sleep and people complain about sessions being closed as part of host suspend.

It's one or the other.

appledoc1 commented 5 months ago

Is it reasonable to make this an optional toggle in the Duo settings? Thanks for clarifying.

Black-Seraph commented 5 months ago

Is it reasonable to make this an optional toggle in the Duo settings? Thanks for clarifying.

That's a middle way out I'd be willing to accept.

I'll leave this issue open until it's been implemented.