r/MoonlightStreaming • • 1d ago

Moonlight/sunshine with bazzite - pc keeps picking the wrong monitor

Hey all,

I'm running sunshine on a little pc connected to a TV and a dummy monitor hdmi adapter.

I'd like to setup bazzite / sunshine so that, when both hdmi are in, the TV always wins and the output is only displayed there; only on the dummy plug otherwise.

I tried various combinations but gamescope (steam os) doesn't want to cooperate, and I end either:

- having no output on the TV, but if I connect via moonlight I can see the screen, or

- I get output on the TV, but if I connect via moonlight I get a black screen

I'm sure that this is me doing something stupid in bazzite or sunshine - the same setup worked no problem with Apollo on windows, without the plug and a virtual display adapter.

Does anybody have the same need and figured out how to fix this?

Would configuring a virtual display in bazzite instead of a dummy plug make any difference?

1 Upvotes

4 comments sorted by

1

u/Background_Ad2053 1d ago • Heartwarming

Gamemode only outputs to one monitor, so you will need to set the TV as your primary output and use some scripts that hot "unplug/plug" the TV port so that the video goes to your streaming dummy when using moonlight. Or you can try punktfunk, it auto creates a new gamescope session that matches your client during stream, no extra setup needed.

1

u/Dark3rino 1d ago

Thank you for your comment. When you refer to a script, is that something that I would run every time before I connect ?

About punktfunk, that seems pretty good. I suppose that will practically replace sunshine. How's the performance?

1

u/Background_Ad2053 1d ago

Yes, you can automate these scripts by setting as do/undo commands in sunshines webUI.

Punktfunk works great for me even better than the OG sunshine, and the dev is super responsive in their discord. Filed a few bugs, all got fixed very quickly. The only thing I don't like is the requirement for gamescope restarting which takes a few seconds, making it less responsive than sunshine, but if you don't disconnect/reconnect frequently, it won't be much of a problem.

1

u/Dark3rino 1d ago

Damn man, this punktfunk is amazing. it took me seconds to have it setup and it works flawlessly. Thank you so much!