November 5, 2026
Couch gaming from a PC in another room
The problem
My gaming PC sits at my desk with an ultrawide monitor. Sometimes I don’t want to play at a desk, I want the couch and the big TV. Running an HDMI cable across the house wasn’t happening, and buying a console to play games I already own didn’t make sense either.
So the plan was to stream it. The PC does the heavy lifting, and the TV just shows the picture and sends my controller input back.
The pieces
- Sunshine runs on the PC (CachyOS, Hyprland). It captures the screen, encodes it on the GPU and streams it.
- Moonlight runs on the living room TV. It’s an Android TV, so it’s just an app.
- NVENC handles the encoding on the RTX 5070 Ti, so the stream barely touches the CPU and the game keeps its frames.
- A PS4 controller is paired straight to the TV, and Moonlight passes it through to the PC like it’s plugged in.
Getting a picture on the TV took about ten minutes. Making it not annoying took a lot longer.
Problem 1: it was streaming my desk
Out of the box, Sunshine streams whatever monitor you point it at. That means the TV shows my ultrawide, at the ultrawide’s shape, with whatever I had open on it. And if I moved the mouse at my desk, I was moving it on the TV too.
The fix was giving the stream its own screen. When a TV connects, a script creates a virtual 4K monitor called STREAM in Hyprland. It isn’t a real display, it only exists for Sunshine to capture. I parked it way off to the side of my real monitors so the mouse can’t drift onto it by accident.
Sunshine also tells the script what resolution and frame rate the TV asked for, so the virtual screen matches the TV instead of guessing.
Problem 2: games opening in the wrong place
Having a separate screen only helps if the game actually opens on it. At first every game had its own little helper script to shove its window onto the TV, and one of them (Farming Simulator) kept stealing focus back to my desk.
I threw all of those out and replaced them with one rule: while a stream is running, any game window opens fullscreen on the STREAM screen. When the stream ends, the rule turns off and games behave normally on the PC again.
In Moonlight, every game now has its own entry: Hogwarts Legacy, Minecraft, Liftoff, RetroArch and a few others. Pick one and that game opens fullscreen on the TV. No Steam Big Picture, no desktop in between.
Problem 3: my workspaces got scrambled
This one took a while to track down. Every time I ended a stream, my desktop came back messed up, with workspaces on the wrong monitors.
The cause was the cleanup step. Ending a stream reloaded my whole Hyprland config just to undo the game rules, and a full reload shuffles everything. Now it only turns the stream rules on and off, without touching anything else, and the desktop comes back exactly how I left it.
I also added a reset shortcut for the odd time a session ends up in a weird state, so the fix is a key press instead of a reboot.
Problem 4: sharing the GPU
That same GPU also runs my local AI models, and those sit in video memory. A game and a couple of loaded models fighting over 16 GB isn’t a good time.
So when a game starts, a script frees up the GPU first. It unloads the AI models and pauses my torrent client so it isn’t eating bandwidth during the stream. When the game closes, it puts everything back the way it was. It only touches what it paused itself, so if I’d already stopped something on purpose, it stays stopped.
Keeping it locked down
A streaming server is basically remote control of my PC, so I didn’t want it open to the whole network.
- The firewall on the PC only lets the living room TV reach Sunshine’s ports. Nothing else on the network, not even my laptop, can connect to them.
- The TV is the only paired device. Pairing takes a PIN typed on the PC, so a new device can’t just show up and start a session.
- UPnP is off, so nothing gets opened to the internet. This only works inside the house.
The couch desktop
Sometimes I don’t want a game, I just want my actual desktop on the TV. There’s a “PC Desktop” entry for that. It moves my real workspaces, open windows and all, onto the TV at a size I can read from the couch, and turns the ultrawide off while I’m over there. When I disconnect, everything goes back where it was.
What I’d tell someone trying this
- Getting the stream working is the easy part. Most of the work is making the PC behave when the stream starts and ends.
- Give the stream its own virtual screen. It fixes half the problems on its own.
- Keep your start and stop steps small. Anything that resets your whole setup will eventually bite you.
- Lock it down to the devices that actually need it. It’s remote control of your computer.
What’s next
Wake-on-LAN, so turning on the TV wakes the PC and I never have to walk to the desk at all.
Enjoyed this
Here's what I'm building with it.
See projects →