The data card is never detected automatically. It is detected only when I fire a lsusb.
Later, I give modeswitch commands etc. then the device works fine. I can easily use Internet. But, once I disconnect from the net, its impossible to reestablish the connection. To reconnect, I have to type all the commands, starting with lsusb, in the terminal again. Every time I want a connection I have to sit and type 5-6 commands in the terminal before I can get through.
What can be done to get automatic Internet connection as soon as I plug in the data card? Please help.