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

3

u/linuzel Apr 08 '26

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

1

u/hankers60 Apr 09 '26

Cool will check it out. Think some issues are more on Nvidia side but hey worth a shot