Cynary / sunshine-virtual-monitor

Scripts and instruction for automatically setting up a lone virtual monitor to stream from sunshine.
GNU General Public License v3.0
55 stars 4 forks source link

alt+enter doesn't enter fullscreen. #11

Closed squarepizza1 closed 1 month ago

squarepizza1 commented 1 month ago

Pressing alt+enter won't change a window to fullscreen. If I stop streaming to my Steam Deck, the shortcut will start working again.

Cynary commented 1 month ago

Hi, I don't see how virtual displays could cause this - even if it can, there's not much I can do to support it unless you have evidence it's something in the scripts in this repository. Some things you should try:

  1. Does alt+enter work if you don't use the virtual display at all, and just stream from your regular display?
  2. If you setup a virtual display without using the scripts in this repository, does alt+enter work?

If either of those has the answer "No", then the issue isn't with these scripts - you would need to get help with either (1) sunshine/moonlight, or (2) virtual display driver.

My best guess is that moonlight may not be forwarding the alt+enter keystroke to the sunshine host - if that's the case you'd have the issue even without a virtual display (1) - you may want to ask for help in their discord / subreddit in that case.

squarepizza1 commented 1 month ago

alt+enter works if I don't use cmd /C powershell.exe -executionpolicy bypass -windowstyle hidden -file "%PATH_TO_THIS_REPOSITORY%\setup_sunvdm.ps1" %SUNSHINE_CLIENT_WIDTH% %SUNSHINE_CLIENT_HEIGHT% %SUNSHINE_CLIENT_FPS% %SUNSHINE_CLIENT_HDR% > "%PATH_TO_THIS_REPOSITORY%\sunvdm.log" 2>&1 and cmd /C powershell.exe -executionpolicy bypass -windowstyle hidden -file "%PATH_TO_THIS_REPOSITORY%\teardown_sunvdm.ps1" >> "%PATH_TO_THIS_REPOSITORY%\sunvdm.log" 2>&1 I changed "PATH_TO_THIS_REPOSITORY" to my sunshine monitor folder. alt and enter still work, but the fullscreen shortcut doesn't.

Cynary commented 1 month ago

Hi,

So, if you remove the commands, alt+enter works - do you use alt+enter to fullscreen some specific application?

But with the commands in place, it doesn't work.

Have you tried removing the commands, but setting up a virtual display, and while streaming removing all other display so that the virtual display is your primary display (also, make sure to undo that before finishing the stream, otherwise your host's display won't show anything)? Does alt+enter work then?

squarepizza1 commented 1 month ago

I set up a virtual display and connected to it, but alt+enter still doesn't work.

Cynary commented 1 month ago

So, without using the scripts in this repository, if you setup a virtual display and use it, alt+enter doesn't work?

Unfortunately, there's not much we can do about that :/ the code here is only for automation to manage the virtual display, not for the virtual display driver itself, which sounds like it's the source of the issue - it might be better to ask in the https://github.com/itsmikethetech/Virtual-Display-Driver project, they might have some better idea of what to do.

I'll close in a couple of days if there's no extra questions - let me know if my understanding is correct that it doesn't work even when these scripts aren't involved.

squarepizza1 commented 1 month ago

I'll open an issue there.