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

Use uaccess to allow user access to the device #16

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

Conversation

abompard
Copy link

Ref: https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices

The uaccess udev tag will add an ACL on the device for the currently logged-in user. This means the rules must run before level 70, where the uaccess tag will be acted upon.

As a consequence, we don't need to create the uinput group, and the service can run in the per-user systemd instance.

Also, use an instanciated systemd service to handle multiple keyboards (I haven't tested that as I own only one).

Ref: https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices

The `uaccess` udev tag will add an ACL on the device for the currently
logged-in user. This means the rules must run before level 70, where the
`uaccess` tag will be acted upon.

As a consequence, we don't need to create the uinput group, and the
service can run in the per-user systemd instance.

Also, use an instanciated systemd service to handle multiple keyboards
(I haven't tested that as I own only one).

Signed-off-by: Aurélien Bompard <[email protected]>
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.

None yet

1 participant