Steam Deck Support in Game mode and Desktop mode (Client) - Flatpak needed?
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.
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).
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).
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.
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)