From 5fb380e29f20c2917bd4e3067c7ca6912e0c1ee6 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Tue, 17 Jan 2017 20:11:49 -0800 Subject: [PATCH] Fix udev rules These changes cause modemmanager to ignore the serial port created when plugging in the OpenMV board. Without these changes, the modemmanager open /dev/ttyACM0 and sends AT commnads. This delays being able to access the REPL using a temrinal emulator and also cause a syntax error since the AT commands aren't valid python. --- udev/50-openmv.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/udev/50-openmv.rules b/udev/50-openmv.rules index 0eadea9c2..a248f2553 100644 --- a/udev/50-openmv.rules +++ b/udev/50-openmv.rules @@ -3,5 +3,7 @@ # idea of write permission for everybody, you can replace MODE:="0666" with # OWNER:="yourusername" to create the device owned by you, or with # GROUP:="somegroupname" and mange access using standard unix groups. +ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", ENV{ID_MM_DEVICE_IGNORE}="1" +ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", ENV{MTP_NO_PROBE}="1" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="abd1", MODE:="0666", SYMLINK+="openmvcam"