RainwayApp / bug-tracker

Report all issues found with Rainway here, or make suggestions for new features. 🐜
https://rainway.io/
27 stars 3 forks source link

Can't unlock Host PC remotely (stream aborts immediately when unlocking) #340

Open d1vanloon opened 5 years ago

d1vanloon commented 5 years ago

I like to keep my PC locked when I'm not in front of it. When I try to launch a game via Rainway when my PC is locked, the operation fails because the PC is locked.

I would like the ability to provide local user credentials to unlock the PC remotely before launching a game. This is similar to functionality provided by many consumer remote access tools.

Alternatives to providing this functionality through Rainway include installing a third-party remote access tool to perform the PC unlock prior to connecting via Rainway.

image

andrewmd5 commented 5 years ago

If you click the Launch button it will take you to the Windows desktop to login.

d1vanloon commented 5 years ago

That's an excellent solution, and it should solve my issue perfectly.

Unfortunately, I get a blank screen or a flash to a feedback form when clicking Launch, so I never see the lock screen. I suppose this means there's another issue preventing me from connecting to the lock screen.

d1vanloon commented 5 years ago

The issue I'm seeing does not seem to be related to the actual locked/unlocked state of the PC directly, but due to the display timeout. In my case, when the PC is locked, the display will turn off after some time.

To reproduce my issue:

  1. Lock the PC and wait until the display turns off
  2. Launch the Rainway client on another PC and try to launch a game
  3. When prompted that the host is locked, click Launch
  4. Note that no video is displayed or the session is ended

Sometimes in step 4 the session is not immediately ended, in which case I can enter my password and unlock the PC, even though I can't see the screen. After the PC is unlocked, no keyboard or mouse clicks take effect on the host PC, but mouse movement is transferred. In that case, if I close the Rainway client and re-connect, I can usually get the video stream to return and regain access to the host.

Sometimes in step 4 I can see that the host PC display is turned back on even when the session is immediately ended. In that case, I can sometimes close and re-launch the Rainway client and re-connect to the host with a video stream and mouse/keyboard control.

Simply turning off the connected display (regardless of whether the PC is locked) causes the same issues, though sometimes I can't get the video stream to return until I re-start the Rainway host application.

Leaving the display always on and active is a waste of electricity and will decrease the lifespan of the display, so it would be nice if Rainway could properly wake the display when initiating a session.

Thanks for looking into these concerns!

andrewmd5 commented 5 years ago

@healingbrew don't we have code in place to wake the display when a session start request comes in?