mmcli --disable command
Aleksander Morgado
aleksandermj at chromium.org
Wed Jul 31 15:10:20 UTC 2024
Hey!
>
> It seems the disable command is not much different than "--simple-disconnect". The disable command as it stands today is a bit misleading because it gives an impression that modem is disabled (the state is reported "disabled" in mmcli -m 0 output) but modem is actually still registered on a network.
>
I agree it is misleading, yes.
"Disabled" in the context of ModemManager means that the host no
longer cares about the state of the modem, so any explicitly enabled
notifications are now disabled, and so on. When the modem is
"Enabled", the host is expected to monitor and manage the modem.
So, when the modem boots MM will report state as "Disabled" even if
the modem is already registered in the network, MM just knows nothing
about that state yet.
If you do want to explicitly unregister from the network, then the
modem needs to be brought into low power mode, as Daniele suggests.
Since very recently in git main, you can request to set the LPM even
when the modem is enabled, and that will implicitly also disable it
while also transitioning to LPM.
--
Aleksander
More information about the ModemManager-devel
mailing list