Skip to content

Linux: ModemManager leaves the device's serial ports alone - #173

Merged
henrikklee merged 2 commits into
mainfrom
modemmanager-ignore
Dec 5, 2026
Merged

henrikklee merged 2 commits into
mainfrom
modemmanager-ignore

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

Follow-up to #153 (doctor flags fwupd and ModemManager).

  • Orchard's Linux USB rule (/etc/udev/rules.d/70-orchard-installer.rules) now sets ENV{ID_MM_DEVICE_IGNORE}="1" on every stage it covers: DFU, recovery, Pongo, m1n1's proxy, Orchard's systems and their serial consoles. ModemManager probed each new console as a modem, which garbled logins and proxy commands. The rule file runs at 70, before ModemManager's own rules at 80.
  • A computer with the older rule is offered the new one once (the rule is compared as a whole, as for any change to it).
  • orchard doctor counts ModemManager as in the way only while the installed rule doesn't carry the ignore.

Tests: cargo test -p orchard-runtime --lib usb_access, cargo test -p orchard-cli host (with NO_COLOR=1).

Orchard's USB rule now sets ID_MM_DEVICE_IGNORE on every stage it covers
(DFU, recovery, Pongo, m1n1's proxy, Orchard's systems and their serial
consoles): ModemManager probed each new console as a modem and garbled
logins and proxy commands. A computer with the older rule is offered the
new one once, as for any change to it.

Assisted-by: LLM
@henrikklee
henrikklee merged commit 4016d35 into main Dec 5, 2026
11 checks passed
@henrikklee
henrikklee deleted the modemmanager-ignore branch December 5, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant