Huawei e220 modem on linux

So support for these little beggars has been present since 2.6.20. They’re pretty clever things – setup as mass storage devices containing the drivers so on Windows the install wizard sets it up and you’re online within seconds. With linux its a quick config file edit. You’ll need to have wvdial or gnome ppp installed. Here’s the /etc/wvdial.conf file which works fine with 3 in the U.K. and seems to be the case with vodafone as well.

[Dialer Defaults]
Phone = *99***1#
Username = wap
Password = password
Stupid Mode = 1
Dial Command = ATDT

[Dialer 3G]
Modem = /dev/ttyUSB0
Baud = 384000
Init2 = ATZ
Init3 = ATq0 V1 E1 S0=0 &C1 &D1 +FCLASS=0
ISDN = 0

Then (as root), run:

wvdial 3G and you should be on!


3 thoughts on “Huawei e220 modem on linux

  1. Can you help me at all? I’ve got a USB dongle modem on the Three network, but when I plug it into my netbook (running Linux with Thunar). It recognises the modem, and you can explore the unit and the software it holds on it, but if you try to open an Executable file (i.e. Setup / Autoplay etc) it doesn’t do anything. They are .exe files, which from what i can work out, Linux won’t open. Any help would be appreciated.

  2. Hi Dave,

    Its probably exactly the same hardware as I have. You don’t mention what distribution you’re running but if Thunar is your file manager I’m guessing its possibly Xubuntu? Anyway, essentially what is happening is that its only seeing it as a mass storage device with the small amount of storage space that it comes with. Later distributions such as Fedora 9 or later recognise it as a modem and therefore unload the mass storage device (its of no use) and load the networking driver. All the stuff in the post is now obsolete for me as Network Manager in Fedora 9 & 10 does all of this for me. Does this help?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s