Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

No support for this USB broadband modem. Does anyone have a clue on how to enable or install it in Ubuntu 12.04?

The device is listed by lsusb as 2001:a80b but in network manager, there is nothing in there.

Device is detected in /dev/sr1 or sr2 and can be mounted with

#mount /dev/sr1 or sr2 /media/<mkdir your own directory>

It contains various files. A file named "dlinkusbmodem.deb" is present. Double clicking opens it in Software Center but gives error during installation. Figures it is a 32-bit driver for 32-bit OS. Please help.

share|improve this question
Please have a look here for some tips and tricks: askubuntu.com/questions/14008/… – Rinzwind Apr 22 '12 at 11:06
Does it have a Linux Driver? I had a DLink modem when I emailed them about the driver Issue They told they dont have Linux Drivers. But still they listed in lsusb – Sreevisakh Apr 22 '12 at 12:32

3 Answers

up vote 4 down vote accepted

12.04

Before proceeding ahead i would say that i used ultimate edition linux 3.4 64 bit-- this distro has all the library and dependencies for installing drivers(ia32-libs, usb_modeswitch).

The driver supplied with the dongle is a 32 bit driver. This successfully gets installed on a 64 bit ubuntu if and only if you have-- ia32-libs installed................

I used this driver with lubuntu 64 bit and got an error message when i run the command :

usbdeviceswitchdlink

---> /usr/bin/usbdeviceswitchdlink: command not found

The work around is simple...at the terminal type this:

sudo su ---- ENTER password

Then type...

apt-get -y install ia32-libs

The above command will add 32 bit compatibility on 64 bit ubuntu successfully.

if you get an error message ...run the command again.

Once successfully installed proceed ahead and you shouldn't get any error messages once you have installed the 32 bit driver on your 64 bit ubuntu...................

Open terminal press ctrl+alt+t

type usb without quotes then press tab twice

if you don't see usb_modeswitch it means it is not installed - good you don't need it. if yes you need to uninstall usb_modeswitch.

Step 1

Now the command is

sudo su

enter pass

mkdir /media/cdrom
mount /dev/srx     /media/cdrom 

press tab twice

N.B. x must be 1 or 2 - use accordingly

Once mounted

Press alt+f2

type

nautilus

You will see cdrom mouted on the left

click it

a file dlinkusbmodem .deb present

Double click it

Install it

Step 2

After install type at terminal

usbdeviceswitchdlink

It will show command executed successfully.

Done!!

I'm using this dongle with reliance netconnect 3g.

And here's the video.

Note

In case you are not able to mount the device ie step 1,there is alternative:

1.Connect device to windows PC . (do not install the Dlink.exe. if already installed uninstall it) Then reconnect device It will show as usb storage device.

2.Browse it and copy file dlinkusbmodem.deb (our driver) to any sotage device

3.log in ubuntu and paste file to any directory and install it der by double clicking (if it gives error go for terminal command) or type following comand at terminal

sudo dpkg install dlinkusbmodem .deb 

4.Drivers shoud be installed

now follow instruction as per Step 2

Tried it in crunchbang linux --a debian based OS --- but with no luck..........get an error regarding wrong architechture when i force install it!! Strange it works flawlessly on ubuntu 12.04 64 bit and withouth --force-architecture parameter.

WARNING!!: Modem connection and disconnection regression- typical of usb 3g modems will occur if you run

sudo apt-get update

be WARY when you run the above command, as your modem might start getting disconnected when you enable the network!

If it occurs, reinstall the drivers after purging them fully. This effectually will solve the problem. Follow the above steps to install.

ALERT!:

