Mobile Data not working after switching SIM card
Hello,
I stayed a couple of months abroad where I used a local SIM card. It worked, data was available. I also performed system upgrades on my phone during my stay. My system is now SailfishOS 2.0.4.14 (Fiskarsinjoki).
But back in my home country, I put back my home SIM card in the phone and could not use any more mobile data, even phone's configuration was correct. I tried to reset my mobile data configuration (as explained here: https://jolla.zendesk.com/hc/en-us/articles/202505018#22) and reboot the phone but it did not work.
As I finally found out how to solve it, here is the workaround, awaiting for a real bug fix.
- Stop Ofono service by typing systemctl stop ofono.service in a console
- Go to the folder /var/lib/ofono/ and list its content. You will have two sub-folders for each SIM card you inserted in your phone, and other files. Folders names are a numeric sequence. In my phone, it looks like "206...86", "206...86-3", "310...50", 310...50-3", "525...15" and "525...15-3".
- Identify to which operator which folder is linked. Check the file gprs in each folder not ending by -3 to find useful information.
- Edit the file /var/lib/ofono/ril. Its content will look like this:
[Settings]
DefaultDataSim=206...86
Just replace the numeric sequence after DefaultDataSim by the one corresponding to your current SIM card (identified at step 3). - Restart ofono with the command systemctl start ofono.service
- It should work now...
I suspect that this bug is linked to the multi SIM support for Jolla C, as having a default SIM for data is useful if your phone has several SIMs inserted in it at the same time but not so much if you can only have one SIM card in it at the same time...
I can confirm this issue and workaround, having discovered the same method myself last night. It's a regression from 2.0.2, where hitting the 'Connect to Internet' action (followed by selecting the mobile data option) would allow new SIMs to be used.
I wonder if it's some side-effect of 2.0.4's change to jolla-settings-networking ('Set default data sim to "auto" for single SIM phone.').
stuart ( 2016-11-01 14:45:10 +0200 )editI had the same problem 3 months ago on Jolla1 and posted it here with workaround: https://together.jolla.com/question/141693/cant-connect-to-internet-after-using-sim-card-from-t-mobile/
Schturman ( 2016-11-01 19:47:29 +0200 )editThis is old bug ;)
Thanks! I changed operator and the phone could not get any data.connection, even APN was supposed to be fine. Found that in ril file the old sim was listed as default sim. Changed the number to match the new folder number and magic happened! Had to use tinyedit started with rights. Now it works!
mj ( 2017-02-22 23:43:36 +0200 )editIs it the Treminal I need to use to change that number? How? Thank you
hwicha ( 2017-02-28 11:41:28 +0200 )edit