We have moved to a new Sailfish OS Forum. Please start new discussions there.

Setting of WLAN or mobile data preference

asked 2013-12-28 23:50:23 +0200

strnous gravatar image

updated 2014-01-12 00:08:09 +0200

Internet connection settings should allow to set the preference of WLAN or mobile data connection over each other.

Currently when I move to an area with poor WLAN coverage (yet still working) I get switched to mobile data unnecessarily.

edit retag flag offensive close delete



Just deactivate mobile data when not wanted. As long as Wlan can be accessed it should in any case stick with it.

ramoth ( 2013-12-29 01:48:16 +0200 )edit

@ramoth Yes. I do that as a workaround but the switch to mobile data usually happens unnoticed. I also do not want to disable the mobile data completely. I would just like to switch to it automatically once there's no way to use the WLAN(s).

strnous ( 2013-12-29 01:53:32 +0200 )edit

That should be exactly, what it does if both are activated?!?

ramoth ( 2013-12-29 02:00:39 +0200 )edit

@ramoth It should but currently it's not. Often I have found the phone is using mobile data while there was a usable WLAN present at the very place. Also the phone should switch back to WLAN once it's usable again which also did not happened to me many times.

strnous ( 2013-12-29 02:21:55 +0200 )edit

Also it should be possible to prefer the mobile data over WLAN if the user wants for whatever reason.

strnous ( 2013-12-29 02:24:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-03-10 21:50:34 +0200

strnous gravatar image

It seems the preference could be set by adding the following line into /etc/connman/main.conf


I'm currently running with this configuration for about a week and the wlan/cellular switch seems to be much more reliable.

Also it seems it has a good influence on the "Problem with connection" errors. During the week I have only seen that problem once and it was sorted out by the system itself without reboot. Normally I have faced the problem mentioned several times a week.

If some other people could test the config to confirm/disprove, it would be highly appreciated.

edit flag offensive delete publish link more


Do I need to reload/restart connman or reboot the phone, after changing the conf-file?

prometoys ( 2014-03-11 00:24:57 +0200 )edit

@prometoys Definitely.

Either do "systemctl restart connman.service" or reboot the phone.

strnous ( 2014-03-11 00:41:38 +0200 )edit

Thanks for the hint. It's good that wifi has a higher priority than cellular. However I would like to make that decision for each application. For example I would like to limit media download (e.g. gpodder) to wifi only to protect my monthly data package. On the other hand I would love to limit Mitakuuluu to cellular to stop it from switching between wifi and 3g as the traffic does not really matter.

For other apps the preference for Wifi and fallback to cellular is great.

jollajo ( 2014-09-25 13:47:42 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2013-12-28 23:50:23 +0200

Seen: 1,046 times

Last updated: Mar 10 '14