[mako] after transitioning to Attached = 0; ofono never transitions back to Attached = 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
ofono (Ubuntu) |
Fix Released
|
High
|
Tony Espy |
Bug Description
This is the relevant excerpt from my syslog:
Oct 2 22:10:31 ubuntu-phablet kernel: [ 862.705020] adjust_soc: ibat_ua = -220300, vbat_uv = 4375587, soc = 96, batt_temp=306
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet dnsmasq[2077]: setting upstream servers from DBus
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet dbus[653]: [system] Activating service name='org.
Oct 2 22:10:43 ubuntu-phablet whoopsie[1495]: offline
Oct 2 22:10:43 ubuntu-phablet NetworkManager[
Oct 2 22:10:43 ubuntu-phablet dbus[653]: [system] Successfully activated service 'org.freedeskto
Oct 2 22:10:51 ubuntu-phablet kernel: [ 882.695192] adjust_soc: ibat_ua = -216800, vbat_uv = 4375587, soc = 96, batt_temp=307
Oct 2 22:11:03 ubuntu-phablet NetworkManager[
Oct 2 22:11:11 ubuntu-phablet kernel: [ 902.685151] adjust_soc: ibat_ua = -214500, vbat_uv = 4375293, soc = 96, batt_temp=308
Oct 2 22:11:31 ubuntu-phablet kernel: [ 922.675080] adjust_soc: ibat_ua = -213400, vbat_uv = 4376176, soc = 96, batt_temp=308
Oct 2 22:11:45 ubuntu-phablet ofonod[915]: ril_deactivate_
Oct 2 22:11:51 ubuntu-phablet kernel: [ 942.665160] adjust_soc: ibat_ua = -208900, vbat_uv = 4376176, soc = 96, batt_temp=308
Oct 2 22:12:11 ubuntu-phablet kernel: [ 962.655150] adjust_soc: ibat_ua = -205400, vbat_uv = 4376766, soc = 96, batt_temp=308
Oct 2 22:12:31 ubuntu-phablet kernel: [ 982.645170] adjust_soc: ibat_ua = -195800, vbat_uv = 4374701, soc = 96, batt_temp=308
This test was achieved by wrapping a Nexus 4 in tinfoil to block radio signals. When tinfoil is added; the connection properly drops and is disconnected by NetworkManager (note there is one message being sent that ofono never seems to respond to). Ofono successfully transitions to Attached = 0; Status = searching, etc. to indicate the GPRS connection was severed.
When tinfoil is removed, oFono eventually moves back to Status = registered, but Attached never gets set back to 1. Because of this, NetworkManager cannot activate a data session. The context still appears to be active throughout, though.
[ /ril_0 ]
Features = sms net gprs sim
Emergency = 0
Powered = 1
Lockdown = 0
Interfaces = org.ofono.
Online = 1
Model = Fake Modem Model
Revision = M9615A-
Type = hardware
Serial = <omitted>
Manufacturer = Fake Manufacturer
[ org.ofono.
Muted = 1
[ org.ofono.
[ org.ofono.
Status = registered
Strength = 22
Name = Bell
Mode = auto
Technology = umts
CellId = <omitted>
[ org.ofono.
[ org.ofono.
Attached = 0
Powered = 1
[ org.ofono.
[ org.ofono.
Retries =
LockedPins =
Present = 1
PinRequired = none
[ /ril_0 ]
[ /ril_0/context1 ]
Username =
Protocol = ip
Name = Internet
Settings = { DomainNameServe
Active = 1
Password =
Type = internet
Related branches
- Dave Morley (community): Approve (tested it in real life on maguro)
- Alfonso Sanchez-Beato: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 260 lines (+93/-39)2 files modifieddrivers/rilmodem/gprs-context.c (+21/-16)
drivers/rilmodem/gprs.c (+72/-23)
Changed in ofono (Ubuntu): | |
assignee: | nobody → Tony Espy (awe) |
Changed in ofono (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in network-manager (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in ofono (Ubuntu): | |
importance: | Undecided → High |
Changed in network-manager (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
root@ubuntu- phablet: /# /usr/share/ ofono/scripts/ list-modems CallVolume org.ofono. MessageManager org.ofono. NetworkRegistra tion org.ofono. ConnectionManag er org.ofono. NetworkTime org.ofono. SimManager org.ofono. VoiceCallManage r CallVolume ]
SpeakerVolume = 0
MicrophoneVolu me = 0 MessageManager ] NetworkRegistra tion ]
LocationAreaCo de = 3218
MobileCountryC ode = 234
MobileNetworkC ode = 33 ConnectionManag er ]
RoamingAllowed = 0 NetworkTime ] SimManager ]
MobileCountryC ode = 234
FixedDialing = 0
SubscriberNumb ers = 07572378845
PreferredLangu ages = en
BarredDialing = 0
CardIdentifier = 8944302031557237537
MobileNetworkC ode = 30
SubscriberIden tity = 234308342877614 VoiceCallManage r ]
EmergencyNumbe rs = 112 999 911
[ /ril_0 ]
Features = sms net gprs sim
Emergency = 0
Powered = 1
Lockdown = 0
Interfaces = org.ofono.
Online = 1
Model = Fake Modem Model
Revision = I9250XXLJ1
Type = hardware
Serial = 351554052322998
Manufacturer = Fake Manufacturer
[ org.ofono.
Muted = 1
[ org.ofono.
[ org.ofono.
Status = registered
Strength = 16
Name = T-Mobile Orange
Mode = auto
Technology = umts
CellId = 210926480
[ org.ofono.
Attached = 0
Powered = 1
[ org.ofono.
[ org.ofono.
Retries =
LockedPins =
Present = 1
PinRequired = none
[ org.ofono.
root@ubuntu- phablet: /# /usr/share/ ofono/scripts/ list-contexts rs=149. 254.230. 7,149.254. 192.126, Method=static Netmask= 255.255. 255.0 Address= 10.151. 149.138 Interface=rmnet0 Gateway= 10.151. 149.1 }
IPv6.Settings = { }
AccessPointNam e = general.t-mobile.uk
[ /ril_0 ]
[ /ril_0/context1 ]
Username = User
Protocol = ip
Name = Internet
Settings = { DomainNameServe
Active = 1
Password = mms
Type = internet