Some Bits: Nelson's log

Linux remote game streaming

One thing I miss from my Windows machine was it was easy to stream games to my TV. I installed a Steam Link client on the Android TV and it connected to my Windows box running Steam. Game streaming works surprisingly well on a LAN.

Steam streaming from Linux server

In theory I should be able to do the exact same thing from Steam running on Linux. In practice I found it didn’t just work when I tried it. I should try again, particularly now that I understand better how to use gamescope and deck mode to make the Linux box run Steam games better.

Sunshine / Moonlight

The other option for remote streaming is the Sunshine server running on the Moonlight client. This is an open source evolution of NVidia’s game streaming systems. It’s well loved because it’s very low latency, like 3ms on a LAN.

I’ve made it work but it’s very unreliable. The Sunshine server on Linux is quite janky and the way it captures audio and video seems delicate. It does work sometimes! But not regularly for me. Also I have to remember to manually set my desktop to 1080p before launching Sunshine. I think the Sunshine server can do that too but again I had trouble making that work.

Headless?

What I really want is a headless system. Something where the game is running on a virtual / offscreen display and doesn’t affect my desktop at all. In practice this also seems very difficult, in particular to get the GPU to render with hardware acceleration.

One solution is a dummy HDMI plug that looks like a fake monitor. I bought one and plugged it in and it sort of works. But now I have a new display in my desktop and I couldn’t get KDE Plasma to not use it for anything, it kept causing problems.

A second solution is a virtual display with a spoofed virtual EDID pretending to be a monitor. Apparently you can hack Linux to do this. The result is similar to the dummy HDMI plug but without the stupid hardware dongle. I have not tried this.

A third solution is truly headless. Most solutions for this use the Sway compositor which has both good support for running headless and also a remote video capture system wlr-screencopy that Sunshine can work well with. This all sounds good but very complicated to set up and too bleeding edge for me. Some links on that: