Even with flight mode enabled (= cellular radio power is OFF), the RIL
API delivers a proper state "SIM is present and usable" - but oFono does
not ask for that information, and thus does not do any internal SIM-
related initialization.

oFono's RIL plugin (ofono/plugins/ril.c) only calls function
send_get_sim_status() when the radio is powered on. As a quick fix, I
added an unconditional send_get_sim_status() function call to the end of
function ril_connected(). With that fix, the SIM presence and other SIM
APIs are working fine, and the network indicator UI shows "Offline"
instead of "No SIM". This fix needs to be evaluated a bit more.

Note that this behaviour might be somewhat modem-specific (some modems
might actually power the SIM card reader off when the cellular radio is
powered off).

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

Title:
  When booting in flight mode, "No SIM" is shown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1355657/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to