[Pro5] Mobile data setting not remembered between reboots

Bug #1613327 reported by Tomas Öqvist on 2016-08-15
106
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Canonical System Image
High
John McAleely
turbo
Undecided
Unassigned
ofono (Ubuntu)
Undecided
Alfonso Sanchez-Beato
ubuntu-system-settings (Ubuntu)
Low
Unassigned

Bug Description

Pro 5 on rc-proposed.

Steps to reproduce:
1. Go to mobile settings
2. Change connection type to 2G/3G/4G
3. Reboot device
4. Go to mobile settings again and connection type has reverted to 2G only

I guess this is not an intended feature. If so, I strongly suggest that the user is able to choose the default setting.

From the duplicate bug user first experienced in rc-proposed system image 153, release date August 9th 2016 which contained
ofono (1.17.bzr6919+15.04.20160719.1-0ubuntu1)
Title: ofono support for automatically switching the 4g sim slot capability ( vs. the method used for krillin which required a MTK-specific DBus call to switch the 3g capability between SIM slots ).

Pat McGowan (pat-mcgowan) wrote :

The technology preference is stored at the lower layers, or even in the modem firmware. It should never default to 2G unless it detects that as the only available technology.

Changed in ofono (Ubuntu):
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Tomas Öqvist (tomoqv) wrote :

I will test this further. I have fairly bad reception in my neighborhood, but I do get 3G and even 4G now and then, so it seems unlikely that 2G would be the only available network every time I reboot.

Jonas G. Drange (jonas-drange) wrote :

To see what the lower level (ofono) thinks the technology settings is set to, run

    $ /usr/share/ofono/scripts/list-modems -p

(You can safely attach the output of the command to this bug if the -p flag is provided)

Changed in ubuntu-system-settings (Ubuntu):
status: New → Incomplete
Tomas Öqvist (tomoqv) wrote :
Download full text (3.6 KiB)

