I am on Sailfish OS 4.6.0.15 (Sauna) with a Xperia XA2 Ultra. My goal is to activate USB tethering to have a failover solution available for our Asus router. usb_moded is installed and started as described in the section “Internet Sharing” of the docs. But if I connect the USB-cable to the router only the 3 well known symbols are offered and not the 4th symbol about “Internet Sharing” as shown in the docs.
SSH into the terminal the command systemctl status … shows in red following message about a missing file or directory:
Blockquote
[defaultuser@XperiaXA2Ultra ~]$ devel-su systemctl restart usb-moded
Password:
[defaultuser@XperiaXA2Ultra ~]$ devel-su systemctl status usb-moded
Password:
● usb-moded.service - usb-moded USB gadget controller
Loaded: loaded (/usr/lib/systemd/system/usb-moded.service; disabled; vendor preset: enabled)
Active: active (running) since Sat 2024-10-05 15:39:20 +07; 35s ago
Main PID: 7619 (usb_moded)
Memory: 408.0K
CGroup: /system.slice/usb-moded.service
└─7619 /usr/sbin/usb_moded --systemd --force-syslog
Okt 05 15:39:19 XperiaXA2Ultra systemd[1]: Starting usb-moded USB gadget controller…
Okt 05 15:39:19 XperiaXA2Ultra usb_moded[7619]: usb_moded 0.86.0+mer66 starting
Okt 05 15:39:19 XperiaXA2Ultra usb_moded[7619]: init_done → reached
Okt 05 15:39:19 XperiaXA2Ultra usb_moded[7619]: CONFIGFS detected
Okt 05 15:39:19 XperiaXA2Ultra usb_moded[7619]: /config/usb_gadget/g1/functions/rndis_bam.rndis/ethadd
r: can’t open for writing: No such file or directory
Okt 05 15:39:19 XperiaXA2Ultra usb_moded[7619]: usb-moded started after init-done; forcing appsync sto
p
Okt 05 15:39:20 XperiaXA2Ultra systemd[1]: Started usb-moded USB gadget controller.
Do I have to create this path/file manually?
If someone could give an advice how to proceed from here onwards I would really appreciate. Please forgive me my lack of knowledge (also in Markdown).
Thank you for reading and for your help
It works for me without issues on Xperia XA2. I am just turning it on from UI, no command line needed. I only occationally use USB Switch (harbour-usb-switch) tool to choose USB connection mode.
In an afterthought I have a vague memory I had to install some package initially on the older SFOS version, when I started using it, since tethering back then was not available by default or something amount these lines.
I guess you have jolla-settings-networking-tethering installed, right?
@smyru and @247 thank you both for your fast replies. I just followed this article: Internet Sharing | Sailfish OS Documentation (section “Internet sharing over USB”). At the end of the command sequence I added “systemctl enable usb-moded” to ensure the usb-moded.service is auto-starting after rebooting SFOS.
But I still can see only this picture:
The 4th button “Internet sharing” does not appear. I tried every USB-cable which I can use to backup an iPad locally, thus “data” support of the cable is given.
I also tried the app “usb-switch” from Jolla AppStore but it does not do anything but asking for a beer.
I don’t know about “jolla-settings-networking-tethering” and I also could not find any information about it. Where can I find it? Could you please provide a link for further information? @247 you are lucky that yours worked out of the box, this makes me thinking if I should restart again from scratch, I mean re-install a fresh SOFS.
Thank you again.
anyway, i just tried it and it just works, i installed the package, enabled the service and now i’m writing you on the computer via usb tethering, really first try…
@smyru: yes, jolla-settings-networking-tethering is installed.
I tried my best to revert every step I have taken and re-startet the installation process again. Finally, it is working and the 4th symbol for Internet Sharing is shown on the display. I do not know what I have made wrong the first time.
Thank you both for your help and sorry to make you busy.
What is the recommended method to mark this topic as closed?