Skip to content

Add raw evdev input emulation backend#465

Open
coreydowning wants to merge 1 commit into
feschber:mainfrom
coreydowning:evdev-emulation
Open

Add raw evdev input emulation backend#465
coreydowning wants to merge 1 commit into
feschber:mainfrom
coreydowning:evdev-emulation

Conversation

@coreydowning

Copy link
Copy Markdown

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).

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant