jevois / jevois-inventor

Graphical user interface and programming tool for JeVois smart cameras
GNU General Public License v3.0
15 stars 8 forks source link

udev rule to fix permissions and modemmanager access #4

Open ohsix opened 5 years ago

ohsix commented 5 years ago

SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="1d6b",ENV{ID_MODEL_ID}=="0102", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"

it's a one liner, stick it in /etc/udev/rules.d/69-javois.rules and plug the camera in again

TAG+=uaccess adds an acl for the console user and IDMM* tells modemmanager what the ACM port is for (if it weren't an acm port modemmanager would be a lot less aggressive)

the 69 in the rules filename is important but there's no formula for deriving it, it has to be in the 60 range for fedora, it will probably work on debian/ubuntu but may not

thanks