![]() |
2014-03-05
, 21:50
|
|
Posts: 126 |
Thanked: 59 times |
Joined on Jan 2011
|
#52
|
This is the correct way, only cellular should be disabled now. If it does not, then that is a bug.
You can go to flight mode via connman like this
Code:dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Manager.SetProperty string:"OfflineMode" variant:boolean:true
dbus-send --system --type=method_call --print-reply --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
![]() |
2014-04-02
, 06:42
|
Posts: 959 |
Thanked: 3,427 times |
Joined on Apr 2012
|
#53
|
![]() |
2014-04-16
, 18:50
|
Posts: 84 |
Thanked: 79 times |
Joined on Dec 2013
|
#54
|
![]() |
2014-04-16
, 19:52
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#55
|
Anyone now how to get GPS-coordinates through dbus? Or some other simple way that can be used from a shell script?
![]() |
2014-04-17
, 06:01
|
Posts: 84 |
Thanked: 79 times |
Joined on Dec 2013
|
#56
|
![]() |
2014-04-17
, 10:03
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#57
|
Yes, I found the Geoclue interface, but didn't mess around with create. So that's one step fruther, thanks.
If I don't find anything else. I'll guess I'll have to write a small utility in c++. But it's fun to see how much that can be acomplished in pure(*) shell.
* What ever pure means. dbus-send, mcetool etc. aren't shell commands. But they would be available in a shell ready nemo/sailfish install.
![]() |
2014-04-17
, 10:07
|
Posts: 131 |
Thanked: 241 times |
Joined on Feb 2012
|
#58
|
The Following User Says Thank You to HolgerN For This Useful Post: | ||
![]() |
2014-04-17
, 14:49
|
Posts: 37 |
Thanked: 26 times |
Joined on Aug 2013
@ Finland
|
#59
|
![]() |
2014-04-17
, 15:49
|
Posts: 84 |
Thanked: 79 times |
Joined on Dec 2013
|
#60
|
I have same thing in mind. Unfortunately I could not find any examples on how to interface to the positioning with c (or any other language either, bummer...)
The manager-api.txt and technology-api.txt are the most useful ones to check.