So this turns out to be yet another instance of us getting bitten by
device-specific hardware behavior.  I re-ran monitor-ofono on krillin
(rtm/#33) and get the same output as @Jussi in comment #9.

That said, in this case when the SIM is removed on krillin, it requires
the SimManager interface to be torn down and recreated in sequence, and
thus the PropertyChanged can't be fired.   The details of why this is
true can be found in the comments to the following pull request:

https://github.com/rilmodem/ofono/pull/104

So...with that said, in order to catch SIM removal you need to:

 - watch for SimManager PropertyChanged ( 'Present' ) signals

 - watch for SimManager disappearance / appearance in the modem's
'Interfaces' property.   Whenever 'SimManager' appears you need to read
the initial state of 'Present'.



** Changed in: ofono (Ubuntu)
       Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1332306

Title:
  Hot-swapped SIMs should be detected and prompt user to reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-network/+bug/1332306/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to