lan-mouse icon indicating copy to clipboard operation
lan-mouse copied to clipboard

Steam Deck Support in Game mode and Desktop mode (Client) - Flatpak needed?

Open pushpinderv opened this issue 2 months ago • 4 comments

Is there a way currently to run lan-mouse as a client on the steam deck? Do we need a flatpak for it?

Goal is to be able to run the lan-mouse client receiver in both Game mode (Wayland) and Desktop mode (X11). And is it possible to have it auto-start when the Deck boots directly to Game mode or switches modes? (Basically client should always keep running on the deck, and work in both game and desktop modes).

I'm willing to purchase Synergy if it can work flawlessly this way - but I need to be sure if this is even technically possible.

pushpinderv avatar Oct 24 '25 10:10 pushpinderv

Fellow steamdeck user here: I run it on my deck, but I self-compile it locally in my home (I use an environment setup by miniforge for work-related reasons) instead of trying some flatpak. I've only used it in desktop mode (I don't need keyboard/mouse sharing in game mode for my own use case).

lan-mouse detects which API to talk to the server upon starting, so switching between Wayland and X11 on-the-fly will not be possible (maybe auto-starting after the graphical interface is started?)

I am not sure wether it will work in game mode at all as steamOS uses its own Wayland compositor (Gamescope) which unlike, e.g., Kwin_wayland, might not have all the necessary API that lan-mouse relies upon. This could affect all mouse-sharing tools (including commercial Synergy - check if they explicitely cover game mode before spending).

DrYak avatar Oct 24 '25 13:10 DrYak

What @DrYak says sums it up pretty well.

wlr-virtual-pointer-unstable and virtual-keyboard-unstable are in fact not supported in gamescope, as you can see from the linked pages.

When #297 is merged, it should work in gamescope as well with additional configuration.

For desktop mode, you dont need to compile it yourself, you can just download the binary from the releases section. If you want it to autostart on login, you can setup the systemd service, as described in the README (you will likely need to change the exec path).

feschber avatar Oct 24 '25 15:10 feschber

I did not expect such fast responses! :') Thank you @DrYak and @feschber.

Since I'm fixated on having full compatibility, game mode and desktop mode, #297 is my only hope, right? If so, I'll wait, or try to help if I can, to get #297 in - and have this up and running flawlessly between the deck and my windows 10 machine.

Please let me know if I can help in any way.

pushpinderv avatar Oct 25 '25 05:10 pushpinderv

If you want, you could try compiling the PR yourself and set the necessary permissions, as discussed. The layer-shell backend should at least partially work for input capturing, making it at least functional for receiving input (https://wayland.app/protocols/keyboard-shortcuts-inhibit-unstable-v1 apparently is not supported)

feschber avatar Oct 25 '25 08:10 feschber