View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#735
Originally Posted by TMavica View Post
Can show 3G, Dual, 2G instead of UMTS or GSM?
For that, use:

Code:
qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.SelectionMode
(You'll need to run it with develsh)

Originally Posted by Win7Mac View Post
I'm also thinking about a modified script, something like this
Code:
#!/bin/sh

mode=$(develsh -c "qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology")
if [[ $mode -e GSM ]]
then print "{{yellow}}2G"
fi
if [[ $mode -e UMTS ]]
then print "{{yellow}}3G"
fi
Please correct to make it work.
Here is what I have for changing the icon for cell-network:

Code:
#!/bin/sh

tech=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.Technology)
gsm='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm.png>>'
umts='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g.png>>'
if [ $tech == "GSM" ]
then echo -n $gsm
fi
if [ $tech == "UMTS" ]
then echo -n $umts
fi
... and for data connection:

Code:
#!/bin/sh

DT=$(qdbus --system com.nokia.csd.CSNet /com/nokia/csd/csnet com.nokia.csd.CSNet.RadioAccess.DataTechnology)
NT=$(qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkType org.maemo.contextkit.Property.Get | sed q)
wlan='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-wlan.png>>'
umts='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-3g.png>>'
egprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-25g.png>>'
gprs='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-gsm.png>>'
hspa='<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-35g.png>>'
if [ $NT == "WLAN" ]
then echo -n $wlan
else if [ $DT == "GPRS" ]
then echo -n $gprs
else if [ $DT == "EGPRS" ]
then echo -n $egprs
else if [ $DT == "UMTS" ]
then echo -n $umts
else if [ $DT == "HSPA" ]
then echo -n $hspa
fi
fi
fi
fi
fi
Both of these have to be called with develsh instead of sh. You also probably want to handle the no connection case somehow (in BB, in script or leave empty). Tying these to {cell-signal-strength} seem to keep them pretty much up to date, but I'm pretty sure it will use some battery, too.

Originally Posted by Win7Mac View Post
Also, I noticed that {cell-network} doesn't work.
Works for me.
 

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