how to enable tethering over wifi from command line and/or by default?

asked 2019-07-17 10:44:03 +0200

iourine gravatar image

Given: Jolla phone with broken screen that may fail completely at any time. I still need to use it as a wifi router to share my LTE connection. I do have access to it via USB in tethering and developer modes. Sailfish version is the latest (3.something).

  1. How to switch tethering over wifi on from the command line?

  2. How to set it as a default mode so that it would be always switched on?

I found an advice here, dated 2015, to install connman-tools. But the package is not available now.

Tried to edit /etc/connman/main.conf as follows:

................

SingleConnectedTechnology = true

PreferredTechnologies = cellular,bluetooth

TetheringTechnologies = wifi

PersistentTetheringMode = true

...............

but wifi always switches on in station mode, not the access point. Any other ideas?

edit retag flag offensive close delete

Comments

You could try adapting the script from this question maybe:
https://together.jolla.com/question/170006/xperia-x-wlan-sharing-not-working/

szopin ( 2019-07-17 17:56:35 +0200 )edit

btw connman-tools seems to be still available, at least on my phone it wants to install 1.32+git65-1.25.2.jolla.armv7hl

szopin ( 2019-07-17 18:02:17 +0200 )edit

Thanks szopin, but there is no /sys/module/bcmdhd in Jolla Phone 8-(

wlan0 is really mastered by tether while being set to this mode (from screen, blindly), but when I do

ip link set dev wlan0 nomaster

the tether device is killed completely. Does anyone know how to create it again?

As to connman-tools, at my phone it is not available... which SF version do you run (mine is 3.0.3.10) and how do you find it?

iourine ( 2019-07-19 20:40:54 +0200 )edit

I'm on 3.0.3.8 and it's listed under (jolla), so the default one, maybe try to 'su-devel pkcon refresh'?

szopin ( 2019-07-19 21:01:58 +0200 )edit

Thank you, it works. Now I can write a systemctl unit to start tethering from the very beginning.

iourine ( 2019-07-20 11:04:51 +0200 )edit