Skip to content
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

You do not need to be root to access /dev/input/* #489

Closed
lyiriyah opened this issue Sep 27, 2021 · 4 comments
Closed

You do not need to be root to access /dev/input/* #489

lyiriyah opened this issue Sep 27, 2021 · 4 comments

Comments

@lyiriyah
Copy link

/dev/input/* can be used if you are a member of whatever group owns the event handlers, in my case input. You can check with ls -l /dev/input | grep -v by- | head -n 1 | awk '{ print $3 }'.

@lyiriyah
Copy link
Author

I'll start working on a way to check file groups and user groups and compare them now

@lyiriyah
Copy link
Author

lyiriyah commented Sep 27, 2021

Closing. Duplicate of #312. This really is a large issue. It makes this library untenable for use in many circumstances, which is a shame since it's so good. I guess you can change /dev/uinput's group but that resets every reboot. I think I'll just use python-evdev instead.

@boppreh
Copy link
Owner

boppreh commented Sep 27, 2021

It's not just /dev/input that requires special privileges, it's dumpkeys. And I couldn't find any specific group that allows dumpkeys usage without literally being root, and not using this external program means there's no way to map scan codes to key names.

The only way forward I see is to enable an alternative X-based input event manager, but that's also a (partially) doomed proposition due to the rise of Wayland.

Suggestions welcome.

@glyh
Copy link

glyh commented Oct 2, 2022

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

No branches or pull requests

3 participants