View Single Post
Posts: 36 | Thanked: 42 times | Joined on Jan 2010
#23
Originally Posted by nbc View Post
@JohnLF

Hum yes, I'm more a perl guy but that's a good idea, I could try to do that in python. Could be fun.
And to add a GUI, you can just create a conf file and the script called by dbus-scripts can read that file
Ok, I've done a python script that use a config file so it's easy to add a GUI. If I have time and some people ask for it I can try to build a package and why not a GUI.

You must copy the file w32g.py.txt (see below attached files) in /home/user/bin/w32g and follow the instruction at the beginning of this file to install it.

If you want a different configuration you can copy the file w32g.conf.txt to /home/user/.w32g.conf. If you don't want a different configuration there's no need to copy it now.

For information, the default configuration is :

Code:
[w32g]

### the comment reflect the default configuration
### true is true (case insensitive), everything else is false

### the command used to test the wifi connection before downgrading to 2g
### if you don't want to do test just delete after =
connection_test = sudo /bin/ping -c 1 www.google.com

### notification message when going to 3g
message_on_idle = 3G cellular mode set
### notification message when going to 2g
message_on_connected = 2G (GSM) cellular mode set

### shall we go back to 3g when wlan disconnect ?
#### if you want to have false just delete after =
change_on_idle = true
### shall we go back to dual or 3g ?
change_to_dual = true

### if you want go to 2g only when connected to some wlan you can add their wlan id here
### you can find the wlan id using the command 
### gconftool-2 -R /system/osso/connectivity/IAP
### For example :
### wifi = 91f493fb-7c89-4fc6-ac2c-b822923dde45 9ee5dd55-9a32-4ee9-9131-c464ad31d907
# wifi =
Attached Files
File Type: txt w32g.py.txt (2.3 KB, 191 views)
File Type: txt w32g.conf.txt (968 Bytes, 152 views)

Last edited by nbc; 2010-03-18 at 02:37.
 

The Following 3 Users Say Thank You to nbc For This Useful Post: