Add raw evdev input emulation backend#465
Open
coreydowning wants to merge 1 commit into
Open
Conversation
Adds an evdev/uinput-based input emulation backend for Linux that creates a virtual mouse/keyboard, bypassing Wayland restrictions. Useful as a fallback on systems without a working remote desktop portal (e.g. COSMIC). Rebased onto the build.rs cfg-alias mechanism (evdev / evdev_emulation) introduced after the original PR. The backend is preferred in the auto-fallback order when /dev/uinput is accessible and falls back cleanly to the other backends otherwise. Documents the udev-rule permissions setup in the README. Original work by Sam Vervaeck (feschber#297). Co-authored-by: Sam Vervaeck <samvv@pm.me> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
inaiii
added a commit
to inaiii/lan-mouse
that referenced
this pull request
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I want to start by saying I take no credit for the bulk of this work. I wanted to use lan-mouse, ran into issues because I use niri as my compositor everywhere, and stumbled upon the stale pull request from @samvv (#297) and decided to use Claude to resurrect it and hopefully get it merged. I have successfully tested it manually myself and have a wide variety of machines and operating systems I am happy to run some manual tests on if requested. I also only care that this change makes it in and am more than happy to shepherd it across the line.
Adds an evdev/uinput-based input emulation backend for Linux that creates a virtual mouse/keyboard, bypassing Wayland restrictions. Useful as a fallback on systems without a working remote desktop portal (e.g. COSMIC).
Rebased onto the build.rs cfg-alias mechanism (evdev / evdev_emulation) introduced after the original PR. The backend is preferred in the auto-fallback order when /dev/uinput is accessible and falls back cleanly to the other backends otherwise. Documents the udev-rule permissions setup in the README.
Original work by Sam Vervaeck (#297).