droidian / oFono2MM

Python daemom implementing ModemManager D-Bus API and using oFono to manage the modems.
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

Draft: nm_modem: Locked SIM card does not imply locked modem #24

Closed bellegarde-c closed 3 months ago

bellegarde-c commented 3 months ago

MM_MODEM_STATE_LOCKED is related to LockDown Ofono property.

This fix an issue preventing NetworkManager from enabling/onlining the modem.

mai 31 17:59:47 RedmiNote9Pro NetworkManager[996]: <warn> [1717171187.2279] modem["/ril_0"]: cannot enable/disable modem: locked

bellegarde-c commented 3 months ago

Ok, was wrong and found the real issue (NetworkManager unable to get modems on startup if ofono2mm not running)

erikinkinen commented 3 months ago

@bellegarde-c , how does that work with the real ModemManager? I doubt that they need to start in the correct order. Does MM do something to announce itself we do not do?

bellegarde-c commented 3 months ago

@erikinkinen I've found a fix that I will forward to NetworkManager. And another fix needed on miatoll for ofono-binder-plugin