View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#114
Originally Posted by fido888 View Post
My solution (my college helped me a lot)

Manual method:

1.
dial #11 to activate SIM1 (you got general error, no problem)
(or dial #22 for SIM2)

2. root shell and kill csd
(xterminal and sudo -s probably)
killall csd

After that N900 will ask your pin code (if is set) and register the new card. It takes some seconds.

Automatic mode:

1. edit a script: /usr/bin/changesim :

#!/bin/sh
/usr/bin/dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0
sleep 1
/usr/bin/killall csd
#end script

2. run right for this script:
chmod 755 /usr/bin/changesim

Cheers, fido
Hey fido.
Thanks for the hint with dbus command. I was aware, that there must be some command, but too lazy
Now I put all together in one script and execute it with DesktopCommandExecution Widget.
But, You do not have any problems with 3G data connetcions after a few switches (killing csd)? I do, so I posted an alternative some post above.
Like:
#!/bin/sh
#/usr/bin/dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0
/usr/bin/dbus-send --system --dest=com.nokia.csd.Call --type=method_call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0
sleep 1
#/usr/bin/killall csd
sudo ifconfig phonet0 down
sleep 7
sudo ifconfig phonet0 up
#end script

For me this works perfect...
 

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