phablet@ubuntu-phablet:~$ /usr/share/ofono/scripts/list-modems -p
[ /ril_1 ]
    Interfaces = org.ofono.ConnectionManager org.ofono.CallForwarding org.ofono.CallBarring org.ofono.CallSettings org.ofono.SupplementaryServices org.ofono.NetworkRegistration org.ofono.Phonebook org.ofono.PushNotification org.ofono.MessageManager org.ofono.NetworkTime org.ofono.MessageWaiting org.ofono.RadioSettings org.ofono.SimManager org.ofono.CallVolume org.ofono.VoiceCallManager
    Features = gprs ussd net sms rat sim
    Revision = S333_M86_20151002_CHNOPEN_MZ024
    Powered = 1
    Model = Fake Modem Model
    Type = hardware
    Online = 1
    Manufacturer = Fake Manufacturer
    Emergency = 0
    Lockdown = 0
    Serial = XXXXXXXXXXXXXXX
    [ org.ofono.ConnectionManager ]
        Suspended = 0
        Attached = 1
        Powered = 1
        RoamingAllowed = 1
        Bearer = edge
    [ org.ofono.CallForwarding ]

        VoiceNotReachable = XXXXXXXXXXXXXXX
        VoiceNoReply = XXXXXXXXXXXXXXX
        VoiceBusy = XXXXXXXXXXXXXXX
        VoiceNoReplyTimeout = 30
        VoiceUnconditional =
        ForwardingFlagOnSim = 0
    [ org.ofono.CallBarring ]
        VoiceOutgoing = disabled
        VoiceIncoming = disabled
    [ org.ofono.CallSettings ]
        VoiceCallWaiting = enabled
        CalledLinePresentation = disabled
        ConnectedLinePresentation = unknown
        ConnectedLineRestriction = unknown
        CallingLinePresentation = enabled
        CallingLineRestriction = off
        CallingNamePresentation = unknown
        HideCallerId = default
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.NetworkRegistration ]
        Strength = 83
        LocationAreaCode = XXXXX
        Mode = auto
        CellId = XXXXX
        Technology = edge
        Status = registered
        Name =
    [ org.ofono.Phonebook ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        ServiceCenterAddress = +46707990001
        Alphabet = default
        Bearer = cs-preferred
        UseDeliveryReports = 0
    [ org.ofono.NetworkTime ]
    [ org.ofono.MessageWaiting ]
        VoicemailMessageCount = 0
        VoicemailWaiting = 0
        VoicemailMailboxNumber =
    [ org.ofono.RadioSettings ]
        TechnologyPreference = gsm
        FastDormancy = 0
        AvailableTechnologies = gsm umts lte
    [ org.ofono.SimManager ]
        FixedDialing = 0
        SubscriberIdentity = XXXXXXXXXXXXXXX
        BarredDialing = 0
        Present = 1
        MobileNetworkCode = 07
        LockedPins =
        Retries =
        PinRequired = none
        MobileCountryCode = 240
        PreferredLanguages = sv en fi de
        CardIdentifier = XXXXXXXXXXXXXXXXXXXX
        SubscriberNumbers =
    [ org.ofono.CallVolume ]
        Muted = 0
        SpeakerVolume = 0
        MicrophoneVolume = 0
    [ org.ofono.VoiceCallManager ]
        EmergencyNumbers = 112 911

[ /ril_0 ]
    Interfaces = org.ofono.RadioSettings org.ofono.SimManager org.ofono.CallVolume org.ofono.VoiceCallManager
    Features = rat sim
    Revision = S333_M86_20151002_CHNOPEN_MZ024
    Powered = 1
    Model = Fake Modem Model
    Type = hardware
    On...

Read more...

Tomas Öqvist (tomoqv) wrote :

Sorry, didn't catch the whole output in #4. Is the output in #5 what you wanted?

Tomas Öqvist (tomoqv) wrote :

Oh, forgot to add that I did a fresh reboot before issuing the command. The mobile settings reverted to 2G only (as usual), although the mobile data icon prior to reboot showed 4G.

Jonas G. Drange (jonas-drange) wrote :

Right, thanks Tomas. It is then most likely the lower part of the stack (ofono, hardware) that fails to retain the setting.

One other ouput that would be interesting would be ofono logs, and that's normally found in /var/log/syslog, as well as the same output as in #5, except after you've successfully selected 4g (to make sure it's actually set properly).

Thanks!

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
Tomas Öqvist (tomoqv) wrote :

Thanks Jonas,

I have attached the logs.

Launchpad Janitor (janitor) wrote :

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

Changed in ofono (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Pat McGowan (pat-mcgowan)
importance: Undecided → High
milestone: none → 14
status: New → Confirmed
description: updated
tags: added: regression-proposed
_Sven_ (sw-8) wrote :

I got this issue since rc-proposed image 153, release date August 9th 2016.
Not fixed till now (rc-proposed image 184).

I'm able to reproduce this on turbo by just switching to flight mode and back a few times without needing to reboot (it doesn't change the setting every time, but does it pretty frequently)

This is happening also when phone loose the connection due to poor signal strength and it reconnects back to 2G even there is 3G, H, 4G available.
Pro 5, OTA-13, stable, meizu-pd.en

summary: - Mobile data setting not remembered between reboots
+ [Pro5] Mobile data setting not remembered between reboots
Changed in canonical-devices-system-image:
assignee: Pat McGowan (pat-mcgowan) → John McAleely (john.mcaleely)
Lorn Potter (lorn-potter) wrote :

Just wanted to comment that I have seen the same thing as comment #13.

Jonas G. Drange (jonas-drange) wrote :

See bug 1629686 for more logging/discussion.

Changed in canonical-devices-system-image:
milestone: 14 → backlog
areteichi (areteichi) wrote :

Just wanted to point out that this bug still exists for Pro 5 in OTA-14.

Michael Zanetti (mzanetti) wrote :

While this isn't a real fix, I have found a workaround for this bug so people can at least use their Pro5 without getting annoyed too much by this:

create a file /home/phablet/bin/swithto3g with this content (create the "bin" directory and make sure the file is executable):
----------------------------------------
#!/bin/sh

pref=`/usr/share/ofono/scripts/get-tech-preference | cut -d " " -f 3`
while [ "$pref" != "lte" ]; do
    /usr/share/ofono/scripts/set-tech-preference lte
    sleep 5
    pref=`/usr/share/ofono/scripts/get-tech-preference | cut -d " " -f 3`
done
echo $pref
-----------------------------------------

Then, create another file /home/phablet/.config/upstart/3gfix.conf with this content:
-----------------------------------------
$ cat .config/upstart/3gfix.conf
start on started unity8
exec /home/phablet/bin/switchto3g
-----------------------------------------

This will, on every reboot, run the script which will in turn will set the tech preference to 4G. Seems to work well for me so far.

Michael Zanetti (mzanetti) wrote :

sorry, the line "$ cat .config/upstart/3gfix.conf" in the previous comment is not supposed to be actual content of the file... leave that one away.

Tomas Öqvist (tomoqv) wrote :

@mzanetti

What should I use for hspa/hspa+ when I am based in Sweden? lte doen nothing for me in your script.

Thanks,
Tomas

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

Duplicates of this bug

Other bug subscribers

Bug attachments