I use a dialup connection, my modem is a Huawei ETS-1201, a fixed wireless terminal, being a newbie, it was very hard
for me to establish a dialup connection in linux, after lots of googling, I finally figured out, how to connect to web.
Then came another issue, what to do, if a connection gets dropped, then I have to plug the usb cord out and then re-plug it,
to make the modem work. It made me thinking, without re-plugging the modem, why cant I just switch off the usb port?
and turn it back on, that way, things would be much simpler... Today, I finally found a way to do it, to know more, just read on...
I assume you are running gnome and the modem is plugged in, for KDE, use konsole instead of gnome-terminal
Press Alt + F2 and type "gnome-terminal"
Become root by typing "su" and pressing enter for ubuntu users, activate the root account before issuing su command
Type the command "dmesg | grep [device]" where [device] should be the name of your device, it can be the vendor ID or
product ID. For Huawei, the vendor ID is 12d1, for finding the product or vendor ID, follow the instructions here
My output of the command is as follows,
[ 3.633262] usb 5-1: New USB device found, idVendor=12d1, idProduct=1010
here, "5-1" is the name of my device, it is in this name a folder is created when I plug in the modem, note the number shown,
in your output
Add the command "echo auto > /sys/bus/usb/devices/[device number]/power/control" to "/etc/rc.d/boot.local" or
"/etc/rc.local" or a similar startup script depending on your distribution, detailed instruction can be found here.
You should replace [device number] with the number noted from the "dmesg | grep" command.
You can use editors such as nano or mousepad to do it, but they have to be run as root to be able to edit this file. For detailed instructions, seehere
In the next line of startup script add "modprobe usbcore autosuspend=1" it will reduce the time taken by the device to enter auto suspend to 1 second
Restart your system, establish a connection then cancel it by pressing Ctrl + C, try to re-dial and it should do the job
For more information, you can refer to the Kernel Documentation on USB Power management here
for me to establish a dialup connection in linux, after lots of googling, I finally figured out, how to connect to web.
Then came another issue, what to do, if a connection gets dropped, then I have to plug the usb cord out and then re-plug it,
to make the modem work. It made me thinking, without re-plugging the modem, why cant I just switch off the usb port?
and turn it back on, that way, things would be much simpler... Today, I finally found a way to do it, to know more, just read on...
I assume you are running gnome and the modem is plugged in, for KDE, use konsole instead of gnome-terminal
Press Alt + F2 and type "gnome-terminal"
Become root by typing "su" and pressing enter for ubuntu users, activate the root account before issuing su command
Type the command "dmesg | grep [device]" where [device] should be the name of your device, it can be the vendor ID or
product ID. For Huawei, the vendor ID is 12d1, for finding the product or vendor ID, follow the instructions here
My output of the command is as follows,
[ 3.633262] usb 5-1: New USB device found, idVendor=12d1, idProduct=1010
here, "5-1" is the name of my device, it is in this name a folder is created when I plug in the modem, note the number shown,
in your output
Add the command "echo auto > /sys/bus/usb/devices/[device number]/power/control" to "/etc/rc.d/boot.local" or
"/etc/rc.local" or a similar startup script depending on your distribution, detailed instruction can be found here.
You should replace [device number] with the number noted from the "dmesg | grep" command.
You can use editors such as nano or mousepad to do it, but they have to be run as root to be able to edit this file. For detailed instructions, seehere
In the next line of startup script add "modprobe usbcore autosuspend=1" it will reduce the time taken by the device to enter auto suspend to 1 second
Restart your system, establish a connection then cancel it by pressing Ctrl + C, try to re-dial and it should do the job
For more information, you can refer to the Kernel Documentation on USB Power management here
No comments:
Post a Comment