NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › How I got my dumb phone to tether
New Posts  All Forums:Forum Nav:

How I got my dumb phone to tether

post #1 of 9
Thread Starter 
A while back I decided that I needed to get access to the internet while I'm away from home. I was told by a salesman at my carrier (Alltel) that I'd have to get a smartphone/smartphone plan to do that. Later I found out that wasn't true, but my google searches on getting a cdma non-smart ("dumb") phone tethered under linux were discouraging. I took a leap of faith, and bought a MotoRokr z6m and started trying. It was actually fairly painless to get it working, here's what I had to do on both Debian and Ubuntu (pretty much the same). Don't plug the phone in yet. (as root) First using your favorite editor (mine is nano)(backup and edit) :
Code:
nano /etc/init.d/mountdevsubfs.sh
and add
Code:
        mkdir -p /dev/bus/usb/.usbfs
        domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmo$
        ln -s .usbfs/devices /dev/bus/usb/devices
        mount --rbind /dev/bus/usb /proc/bus/usb
note: in Ubuntu I had to uncomment these lines since they were already there, I had to add them to the file in my Debian install, I don't know if it matters where they go in the file. found instructions that it's necessary to stop the airprime driver from loading, it was for Ubuntu, not sure if it's needed on Debian.
Code:
nano /etc/modprobe.d/blacklist
and add to the bottom of the file:
Code:
#Block Airprime driver to force kernel to use usbserial
greystar:/home/louis# blacklist airprime
at this point reboot. Make sure wvdial is installed (install it if it isn't) Next, plug the phone in using the usb cable. now, here I found instructions giving steps to find a bit of info, however, I never could get any output, so I punted and made a S.W.A.G. I'm including the instructions in case they work for you.
Quote:
Open a terminal and type:
Code:
cat /proc/bus/usb/devices > devices
and
Code:
dmesg
you're looking for this in the output:
Code:
cdc_acm 3-1:1.0: ttyACM0: USB ACM device
the ttyXXXX is what you need to make note of.
Since I never could get this output, I tried "ttyUSB0" and got lucky. Right, onward then. type in the terminal
Code:
lsusb
somewhere in the output you should see something similar to
Code:
Bus 003 Device 002: ID 22b8:2b24 Motorola PCS
make note of the code numbers following "ID", in this case "22b8:2b24", you'll need them in the next step. in the terminal type:
Code:
modprobe usbserial vendor=0x22b8 product=0x2b24
(using the numbers I got as examples) next (backup and) edit /etc/wvdial.conf and replace everything in the file with:
Code:
[Dialer Defaults] 
Stupid Mode = on 
Modem = /dev/ttyUSB0 
Baud = 921600 
Init = ATZ 
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 
Phone = #777 
Username = yourmobilephonenumber@alltel.net
Password = alltel 
Init1 = ATZ 
ISDN = 0 
Modem Type = Analog Modem 
Auto Reconnect = on 
Carrier Check = no 
[Dialer shh] 
Init3 = ATM0 
[Dialer pulse] 
Dial Command = ATDP
the items in bold will need to be replaced with your information, if you're not on the alltel network you may need different information here. lastly (backup and) edit:
Code:
nano /etc/ppp/peers/wvdial
adding the following at the end of the file:
Code:
lcp-echo-failure 0
lcp-echo-interval 0
now start wvdial and start surfing. You can either type "wvdial" at a command prompt or set up a launcher on you desktop (I find this much more convenient). Edit: forgot to mention in the phone (assuming you also have a Rokr z6m) you'll want to go to Settings>Connection>USB Settings and set the default to "Modem/COM"
post #2 of 9
Yea you don't need a smartphone, just a phone that is not to terribly crippled. I can use my MotoRAZR POS to tether via Verizon and that provided my internet in Santa Fe for the past couple of years when I was ont he road out there. I can tether via Bluetooth on the Mac OS X but I use USB on Linux, and find a USB connection makes a large difference in speeds for them.

Seablade
post #3 of 9
Good job doc!
post #4 of 9
So not the way I did it. Now if someone wants to help me to get my Moto Q 9h working that would be great because for some reason it just wont play nice.
post #5 of 9
If you really want help I can see what I can remember from the last time I did it. I don't have easy access to Linux at the moment but i can still give it a shot

Seablade
post #6 of 9
Thread Starter 
ok, so I got this working and tested it from home several times, *without rebooting*. When I went to actually use it from here at work I found that I kept getting an error that there was no such file or directory as /dev/ttyUSB0. Just before I found a way to grow my hair so I could pull it out, it hit me that I had issued a modprobe when setting this up. Once I did that again everything was golden. So, you have to do that each time before you can connect. Just a heads up to save you the same frustration.
Code:
modprobe usbserial vendor=0x22b8 product=0x2b24
every time before you invoke wvdial.
post #7 of 9
*Wow, keeps that in mind for the future.* Once again, good job Doc.
post #8 of 9
Doc your nerdyness is growing STRONG!
post #9 of 9
Thread Starter 
not sure what it says about me that I just got around to making the modules load at boot instead of modprobing manually, but here it is. Most of you doubtlessly already know this, but for those who are like I was, and don't you simply add
Code:
usbserial vendor=0x22b8 product=0x2b24
to the end of /etc/modules. (with your particulars of course) no more modprobing.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › How I got my dumb phone to tether