Create virtual display, Run Sunshine on main PC, Moonlight on guest, it should work
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
commenting so i can see this later
So like a virtual KVM switch? Barrier was discontinued, but I think solutions like Synergy, Deskflow, or InputLeap still exist. There might be a better community suggested alternative to those as well.
I have been using deskflow for a year now locally and sometimes over tailscale. One with plasma and other gnome. It's working great but clipboard don't sync sometimes
Just to address the networking part...
Wifi is a 1:1 link, usually half-duplex (unless you've got something like a MuMiMo router) so you'll transmit a block of video to the phone and then have to wait for the phone to transmit that block to the laptop, then repeat.
You don't state the screen sizes, but I suspect you'll only get decent FPS (I presume this is for gaming) with a cable as that will be full duplex.
For the application, maybe take a look at something like Deskflow
I used the 2nd option to connect a macbook pro 17 2006 to my desktop; can't let go of that stupid thing, no idea why. can't remember having issues with the cursor displaying (also Plasma, Fedora desktop + arch 32-bit on laptop), but the lag was annoying and the fans wouldn't stop hollering (Core 2 Duo and ATI X1600 struggling to keep up) so I tore it down. before that tried using an android tablet to same end but also gave up as it wasn't useful for anything.
Not sure what you mean about the mouse cursor not showing up. You mean you can interact with the mouse, but just see a cursor? Or no matter which direction you move the mouse the cursor doesn't get there?
You sure after setting up the virtual display you're going through the steps to setup the orientation of monitors?
What I mean is the mouse cursor isn't there when I move it over there. Well, isn't visible. It still interacts with objects.
Same as this person's issue: https://discuss.kde.org/t/show-cursor-on-virtual-display-kde-connect-krdc/43421
If I get a minute I'll see if I can replicate, but my initial guesses are:
- Hardware cursor mismatch: try disabling hardware acceleration on the client OR see if there is a setting for forcing or disabling hardware cursors
- Check the CLI arguments for cursor specific options and mapping to movement. Sometimes there are movement acceleration tweaks that mess things up
Edit: also maybe give this a shot. https://www.azdanov.dev/articles/2025/how-to-create-a-virtual-display-for-sunshine-on-arch-linux
What you want was very performant and easy doable with X11 (by its nature as a client/server architecture), but not with wayland. The additional Software layers on top of wayland will destroy performance and introduce all kind of issues.
Thats the price we have to pay for the shiny new things
Solution is jetkvm or pikvm. Also reasonably cheap.