rust-embedded / discovery

Discover the world of microcontrollers through Rust!
https://docs.rust-embedded.org/discovery/
Apache License 2.0
1.49k stars 515 forks source link

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

Open sudoBash418 opened 1 year ago

sudoBash418 commented 1 year ago

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.

ddotthomas commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

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.