On 30/06/2021 18.22, jithin bp wrote:
One suggestion that needs to be rigorously tested is to blacklist the
serial device of ExpEYES(VendorID:ProductID) for Modem Manager so that it
will ignore it.
https://askubuntu.com/questions/1231894/modemmanager-conflicts-with-arduino

That sounds very promising.

Corresponding ModemManager documentation is
https://www.freedesktop.org/software/ModemManager/api/latest/ref-overview-modem-filter.html

So maybe the solution is shipping in eyes17 (or a better fitting package?)
/lib/udev/rules.d/78-mm-blacklist-expeyes.rules with this content:

===== 8< =====
ACTION!="add|change|move", GOTO="mm_blacklist_expeyes_end"
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="00df", ENV{ID_MM_DEVICE_IGNORE}="1"
LABEL="mm_blacklist_expeyes_end"
===== >8 =====

(Repeat the middle line if you have multiple IDs)

Needs to be tested by someone having an expeyes board ;-)

As modemmanager already has several blacklists:

/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
/lib/udev/rules.d/77-mm-qdl-device-blacklist.rules
/lib/udev/rules.d/77-mm-usb-device-blacklist.rules

perhaps your device should rather be added there?

Some blacklists also set the ID_MM_TTY_BLACKLIST variable instead
of ID_MM_DEVICE_IGNORE

Andreas

Reply via email to