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

udev.rules documentation improvement #326

Merged
merged 2 commits into from
Sep 13, 2021
Merged

udev.rules documentation improvement #326

merged 2 commits into from
Sep 13, 2021

Conversation

Youw
Copy link
Member

@Youw Youw commented Aug 23, 2021

As recently discovered (thanks @tresf), the TAG+="uaccess" has to be used
before 73-seat-late.rules and not before 70-uaccess.rules.

Technically it doesn't harm, to have a more restrictive recommenration,
but it was not technically currect.

Refference on uaccess TAG consumption:
1, 2.

Relates to: #276, systemd/systemd/issues/4288.

Youw added 2 commits August 23, 2021 20:52
As recently discovered (thanks @tresf), the `TAG+="uaccess"` has to be used
before `73-seat-late.rules` and not before `70-uaccess.rules`.

Technically it doesn't harm, to have a more restrictive recommenration,
but it was not technically currect.

Refference on `uaccess` TAG consumption:
[1](https://github.com/systemd/systemd/blob/3a1220eedfb65355c387c29584380742a21917aa/src/login/73-seat-late.rules.in), [2](https://www.apt-browse.org/browse/debian/wheezy/main/amd64/systemd/44-11+deb7u4/file/lib/udev/rules.d/73-seat-late.rules).
# NOTE: these rules must have priorty before 73-seat-late.rules.
# (Small discussion/explanation in systemd repo:
# https://github.com/systemd/systemd/issues/4288#issuecomment-348166161)
# for example, name the file /etc/udev/rules.d/70-my-application-hid.rules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# for example, name the file /etc/udev/rules.d/70-my-application-hid.rules.
# for example, name the file /etc/udev/rules.d/72-my-application-hid.rules.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about renaming the file to 72-hid.rules?

So there is a standard set of rules that adds a uaccess TAG (70-uaccess.rules) with priority 70.
I'm thinking maybe having and example with the same priority would be nit.

@Be-ing
Copy link
Contributor

Be-ing commented Aug 24, 2021

How about renaming the file to 72-hid.rules?

@Be-ing
Copy link
Contributor

Be-ing commented Aug 24, 2021

I tested changing the priority of Mixxx's udev rule file and confirmed this is correct.

@mcuee mcuee added documentation Improvements or additions to documentation hidraw Related to Linux/hidraw backend labels Aug 27, 2021
Copy link
Member

@Qbicz Qbicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Youw Youw merged commit e9f8c3e into master Sep 13, 2021
@Youw Youw deleted the doc-upd branch September 13, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation hidraw Related to Linux/hidraw backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants