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

Fix issue #490: udev rule not working correctly on Arch Linux #504

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

Conversation

sudoBash418
Copy link

@sudoBash418 sudoBash418 commented Jan 17, 2023

As per issue #490, the current udev rule does not work correctly on Arch Linux.

This change is based on udev rules from probe-rs.

This new rule should work fine on any Linux distribution using systemd (or elogind), but I am unsure if it will also work on non-systemd distributions.

Fixes the udev rule on Arch Linux and potentially other distros.
@sudoBash418 sudoBash418 requested a review from a team as a code owner January 17, 2023 13:28
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

I wonder if it's worth leaving the mode at 666 or adding the plugdev group to increase support on systems that don't support the uaccess tag. Still, these days I think that's pretty much everything...

@ddotthomas
Copy link

I was able to remove the 666 mode and use the plugdev group instead (which is also suggested at #276) by changing my rules file to look like this:

# CMSIS-DAP for microbit
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", TAG+="uaccess", GROUP+="plugdev"

I'm using Pop OS however, I'm not sure if making the key SUBSYSTEMS and ATTRS is what fixes the issue over on Arch.

@sudoBash418
Copy link
Author

I'm using Pop OS however, I'm not sure if making the key SUBSYSTEMS and ATTRS is what fixes the issue over on Arch.

I can confirm that using SUBSYSTEM and ATTR did not work for me on Arch Linux.

@RabidGhost
Copy link

I'm using Pop OS however, I'm not sure if making the key SUBSYSTEMS and ATTRS is what fixes the issue over on Arch.

Using SUBSYSTEMS and ATTRS, along with TAG+="uaccess" solved it for me on ubuntu.

@nikgul nikgul mentioned this pull request Jun 17, 2024
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

4 participants