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

Enable mobile data from terminal [answered]

asked 2018-03-29 19:55:33 +0200

vadd98 gravatar image

Hi, I have an old jolla phone with a broken touch screen which I don't use anymore, the only way to communicate with it is via ssh. I'd like to use it as a mobile wifi hotspot, but I don't know how to enable mobile data via ssh. I succeded in enabling 4g, wifi and even the hotpost via ssh, but in no way I succeded in enabling mobile data, neither when I started the hotspot. What could I do?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2018-04-01 14:40:03.776267

Comments

Have you already looked for some DBus calls?

takimata ( 2018-03-29 22:02:35 +0200 )edit

Yes, I did. I tried many different methods found on this site which featured dbus but none of them worked

vadd98 ( 2018-03-30 17:15:29 +0200 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2018-03-31 23:44:40 +0200

Spam Hunter gravatar image
$ devel-su connmanctl enable cellular
  Password: <your password>

  Enabled cellular
edit flag offensive delete publish link more
2

answered 2018-04-01 13:48:29 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-04-01 13:48:29 +0200

vadd98 gravatar image

I solved manually starting the connman service, then I did

devel-su connmanctl enable cellular

and then I did

cell=$(/usr/lib/qt5/bin/qdbus --system net.connman|grep service|grep cell) dbus-send --system --print-reply --dest=net.connman $cell net.connman.Service.SetProperty string:"AutoConnect" variant:boolean:true

Thanks to everybody for your help

edit flag offensive delete publish link more
1

answered 2018-03-30 17:57:02 +0200

phklrz gravatar image

Hello,

have you tried:

devel-su connmanctl enable cellular

?

edit flag offensive delete publish link more

Comments

Yes, but it gave me the error that "The name net.connman was not provided by any .service files"

vadd98 ( 2018-03-30 19:20:59 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2018-03-29 19:55:33 +0200

Seen: 491 times

Last updated: Apr 01 '18