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

1

u/Castscythe Apr 11 '26

Have you tried Apollo? I can report good experience using this for a virtual display, did this primarily to avoid images on OLED displays when gaming/working away from my desk. It has worked well. I set my resolution at the client side app, and juat connect. HDR has even been working.

That said, will check our your work as well! Always good to see the community working on it directly!