Reply
Thread Tools
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#1
I'm looking for the commands to setup some cron jobs in order to put my phone in plane mode at night.

Any idea? Thanks.
 

The Following User Says Thank You to romu For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#2
Code:
dbus-send --print-reply --system --dest=net.connman / net.connman.Manager.SetProperty string:OfflineMode variant:boolean:true
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#3
Originally Posted by coderus View Post
Code:
dbus-send --print-reply --system --dest=net.connman / net.connman.Manager.SetProperty string:OfflineMode variant:boolean:true
Great, thanks. And so I guess :

Code:
dbus-send --print-reply --system --dest=net.connman / net.connman.Manager.SetProperty string:OfflineMode variant:boolean:false
...to bring back the connections. Right?
 

The Following 3 Users Say Thank You to romu For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#4
this is correct!
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 4 Users Say Thank You to coderus For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:10.