← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1435328] Re: Leaving Wifi does not connect to mobile carrier data (GSM)

 

@Alfonso

Regarding comment #26, to be clear, your exact scenario was this:

1. Install SIM with no data credit in slot1; this connection comes up, but any attempt to send/receive data fails
2. Activate WiFi, and wait till it associates with an AP
3. Disable WiFi
( this forces a disconnect of the modem, and the corresponding route configuration fails )

What I see from the logs is the Netlink failures, at which point I also
see the NM device state go from activated to failed ( reason: ip-config-
unavailable ).  NM tries context1 ( 'Internet movil' ) again and it
fails the next time due to 'no-secrets', which seems odd.  It then moves
on and tries context3 ( '___ubuntu custom internet apn' w/a null APN
name ) and each time it fails with reason = 'modem-no-carrier'.  This is
odd, as I only ever see a single 'now in state registered' ( output by
nm-modem-ofono.c::update_ofono_enabled() ), and never see the modem
become unregistered ( which happens when Online, Attached or Powered go
FALSE ).

Looking at the NM ofono activation code, although the error printed is
"could not activate context, modem is not registered', the code actually
just checks whether the modem is in REGISTERED state when it tries to
connect.  It's possible that the modem state is still CONNECTED, and
somehow this didn't get reset to REGISTERED when the Netlink errors
occurred?  The modem state is only set back to REGISTERED in
disconnect_done () and update_ofono_enabled ().  Perhaps in this case,
since the modem state isn't reset, the subsequent activation attempts
will all fail.

If you can still reliably reproduce, could you turn on NM debug logging
( sudo nmcli general logging level debug ) and try to reproduce again
and provide system logs.  I will also try to force a modem disconnect (
via tinfoil wrapping ), and see what happens on vivid.

This theory also provides more weight to the thought that this is a
vivid-only issue with NM, as the ofono modem state code is radically
different in NM 0.9.8.

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

Title:
  Leaving Wifi does not connect to mobile carrier data (GSM)

Status in the base for Ubuntu mobile products:
  Confirmed
Status in ofono package in Ubuntu:
  In Progress
Status in ofono package in Ubuntu RTM:
  In Progress

Bug description:
  After leaving my home or work wifi, my Bq phone cannot connect to the
  data from my mobile carrier. The only thing that works is rebooting
  the phone.

  Steps to reproduce:

  1- Connect your phone to password secure Wifi.
  2- Suspend phone.
  3- Leave wifi area and resume phone
  4- Wait for 3g data to kick in (appears 3g indicator instead of wifi)
  5- No connection established. I have waited for more than 30 mins.

  6- A reboot of the phone fixes this issue.

  Really annoying to have to reboot phone 3-4 times a day.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1435328/+subscriptions