DFU unstable on Linux host: ModemManager and usbmuxd interfere with `orchard launch`

Aperta
#408 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, python
Ambito
cli, devops

Direzione di ricerca

Start by tracing the orchard launch and orchard shell entry points to see how device detection and DFU are handled. The issue reports ModemManager occupying /dev/ttyACM0 and possible interference from usbmuxd, but leaves open whether to add a warning, manage services, or document a workaround. Done means the project chooses and implements one of those approaches, with checks for the reported Linux behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, I got Omarchy A running on an iPhone 6s (iPhone8,1 / N71m, A9) and ran into two host-side problems when launching from a Kubuntu desktop (NUC). Both went away once I stopped the services below, so maybe orchard launch could detect or warn about them.

1. ModemManager blocks the serial device
orchard shell failed because /dev/ttyACM0 was reported as busy. Stopping ModemManager (sudo systemctl stop ModemManager) fixed it.

2. usbmuxd and DFU
Entering DFU was very unreliable (the device kept dropping out, even with the original cable). After temporarily masking usbmuxd for the launch (sudo systemctl mask --runtime --now usbmuxd, then unmasking it afterwards), DFU became much more stable. I can't prove usbmuxd is the only cause, but the difference was clear for me.

What I do now
A small wrapper script: stop ModemManager, mask usbmuxd (runtime only), run orchard launch, unmask usbmuxd.

Question
Would you want this in the tool itself (a check or warning, or optionally stopping these services during launch), or rather only in the docs? I'm happy to open a PR for whichever you prefer.

Tested on real hardware: iPhone 6s, Omarchy A 0.4.5, kernel 7.3.0-rc1-orchard-apple-16k.

Lingua principale
Python
Stelle
102
Fork
27
Merge medio
10h 43m
PR unite (30g)
293

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OrchardLinux/orchard

Tutte le issue di OrchardLinux/orchard

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.