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

mce-tools, does it work?

asked 2018-02-09 09:41:45 +0300

fishandchips gravatar image

updated 2018-02-09 10:37:16 +0300

jiit gravatar image

Step1, install:

pkcon install mce-tools

Step2, run:

mcetool --disable-radio=wlan

Nothing happens. mcetool is at v1.90.0.1 on a Xperia X running 2.1.3.7 (Kymijoki), device adaption 0.0.1.18.

edit retag flag offensive close delete

Comments

1

Some commands work, some don't. The commands you are querying, did work, but are not working now. Sad, I wonder how much more of the OS will go backwards before it starts actually going forwards.

Spam Hunter ( 2018-02-09 11:39:29 +0300 )edit

4 Answers

Sort by » oldest newest most voted
3

answered 2018-02-09 13:03:59 +0300

phklrz gravatar image

Hello,

Indeed, even as root (devel-su), in some conditions it does nothing. That's why I use 'connmanctl' :

connmanctl disable wifi

edit flag offensive delete publish link more

Comments

thanks. The use case here is to disable the "cellular" connection. Not disable a cellular data connection, but disable the 2G/3G/4G connection. I could not disable "cellular" with "connmanctl".

fishandchips ( 2018-02-09 15:39:02 +0300 )edit
1

connmanctl enable offline

phklrz ( 2018-02-09 17:14:45 +0300 )edit
1

answered 2018-02-09 19:37:03 +0300

spiiroin gravatar image

In N9 and earlier Nokia devices mce was in control of radio states.

The logic still exists in mce, but as the related services have changed it does not really work anymore like it used to.

But, as a backwards compatibility feature, mce "master" radio toggle mirrors changes in/to connman OfflineMode.

Basically this means that the following commands work (but are privileged, so not as a regular nemo user):

mcetool --enable-radio=master
mcetool --disable-radio=master

And the rest of the radio bits have no real effect.

edit flag offensive delete publish link more
0

answered 2018-02-09 21:48:08 +0300

fishandchips gravatar image

Thanks. Both "connmanctl enable offline" and "mcetool --disable-radio=master" does the job. But they seems both to enter "flight mode" and cut off all radios. I'm just want to disable the 2-4G connection and keep any other radio up.

The use case is actualy to cut off cellular when connected to my car Bluetooth. I'm trying with "Situations" - to call out a script to do this (since Situations does go offline at all). A possible workaround is to let the script run, disable evrything and re- enable the Bluetooth radio.

Many thanks to all participants to my question.

edit flag offensive delete publish link more
0

answered 2018-02-10 02:29:10 +0300

LVPVS gravatar image

Hei @fishandchips,

I'm not going to start the use-the-search-function-speech, but it can prove helpful every once in a while. :)

Back in the day, I was having the same issue. Check this out.

LVPVS out.

edit flag offensive delete publish link more

Comments

thanks for not pulling that speech. However the commands with dbus-send just downs the data- connection. It does not offline the entire 2-4G radio. Those dbus-send commands act just at toggelig a data connection from the pulldown. I dont want calls and SMS/MMS while driving.

fishandchips ( 2018-02-10 16:23:53 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2018-02-09 09:41:45 +0300

Seen: 1,001 times

Last updated: Feb 10 '18