*Just want to bring to your notice... If you insert your 3g sim card in the dongle you might get instant connection.. After a certain period of time and usage the dongle will get disconnected!! I had taken a 3GB FRC pack for first usage. I spent a few days with this problem until I went to the showroom of my service provider where he stated... The data used upto 1GB is at the customers discretion. Once that data is used your connection cuts because your IMEI no. of the dongle goes in for verification( to check whether the device has a valid and not stolen IMEI). This procedure can take upto 3 days........... After three days i call the tech support of my service provider and they confirmed it will take another 2 days for the connection and the rest of the 2 GB usage back. I CONTINUOUSLY GOT " MODEM DISCONNECTED" ERROR WHILE USING THE 3G SIM CARD WITH THIS DONGLE. THIS IS A TYPICAL PROBLEM MOST USB MODEMS HAVE AND I THOUGHT ITS THE SAME THING...UNTIL I INSERTED MY 2G SIM CARD AND GOT THE CONNECTION INSTANTANEOUSLY!! i HAD A 2G CONNECTION IN MY PHONE'S SIM AND I GOT A 18KB/S SUSTAINED DOWNLOAD SPEED WITH THIS DONGLE. ALL PROBLEMS SOLVED.*

*NOW for the fun part:--->

Using 3g connection using this dongle on my lubuntu 12.04 netbook and connecting to my wireless TP-LINK N 300 router to get internet connection to all the computers on the network.

3G dwm 156 DONGLE-->>LUBUNTU NETBOOK-->>ETHERNET PORT OUT-->>CAT5/CAT6 CABLE-->>WAN PORT OF TP-LINK WIRELESS N ROUTER-->>GETTING INTERNET CONNECTION ON 4 ROUTER PORTS AND WIFI-->getting connection on my desktop computer using D-link wifi dongle DWA 131.

Here is the procedure:--

from my lubuntu 12.04 netbook ...enable 3g connection using dwm 156 and check internet connection

connect my ethernet port of my netbook to wan port of router

open network-manager on netbook

goto wired connection 1 (eth0)

press edit button

goto IPv4 settings

enable- shared to other computers

save.

reboot router and netbook.

DONE!

NOW if you get connection-disconnected error do the following:-->

open terminal

type

sudo su --enter password

then type

killall dnsmasq

DONE!

If need be check your router's wan IP settings *

Now i'm sharing internet connection using D-link DWM 156 with 7 computers.

share|improve this answer
Thanks for sharing! – ringe Oct 11 '12 at 21:50

11.10

First of all, it sounds like your hardware isn't currently supported, so your best option would be to file a bug report by running ubuntu-bug linux (this should gather some information about your system). If the developers don't know about your problem then they won't be able to make the hardware work out of the box.

From what you've described, it sounds like your modem is a "mode switch" style device. These devices pretend to be a storage device holding the Windows drivers when plugged in. The Windows drivers send a special command to the device that causes it to reset and provide a different set of capabilities.

It is likely that Linux has a driver that can handle the device after the reset, but just doesn't know how to perform the reset.

The usb_modeswitch command is responsible for performing this job, but it doesn't appear to have any configuration for your device. There is configuration info for two other D-Link DWM-156 devices with different USB IDs though, and they appear to use the same mode switch message, so it might be worth sending that message and see what happens. The following command should achieve this:

sudo usb_modeswitch -v 0x2001 -p 0xa80b --message-content 5553424312345678000000000000061b000000020000000000000000000000

With any luck, your device may have changed USB IDs and may even have a driver bound to it. The device might even be visible to NetworkManager at this point. If you're unlucky, the device might hang and need to be unplugged and replugged.

If this does work, include the command in your bug report along with the USB vendor/product IDs of the device before and after the switch.

share|improve this answer

For ubuntu 13.04: same procedure as 12.04. Just be sure to do the following:-->

Uninstall usb_modeswitch completely from your system(do it from command line or software centre)

Install ia32-libs on a 64 bit install of 13.04(around 84MB of downloads required)

sudo apt-get install ia32-libs

Follow the steps from 12.04 for the rest..

share|improve this answer

protected by Community Aug 5 '12 at 19:54

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.