Goal: control a living-room / rack gaming PC (mouse, keyboard, controller,
video, audio) from a laptop, without a hardware KVM.
Setup: CachyOS, AMD GPU, booting straight into Steam Gaming Mode
(gamescope-session). No desktop compositor is running.
Why Sunshine and not VNC or lan-mouse
Option
Gives you
Works under gamescope?
Sunshine → Moonlight
Video, audio, mouse, keyboard, gamepad
✅ Input goes through /dev/uinput virtual devices, capture through KMS
Steam Remote Play
Same
✅ but the client side needs Steam
lan-mouse / Deskflow
Input only
⚠️ gamescope has an EI socket, but support is hit or miss
VNC (wayvnc)
Video and input
❌ needs a wlroots compositor
Host setup (the gaming PC)
Install Sunshine (sunshine package on Arch/CachyOS). It needs
cap_sys_admin for KMS capture; the package sets that already.
Open the ports to your LAN only:
sudo ufw allow from 192.168.0.0/24 to any port 47984,47989,47990,48010 proto tcp comment 'Sunshine LAN'sudo ufw allow from 192.168.0.0/24 to any port 47998:48000 proto udp comment 'Sunshine LAN'
Turn off the tray icon. Gaming Mode has no system tray, and without this
setting Sunshine exits right after it starts:
The symptom is that the service goes inactive (dead) with exit code 0 and the log ends with
Main loop has exited / Couldn't accept incoming connections: Operation canceled.