From f16b41ddd07a8c2f8f2ee28127ce1dedc997f305 Mon Sep 17 00:00:00 2001 From: Vadim Melnik Date: Wed, 27 Dec 2023 15:44:22 +0200 Subject: [PATCH] Added "udev" USB device configuration. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d7648af..f85b889c 100644 --- a/README.md +++ b/README.md @@ -186,10 +186,16 @@ In this sample, 2935 is the "Vendor ID", and 0008 is the "Product ID". ### 2) Create "udev" rules Create text file under "/etc/udev/rules.d/189-reprostim.rules" location with -content listed below: +appropriate content depending on system type. + +For an active/desktop user logged in via session manager it should be like: ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="2935", TAG+="uaccess" +For a daemon configuration we should provide explicit permissions like: + + SUBSYSTEM=="usb", ATTR{idVendor}=="2935", MODE="0660", OWNER="reprostim", GROUP="plugdev" + Note: we can see that "ATTR{idVendor}" value 2935 is equal to one we got in step 1) from lsusb utility.