Skip to content

Add raw evdev input emulation #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add raw evdev input emulation #297

wants to merge 1 commit into from

Conversation

samvv
Copy link

@samvv samvv commented May 29, 2025

This pull request adds another input emulation backend that uses evdev to create a virtual mouse/keyboard, bypassing Wayland restrictions. It is meant to be a fallback for the other Linux backends.

This backend successfully fixes input emulation issues on COSMIC and potentially other platforms that lack a proper remote desktop portal.

Limitations

Currently this feature requires lan-mouse to be run as root, e.g. with sudo -E lan-mouse. This is a temporary limitation that I hope to alleviate by creating a separate daemon and authentication mechanism.

To Do

  • Discrete scrolling needs to be tested. I just put a formula I thought might work. If I'm correct this is a Mac feature, which I don't have.
  • Natural scrolling doesn't work because presumably the WM is responsible for the conversion. We'd need to emulate it.
  • A daemon that allows unprivileged execution of lan-mouse, as described above.

@samvv
Copy link
Author

samvv commented May 29, 2025

Potentially somewhat related: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2664

@feschber feschber marked this pull request as ready for review May 30, 2025 05:44
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