<div dir="ltr">Hello, <div><br><div><div>I am developing an application which makes use of the libmm-glib high level API and I have been making some tests and I have not been able to detect when a SIM is added or removed (I know its not very common to add/extract it on runtime but I want to be aware of this in my app).</div><div><br></div><div>Whenever the SIM is removed the only change I can notice in the modem manager is that the modem transitions from <i><b>connected </b></i>to <b style="font-style:italic">registered </b><b style="font-style:italic">. </b>Monitoring the modem with mmcli I see the following: </div><div><br></div><div> /org/freedesktop/ModemManager1/Modem/0: State changed, 'connecting' --> 'connected' (Reason: User request)</div><div><b>[SIM REMOVED]</b><br> /org/freedesktop/ModemManager1/Modem/0: State changed, 'connected' --> 'registered' (Reason: User request)<br></div><div><br></div><div>It is true that if I relaunch/restart or I restart the modem manager and the sim is missing the modem status reports <b style="font-style:italic">failed </b>and the sim status is <i><b>sim-missing</b></i>. However,
I believe this status should be reported without the need of restarting either the modem or the ModemManager. Is this possible ? <br></div></div><div>Am I doing something wrong ? Is there any way I could be aware of sim additions / removals without restarting the modem ? </div><div><br></div><div>Thank you very much.<br clear="all"><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div>Alejandro Vega</div></div></div></div></div></div>