moonlight-stream / nvidia-gamestream-issues

Repository for tracking known GameStream issues that require a fix from Nvidia
11 stars 1 forks source link

Moonlight streams wrong monitor. #22

Closed naidoo88 closed 1 year ago

naidoo88 commented 2 years ago

As in the title. I have a dual monitor set up.

Unless I disconnect the second monitor and reboot my PC, moonlight will prefer the wrong monitor.

Games launch on the correct monitor, on the host PC, as this is set as my Primary Display in windows.

In case it is relevant:

It's really inconventient needing to get behind my PC to connect/disconnect my HDMI cable any time I want to stream, and the wear and tear on the port makes me nervous in this economy!

Any help or suggestions would be deeply appreciated, and just let me know if I can provide any further info.

Thanks!

cgutman commented 2 years ago

Moving this to nvidia-gamestream-issues, since Moonlight does not get to choose the display being streamed. It's chosen by GeForce Experience.

naidoo88 commented 2 years ago

Thank you for that clarification.

It lead me down another search engine rabbithole which lead me to a solution to the problem. In case the page dissappears for some reason, I've summarised the steps below:

  1. Ensure your primary monitor is the BIOS primary display (the one the logo appears on on boot.
  2. (Suggested) Make a windows restore point, just in case.
  3. Unplug every monitor except your primary display.
  4. Open Registry Editor.
  5. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration.
  6. Delete all sub-items under Configuration.
  7. Reboot your machine.
  8. Reconnect your other monitors.
  9. Profit.

Hope this helps anyone finding this in searches in the future.

I leave it to your disgretion as to whether this should remain open. In my ignorance, I don't understand why GeForce Experience wouldn't simply respect Window's "Primary Monitor" selection, like all the games you launch do.

EDIT: Just to add in aid of anyone else who finds this, performing a "clean install" of the latest Nvidia Driver undid these changes, and I had to repeat the above.

Xecular commented 2 years ago

Discovered a solution that worked for me which doesn't require editing the registry

  1. Enter NVIDIA Control Panel
  2. Go to "Set up multiple displays" under display settings
  3. Right click the monitor you want to be streamed
  4. Select "Make Primary"
  5. Apply
naidoo88 commented 2 years ago

At the time, of posting this was the case for me too. The wrong monitor was still streamed. The next time there is a driver update I'll do a clean install and try it again and report back.

dmrickey commented 2 years ago

Discovered a solution that worked for me which doesn't require editing the registry

  1. Enter NVIDIA Control Panel
  2. Go to "Set up multiple displays" under display settings
  3. Right click the monitor you want to be streamed
  4. Select "Make Primary"
  5. Apply

My desired monitor was/is already set to primary. I swapped it around and this didn't help at all

naidoo88 commented 2 years ago

My desired monitor was/is already set to primary. I swapped it around and this didn't help at all

This was the case for me (as in the original post). Have you tried the steps I posted above?

roughnecks commented 2 years ago

This is fixed for me with Nvidia Studio Driver 516.59, released today.

Honestly, I didn't try anymore since when it happened to me, so could be it's not related to this driver version, but first thing I tried after upgrading was trying the record desktop feature (shadowplay) and it worked on my main monitor - so I upgraded Moonlight on my Steam Link and tried there too (working fine).

Sushygore commented 2 years ago

Hi! I stumbled upon a solution, if it helps anybody :

USBhost commented 2 years ago

This is fixed for me with Nvidia Studio Driver 516.59, released today.

Honestly, I didn't try anymore since when it happened to me, so could be it's not related to this driver version, but first thing I tried after upgrading was trying the record desktop feature (shadowplay) and it worked on my main monitor - so I upgraded Moonlight on my Steam Link and tried there too (working fine).

Normal game ready 516.xx fixed it for me.

KINGLIFER commented 1 year ago

This is confusing. What you mean moonlight config set GUI to fullscreen? If you are using moonlight that is the client. How does that make GFE send to the correct monitor?

scyto commented 1 year ago

At the time, of posting this was the case for me too. The wrong monitor was still streamed. The next time there is a driver update I'll do a clean install and try it again and report back.

This was working in windows 11 for me. It no longer works on insider build 25276 (just in case anyone ends up here with same issue).

KINGLIFER commented 1 year ago

Hey guys listen i gave up and went with Sunshine. Works like a charm. Here is a sort of detailed way how to fix the monitor issue and be at peace. https://www.reddit.com/r/GeForceExperience/comments/10crfe5/wanted_to_share_my_setup_using_nvidia_shield_with/

naidoo88 commented 1 year ago

@scyto good to know, annoying that windows has somehow broken it... but I guess it doesn't matter much with GameStream being removed. Nice to know things are working in Sunshine when I make the switch @KINGLIFER.

Given that as of next month this will be redundant, I will close the thread. I hope the fix was of use to people while it stood.

See you all on the other side in Sunshine :)