PINE64
Plasma Mobile airplane / aeroplane mode / mobile off - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130)
+---- Thread: Plasma Mobile airplane / aeroplane mode / mobile off (/showthread.php?tid=13203)



Plasma Mobile airplane / aeroplane mode / mobile off - dcinoz - 02-22-2021

Hi,

Evening here and I normally put my phone in airplane / aeroplane mode i.e. would look for a toggle to disable modem / mobile data / wifi / BT if any are on.

I could find no such thing on Manjaro Plasma Mobile 20210221.
I panicked when I went to settings and saw internet had a tick - even though the Mobile Data icon in the top bar settings is not on....does that toggle not work?

So surprise, no mobile modem off either. Or could the Mobile Data icon actually toggle mobile / mobile data on / off?

I have my mobile modem on with data off due to cost.

I did not find a quick way to turn data on / off via ofono command.
Neither a way to turn mobile modem on / off via ofono.

I did a brutal
Code:
sudo pkill ofonod
and that worked - no more mobile icon in the top bar.

I lodged a bug report at https://gitlab.manjaro.org/manjaro-arm/issues/pinephone/plasma-mobile/-/issues/69

I appreciate any comments from anyone with more Plasma Mobile experience. Mobian has quirks including with their Airplane toggle (still not fixed....) but you can turn mobile on / off, data on / off.

I assume this bug report covers the mobile data icon toggle:
https://gitlab.manjaro.org/manjaro-arm/issues/pinephone/plasma-mobile/-/issues/9


RE: Plasma Mobile airplane / aeroplane mode / mobile off - dcinoz - 02-22-2021

I hoped the ofonoctl command as per https://git.sr.ht/~martijnbraam/ofonoctl

Code:
sudo ofonoctl offline
would work but it doesn't.

Same with modem power off command
Code:
sudo ofonoctl poweroff
it doesn't do anything.

and service start / stop / restart doesn't work either for ofonod, I don't know how to start / stop it properly.

Worked it out:

Stop ofono:
Code:
sudo systemctl stop ofono

Start ofono:
Code:
sudo systemctl start ofono

After ofono start (if turned off before), modem power is off and offline, so you need to do:
Code:
ofonoctl poweron && ofonoctl online

You can check the status with:
Code:
ofonoctl list
and for WWAN:
Code:
ofonoctl wan

Note that
Code:
ip a
and
Code:
ip route
do not show any WWAN routes so perhaps mobile data is actually off?


RE: Plasma Mobile airplane / aeroplane mode / mobile off - KNERD - 02-22-2021

(02-22-2021, 05:54 AM)dcinoz Wrote: Hi,

Evening here and I normally put my phone in airplane / aeroplane mode i.e. would look for a toggle to disable modem / mobile data / wifi / BT if any are on.

I could find no such thing on Manjaro Plasma Mobile 20210221.
I panicked when I went to settings and saw internet had a tick - even though the Mobile Data icon in the top bar settings is not on....does that toggle not work?

So surprise, no mobile modem off either. Or could the Mobile Data icon actually toggle mobile / mobile data on / off?

I have my mobile modem on with data off due to cost.

I did not find a quick way to turn data on / off via ofono command.
Neither a way to turn mobile modem on / off via ofono.

I did a brutal
Code:
sudo pkill ofonod
and that worked - no more mobile icon in the top bar.

I lodged a bug report at https://gitlab.manjaro.org/manjaro-arm/issues/pinephone/plasma-mobile/-/issues/69

I appreciate any comments from anyone with more Plasma Mobile experience. Mobian has quirks including with their Airplane toggle (still not fixed....) but you can turn mobile on / off, data on / off.

I assume this bug report covers the mobile data icon toggle:
https://gitlab.manjaro.org/manjaro-arm/issues/pinephone/plasma-mobile/-/issues/9


I just installed the same image, and see a "Mobile Data" button in the action center at upper right corner. Enable/Disable there


RE: Plasma Mobile airplane / aeroplane mode / mobile off - dcinoz - 02-23-2021

Mobile data doesn't actually turn it on / off it is always on, apparently, but ofonoctl doesn't get an ip address and set up a wwan route. If you do it manually and toggle mobile data 'off' it doesn't do anything. Missing scripts somewhere to do that?

Part of my post was about mobile being on without data and switching mobile off. There is no toggle option in the current settings to 'just' turn mobile on / off.


RE: Plasma Mobile airplane / aeroplane mode / mobile off - dcinoz - 02-25-2021

Script to turn modem on / off and enable / disable data is available here:
https://forum.pine64.org/showthread.php?tid=13110&pid=90498#pid90498