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

How to on|off flightmode from terminal? [answered]

asked 2015-01-14 11:02:16 +0200

Hello! Anybody knows how to on|off flightmode from terminal? I want to do this by cron, for to lower power consumptions. Thanks anyway!

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by eric
close date 2015-01-14 12:17:59.807481

2 Answers

Sort by » oldest newest most voted
7

answered 2015-01-14 11:54:02 +0200

kimmoli gravatar image

http://talk.maemo.org/showthread.php?p=1439380

flight mode on

dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:0 uint32:1

Flight mode off

dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:1 uint32:1
edit flag offensive delete publish link more

Comments

1

Thanks for the answer kimmoli!

zaharov.andrei ( 2015-01-14 13:44:53 +0200 )edit
5

answered 2015-01-14 11:59:14 +0200

filipb92 gravatar image

You could use mcetool, if not installed install with devel-su pkcon install mce-tools Then you can use mcetool --disable-radio=<master|cellular|wlan|bluetooth> use the one(s) you whish to turn off and mcetool --enable-radio=<master|cellular|wlan|bluetooth> to re-enable again mcetool --disable-radio=master set flight mode, no cellular, no wlan</master|cellular|wlan|bluetooth></master|cellular|wlan|bluetooth>

edit flag offensive delete publish link more

Comments

Run the command as nemo or as root?

simosagi ( 2015-01-14 12:29:40 +0200 )edit
1

you can run mcetool as user nemo

filipb92 ( 2015-01-14 12:52:09 +0200 )edit

Thanks! dd

zaharov.andrei ( 2015-01-14 13:44:03 +0200 )edit
1

Since update to to 2.1.2.3 (Kiiminkijoki) neither d-bus nor mcetool work from nemo user.

Self-Perfection ( 2017-10-18 16:13:48 +0200 )edit

So what command work if those 2 not anymore? I would like to use this command in Situations app, due none of network disable/enable functions work since that update :( .

liqquid ( 2018-02-04 17:59:45 +0200 )edit

Question tools

Follow
4 followers

Stats

Asked: 2015-01-14 11:02:16 +0200

Seen: 898 times

Last updated: Jan 14 '15