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

Bug #1355657 reported by Martti Piirainen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ofono (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Test steps in mako HW, image 185:
 * Enable flight mode (via system settings or via network indicator)
 * Reboot

Expected result: The cellular radio is offline, but the SIM card is accessible via oFono APIs

Actual result: The cellular radio is offline, and the SIM is shown as not present (in network indicator UI, or in oFono API property SimManager.Present)

The practical impact of this bug is rather low: Enabling the cellular radio (exiting the flight mode via UI, or setting oFono to 'Online' via direct API calls) also enables the SIM presence and SIM-related APIs.

Revision history for this message
Martti Piirainen (piiramar) wrote :

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).

Tony Espy (awe)
Changed in ofono (Ubuntu):
status: New → Fix Committed
Revision history for this message
Jussi Kangas (jkangas) wrote :

Tested with Mako. Seems to be working now.

Revision history for this message
Jussi Kangas (jkangas) wrote :

Sorry, did not give the SW number. It was 201

Revision history for this message
mikahdh (f4tmike) wrote :

Must be the issue I have.
After phone start I accidently activated flight mode instead of unlocking the sim. Since then the sim card isn't recognized anymore.
I got the latest 'official' dev version (203? 213?)

Revision history for this message
Tony Espy (awe) wrote :

@mikahdh

Please enter a new bug, This bug was for a very particular scenario which has been fixed. Marking FixReleased as of version 1.12.bzr6876+14.10.20140904~rtm-0ubuntu1 of ofono.

Changed in ofono (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.