![]() |
How to set 3G/2G/Dual from Terminal?
I'm scheduling profiles, connections, etc. with fcron, as described in thread: http://talk.maemo.org/showthread.php?t=38417
The only thing that's missing is scheduling 3G/2G/Dual mode for obvious purposes - battery life. I don't think there is a dbus call for it, is there? I checked with dbus-monitor and nothing came up while changing modes. So is it possible with echoing in a certain "file"? Telepathy? Something entirely different? I hope that author of 3G/2G applet can help us, maybe add code for this option in his applet if it isn't already possible in xterm... Ideas? |
Re: How to set 3G/2G/Dual from Terminal?
Quote:
To get the current mode: Code:
dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_selected_radio_access_technology 0 means it's in Dual mode; 1 means it is in GSM-only mode; 2 means it is in 3G-only mode. To set it: Code:
dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:0 |
Re: How to set 3G/2G/Dual from Terminal?
:eek: Wow, thank you!
PS: Possible bug in your applet (not sure): if the phone is set to 3G or 2G and then changed to Dual via dbus, the applet doesn't reflect the change. It does, however, when I'm switching between 2G and 3G. |
Re: How to set 3G/2G/Dual from Terminal?
Quote:
|
Re: How to set 3G/2G/Dual from Terminal?
Yes, that should do it... But test if it works when changing 3G -> Dual. I think that sometimes phone doesn't reconnect then (or maybe I confused that with my other phone).
|
All times are GMT. The time now is 10:55. |
vBulletin® Version 3.8.8