i-network says "Unknown" or "No SIM" on N4 (mako), can't unlock the SIM

Bug #1376250 reported by Antti Kaijanmäki
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
Network Menu
Invalid
High
Antti Kaijanmäki
indicator-network (Ubuntu)
Invalid
Undecided
Unassigned
ofono (Ubuntu)
Fix Released
High
Alfonso Sanchez-Beato
ofono (Ubuntu RTM)
Fix Released
High
Alfonso Sanchez-Beato

Bug Description

noticed that i-network is broken on mako. Sometimes after reboot the indicator says the modem state is either "Unknown" or "No Sim" even though the SIM is present.

for now the workarounds are:

If developer mode is not enabled:
 - reboot the phone until you can enter the PIN

if developer mode is enabled:
$ adb shell
$ restart indicator-network

# system-image-cli -i
current build number: 264
device name: mako
channel: ubuntu-touch/devel-proposed
alias: ubuntu-touch/utopic-proposed
last update: 2014-10-01 11:13:57
version version: 264
version ubuntu: 20141001
version device: 20140929.1
version custom: mako-0.6

Tags: rtm14

Related branches

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

full dbus dump after $ sudo restart ofono

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

full dbus dump after $ restart indicator-network

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :
description: updated
Changed in indicator-network:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Antti Kaijanmäki (kaijanmaki)
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This bug can be replicated at least as far back as 255. I can't make it happen with 250 anymore, though.

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

I just made it happen with mako + utopic #264. Output from list-modems shows the SIM is present and current PIN locked. Here's the properties of ofono's SimManager after boot:

 [ org.ofono.SimManager ]
        PreferredLanguages = en
        BarredDialing = 0
        Retries =
        SubscriberNumbers =
        Present = 1
        CardIdentifier = 8901260002766867909
        PinRequired = pin
        FixedDialing = 0
        LockedPins = pin

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

I also tried to reproduce on krillin w/the updated indicator from the urfkill silo, and could not make it happen. Seems to be isolated to mako only.

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

As this only occurs on mako, maybe this should be reduced in importance to High?

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

agreed.

Changed in indicator-network:
importance: Critical → High
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This can't be reproduced on 279. Maybe some other landing fixed this too?

Changed in indicator-network:
status: Triaged → Incomplete
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

We are hitting the same problem in telepathy-ofono, only reproducible on mako too.
It would be good to check the dbus traffic to make sure the PinRequired property is available once the interface becomes available, and if PropertyChanged() is being emitted correctly after that.

Tony Espy (awe)
Changed in ofono (Ubuntu):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

This PR makes ofono signal ordering more sensible:

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

Although this bug only happens for mako it is not impossible that it might have appeared for krillin too, as both plugins worked in a similar way.

For those interested, here is the event sequence that probably makes the bug appear:

1.- ofono_sim_register() is called. It calls ofono_modem_add_interface(), which calls g_idle_add() before notifying of the new interface.

2.- __ofono_sim_recheck_pin() is called. PinRequired is signalled.

3.- Now trigger_interface_update(), the argument to g_idle_add() in point 1, is called so SimManager interface is signalled.

4.- telepathy-ofono calls GetProps() but, surprise, no properties are there. This is because the SIM atom has not been notified that there is a SIM, so sim_get_properties() returns no reply.

5.- Present is finally signalled when ofono_sim_inserted_notify(TRUE) is called from the *ril/mtk plugin*. This can happen before of after the sequence described, as there is no coordination with rilmodem SIM driver. When it happens as described the bug appears.

Changed in ofono (Ubuntu):
status: Triaged → In Progress
Tony Espy (awe)
Changed in ofono (Ubuntu):
status: In Progress → Fix Committed
Tony Espy (awe)
Changed in ofono (Ubuntu RTM):
status: New → Triaged
importance: Undecided → High
Tony Espy (awe)
Changed in ofono (Ubuntu RTM):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
tags: added: rtm14
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-network (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ofono - 1.12.bzr6882+15.04.20141126-0ubuntu1

---------------
ofono (1.12.bzr6882+15.04.20141126-0ubuntu1) vivid; urgency=medium

  [ Alfonso Sanchez-Beato ]
  * grilreply.c, parcel.c, rilmodem: merge data and voice reg parsing
    This change splits the orginal parsing code for data and voice
    registration replies, cleaning up some of original parsing code
    which wasn't very elegant.
  * Makefile.am, rilmodem, src/sim*.*, include/sim.h,
    plugins/mtk.c, ril.c: enable SIM phonebook import support
  * rilmodem/sim.c, plugins/mtk.c, ril.c: fix SIM interface signals (LP: #1376250)
  * plugins/mtk.c: fix krillin slow socket disconnection (LP: #1388030)
  * Makefile.am, doc/mtk-settings-api.txt, mtkmodem,
    plugins/mtk.c, test, unit: support krillin 3g slot switch (LP: #1373388)
 -- Ubuntu daily release <email address hidden> Wed, 26 Nov 2014 01:44:00 +0000

Changed in ofono (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

seems to have been an ofono issue.

Changed in indicator-network:
status: Incomplete → Invalid
Changed in indicator-network (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

needed for bug #1373388

Changed in canonical-devices-system-image:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ofono - 1.12.bzr6886+15.04.20150206.1~rtm-0ubuntu1

---------------
ofono (1.12.bzr6886+15.04.20150206.1~rtm-0ubuntu1) 14.09; urgency=medium

  [ Alfonso Sanchez-Beato ]
  * rilmodem/sim.c, plugins/mtk.c, ril.c: fix SIM interface signals (LP: #1376250)

  * Makefile.am, doc/mtk-settings-api.txt, mtkmodem,
    plugins/mtk.c, test, unit: support krillin 3g slot switch (LP: #1373388)
 -- Ubuntu daily release <email address hidden> Fri, 06 Feb 2015 15:19:36 +0000

Changed in ofono (Ubuntu RTM):
status: Triaged → Fix Released
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
milestone: none → ww09-2015
Revision history for this message
Cédric Bellegarde (gnumdk) wrote :

This bug is always present here:
- Meizu MX4
- OTA5

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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