loki-47-6F-64 / sunshine

Host for Moonlight Streaming Client
GNU General Public License v3.0
1.77k stars 155 forks source link

Sunshine Not Handling Windows 10 Login Properly #345

Open N0m8n opened 2 years ago

N0m8n commented 2 years ago

When connecting to a Windows 10 machine where a login has not already been performed Sunshine will display a black screen and connections from Moonlight will eventually timeout. This same behavior occurs if you login, then connect to the machine via remote desktop (causing your local connection to be forcibly ended) then attempt to connect to Sunshine via Moonlight. In earlier versions of Windows 10 you could wiggle the mouse and Sunshine would return the login screen after which you could type in your password to proceed (this would usually cause the connection to crash but afterwords you could setup a new moonlight connection and things would work as expected). Having applied all the recent Microsoft patches this workaround no longer functions.

Software Versions:

Steps to Reproduce:

  1. On a Windows 10 machine that has been fully patched (build 19044 or later) configure Sunshine so that it starts when the system boots. In my case there is only a single account on the system so there is no ambiguity which account Windows will attempt to start user services under when the system is powered on.
  2. From a separate machine try to establish a Moonlight connection; this should result in a black screen and an eventual timeout. Subsequent connections will continue to fail and Sunshine will eventually no longer respond (at least in Moonlight the machine begins appearing as unavailable).

The only workaround I have found for this problem is to log directly into the system then attempt the Moonlight connection again. Once a local login has been performed than Moonlight will connect up and you can perform desktop or game streaming as expected. In my case logging into the physical machine each time I want to stream is not practical as I am not always close to the machine (for example streaming while away from home). This also presents a problem if you are in a streaming session, step away for a short time, and Windows puts up a session lock screen.

ShalokShalom commented 2 years ago

This project seems unmaintained.

There is a new, maintained version.

https://github.com/SunshineStream/Sunshine

ReenigneArcher commented 2 years ago

its not gonna fix OPs problem or any other of sunshines annoying reoccuring problems ive tried it

No, because it's not an issue with sunshine.

The desktop/display is not available for streaming until a user has logged in, nothing we can do about that. It's also not available during a RDP session. Best option is to enable auto logon, then run a script that locks the computer immediately after login.

Still, this repo is unmaintained. Better off using the new one. We're getting ready to publish our 3rd release since picking it up.

ArjuAdhmika commented 1 year ago

https://www.winhelponline.com/blog/how-to-automatically-login-to-windows-and-then-lock-the-workstation/