You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
udev rules: set ID_MM_DEVICE_IGNORE so ModemManager doesn't probe boards after a flash #1653
fbuild port udev (#1424/#1621) grants tty/usb/hidraw access but never sets ENV{ID_MM_DEVICE_IGNORE}="1". On desktop Linux, ModemManager is usually active, and it probes every newly enumerated CDC-ACM device by sending AT commands for a few seconds after it appears. A board that re-enumerates after a flash (Teensy HalfKay → application, RP2040 BOOTSEL → CDC, ESP32-S3/C6 USB-JTAG reset) is exactly that case. The probe can hold the port during fbuild's post-deploy reopen and push AT bytes into firmware that reads the serial port, such as the FastLED AutoResearch RPC.
Observed setup: NixOS, ModemManager.service active, fbuild 2.5.37. fbuild port udev output contains no ID_MM_DEVICE_IGNORE line for any of the 36 vendors.
Proposal
Emit ENV{ID_MM_DEVICE_IGNORE}="1" in the generated tty (and usb) rules for every registry vendor. PJRC's official 00-teensy.rules and PlatformIO's 99-platformio-udev.rules both do this. The rule has to sort before ModemManager's 80-mm-candidate.rules, and the current 70-fbuild.rules name already does.
Optionally, have fbuild port doctor report when ModemManager is active and a candidate port lacks the tag.
Found while bringing up a Teensy 4.0 for FastLED autoresearch on Linux (FastLED/FastLED#4709).
Activity
fix(udev): tag tty/usb rules ID_MM_DEVICE_IGNORE so ModemManager skip…
fix(udev): tag tty/usb rules ID_MM_DEVICE_IGNORE so ModemManager skip…