Thread: WLAN Shortcut
View Single Post
Posts: 38 | Thanked: 16 times | Joined on Dec 2009
#7
Originally Posted by juahan View Post
Anyone found a way to open (and close) WLAN-connection with a shortcut on desktop? Can it be done in terminal?
I can disconnect from WLAN or cellular data just by typing disconnect in the terminal, but I'm not sure if that's always been there or added by Matan's awesome MOD to make the phone more keyboard friendly.. anyway, if the command doesn't work just create a file called disconnect in /usr/bin, with this in it (one line):
Code:
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
Of course you can just type the same text in terminal and it'll work, but this gives it a shorter name. And for all I know, you can get this on desktop just by making a shortcut where Exec=osso-xterm 'disconnect'


You can also connect to a specific WLAN or GPRS network, it can be done with this:
Code:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP_ID uint32:0
IAP_ID can be found using the command
Code:
gconftool -R /system/osso/connectivity/IAP
More at the wiki

Last edited by low life; 2010-02-25 at 16:09.
 

The Following 2 Users Say Thank You to low life For This Useful Post: