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 improvement #5

Open
lesamouraipourpre opened this issue Jun 29, 2021 · 1 comment
Open

UDEV rules improvement #5

lesamouraipourpre opened this issue Jun 29, 2021 · 1 comment

Comments

@lesamouraipourpre
Copy link

Below is a possible improvement to the udev-rules. It is based on the suggest udev-rules in the libusb/hidraw project
Ref: https://github.com/libusb/hidapi/blob/6fcb0bb2282dbb505561a53689eba0c0536570d9/udev/69-hid.rules

# PICO
#KERNEL=="hidraw*", ATTRS{idVendor}=="cafe", ATTRS{idProduct}=="4005", TAG+="uaccess", GROUP="plugdev", MODE="0660"
# Adafruit Feather
#KERNEL=="hidraw*", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="00f1", TAG+="uaccess", GROUP="plugdev", MODE="0660"
# Adafruit ItsyBitsy
#KERNEL=="hidraw*", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="00fd", TAG+="uaccess", GROUP="plugdev", MODE="0660"
# Adafruit QT2040 Trinkey
#KERNEL=="hidraw*", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="0109", TAG+="uaccess", GROUP="plugdev", MODE="0660"
# Adafruit QTPY
#KERNEL=="hidraw*", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="00f7", TAG+="uaccess", GROUP="plugdev", MODE="0660"

I have tested this connected from a Raspberry Pi 4 to a RP2040 Pico and they work

> ls -l /dev/ttyACM0 
crw-rw---- 1 root dialout 166, 0 Jun 29 16:46 /dev/ttyACM0
> ls -l /dev/hidraw*
crw-rw----+ 1 root plugdev 244, 2 Jun 29 16:46 /dev/hidraw2
@execuc
Copy link
Owner

execuc commented Jun 29, 2021

Hello,
On my Debian 10 (x64), it seems not to work because I think it uses libusb implementation (as your link says) and I must use SUBSYSTEM=="usb".
I think I'll put both cases in the documentation.

Thank you

usamabashir82 pushed a commit to usamabashir82/u2if that referenced this issue Apr 17, 2023
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

2 participants