..
phew!! good luck everyone.
101010012032 - ALERT! SIM ERROR! After 2398 seconds. Battery chrg status false <-- I was on TIM before 101010012042 - ALERT! SIM ERROR! After 11 seconds. Battery chrg status false 101010012123 - ALERT! SIM ERROR! After 40 seconds. Battery chrg status false 101010012134 - ALERT! SIM ERROR! After 11 seconds. Battery chrg status false 101010012144 - ALERT! SIM ERROR! After 10 seconds. Battery chrg status false 101010012202 - ALERT! SIM ERROR! After 18 seconds. Battery chrg status false 101010012203 - ALERT! SIM ERROR! After 1 seconds. Battery chrg status false 101010012204 - ALERT! SIM ERROR! After 1 seconds. Battery chrg status false 101010012205 - ALERT! SIM ERROR! After 1 seconds. Battery chrg status false 101010012206 - ALERT! SIM ERROR! After 1 seconds. Battery chrg status false 101010012208 - ALERT! SIM ERROR! After 2 seconds. Battery chrg status false 101010012312 - ALERT! SIM ERROR! After 64 seconds. Battery chrg status false 101010012338 - ALERT! SIM ERROR! After 26 seconds. Battery chrg status false 101010012404 - ALERT! SIM ERROR! After 26 seconds. Battery chrg status false 101010012452 - ALERT! SIM ERROR! After 48 seconds. Battery chrg status false 101010012503 - ALERT! SIM ERROR! After 11 seconds. Battery chrg status false 101010012518 - ALERT! SIM ERROR! After 15 seconds. Battery chrg status false 101010012529 - ALERT! SIM ERROR! After 11 seconds. Battery chrg status false 101010012555 - ALERT! SIM ERROR! After 26 seconds. Battery chrg status false 101010012602 - ALERT! SIM ERROR! After 7 seconds. Battery chrg status false 101010012641 - ALERT! SIM ERROR! After 39 seconds. Battery chrg status false 101010012712 - ALERT! SIM ERROR! After 31 seconds. Battery chrg status false
..
phew!! good luck everyone.#!/bin/sh
echo "$(date +%Y/%d/%y:%H.%M.%S) -- START" >> /var/log/checksim.log
echo $$ > /var/run/sim.pid
while true; do
INTERVAL=`date +%S`
IMSI=`dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.get_imsi 2>/dev/null | grep string | cut -f 5 -d " " | sed "s/\"//g"`
TIMESTAMP=`date +%Y/%d/%y:%H.%M.%S`
case $INTERVAL in
00|0000|1500|3000|4500)
echo "$TIMESTAMP -- MARK" >> /var/log/checksim.log
;;
esac
if [ -z $IMSI ]; then
sleep 5
echo "$TIMESTAMP -- moving to 2G" >> /var/log/checksim.log
dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:1
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"SWITCH TO 2G!" uint32:0 string:"OK"
sleep 3600
TIMESTAMP=`date +%Y/%d/%y:%H.%M.%S`
echo "$TIMESTAMP -- moving back to 3G/dual" >> /var/log/checksim.log
dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:0
fi
sleep 1
done
| The Following User Says Thank You to maddler For This Useful Post: | ||