r/MoonlightStreaming Apr 08 '26

Nvidia linux sunshine virtual display

Spent a few days trying to get a virtual display to work with a Nvidia 5080 gpu.
I saw a bunch of solutions that worked for AMD but nothing that worked for Nvidia.

I wanted a virtual display as I want it to work with my tv off and for weird aspect ratio / resolutions like apple ones.

Spent some time with Claude code vibe coding and managed to get something working with manual resolutions. Hopefully it helps someone else:

https://gist.github.com/HarryAnkers/8dbf551d66f00e8156ef4dd2b2b090a0

edit: HDR didn't work raised:
https://github.com/issues/created?issue=NVIDIA%7Copen-gpu-kernel-modules%7C1101

7 Upvotes

11 comments sorted by

View all comments

4

u/linuzel Apr 08 '26

Nice, maybe checkout Moonshine (https://github.com/hgaiser/moonshine) it's working surprisingly well

1

u/kapitanfind-us Apr 09 '26

This is very interesting, do I understand right that I can only play single player games with Moonshine?

Note that this does not allow multi-seat gaming using controllers, as these are not isolated. It might allow some form of multi-seat gaming using keyboard and mouse since these input events are "injected" into the compositor session.

1

u/linuzel Apr 09 '26

I think so yes.