USB mobile broadband dongles in Ubuntu (14.04)? Where to start?

53,237

Ubuntu generally supports mobile broadband USB dongles. So let's start with:

How it should work

  1. The dongle gets detected

    You get the following window that asks for the SIMs PIN. Enter your PIN, check Automatically unlock this device and click Unlock.

    window asking for PIN to unlock SIM

    If you've made it this far, you know that your dongle is supported.

  2. Create a new Mobile Broadband connection

    Select New Mobile Brodband connection... from the network indicator.

    network indicator with highlighted "New Mobile Brodband connection..." entry

    This will bring up the mobile broadband setup wizard.

    Alternatively you can click Edit Connections..., then click the Add button in the Network Connections menu and select Mobile Broadband as the Connection Type, which will then also bring up the wizard shown below.

    New Mobile Broadband Connection setup wizard

    Follow the instructions and choose settings according to your country and provider/carrier. Mine looks like this:

    New Mobile Broadband Connection setup wizard, final step

  3. Done

    That's basically it, you should have a working Internet connection in a few seconds when you hit the Continue button.

Troubleshooting - The easy part

  • The SIM card is blocked

    Put the SIM in another device like a phone and enter the PUK when asked for. If that somehow does not work, you will need to call your providers/carriers customer support hotline.

  • Installing the Windows driver on Windows

    Rumor has it that this works for some devices and has to be performed only once when the device is completely new and hasn't been used before. This is only needed to change the mode of the dongle. (See explanation about usb-modeswitch below.)

Troubleshooting - The difficult part

Remember, you don't have to go through very time consuming and probably frustrating troubleshooting. If your WiFi already works, buy a mobile Wi-Fi hotspot.

The dongle doesn't get detected

If you don't get the window shown in step 1, then it might be that the SIM card is blocked (see paragraph above), not properly inserted (e.g. upside down) or the dongle itself is not detected due to usb-modeswitch issues.

The thing with USB modes on these devices is, to first present the dongle as a read only storage device with an (outdated) driver that you could install and then change the mode so that the device can be used as it was intended. However you almost never need to install these drivers. The situation in most cases is, that Linux already has a driver, but somehow cannot activate the mobile broadband modem part of the dongle.

The following links might be helpful for further troubleshooting:

Determining which device you are using

You should also find out which dongle you have (as you can see in the example it's not always quite obvious and the lsusb output may also not be accurate), search for it online and provide maker and model name along with to Ubuntu version you are using when you ask a new question, thus helping everyone finding questions already asked and corresponding answers.

There are only a few manufacturers of these dongles, namely Huawei and ZTE, but a lot of carriers re-brand them. Here is how it looks on mine:

image of the backside of one of these re-branded dongles, showing modelnumber and manufacturer

It's a Huawei K5320. (A very old device. This is not meant to be a recommendation.)

Share:
53,237

Related videos on Youtube

Csabi Vidó
Author by

Csabi Vidó

This is my AskUbuntu profile and most of my stuff here on StackExchange is tech-oriented. However I do have other hobbies and interests, you may find more about these in my other profiles on the network. I'm lwbt on Reddit and Telegram. I started with Ubuntu and Linux somewhere between 2006 and 2007. With the release of 08.04 I completely migrated away from Windows to Ubuntu and while this has been a few years ago I still consider myself fairly new to this topic and I know I can still discover something new and exciting everyday. The following listing is not to brag about hardware, I'm rather trying to reproduce issues and share experience. Custom built desktop computers with Intel HD graphics (dualscreen setup), Lenovo T530 & T560 (touch) without discrete graphics (also run Windows 10), Chromebooks Lenovo N22 & ASUS Flip C302 (with GalliumOS) Behringer FCA610 USB (PulseAudio multichannel configuration), JDS Labs C5D & The Element, Bluetooth dongles and BT audio speakers and headphones Wacom Intuos 4 PTK-540WL HP 3005pr Port Replicator (works with proprietary DisplayLink driver) Aten CS1794 HDMI KVMP Switch Logitech TK820 and some unifying receiver mice …and some APC UPS

Updated on September 18, 2022

Comments

  • Csabi Vidó
    Csabi Vidó almost 2 years

    Your situation or what you need to get a working Internet connection with a mobile broadband USB dongle:

    • You have the USB dongle, of course.
    • You have a 3G, 4G or whatever SIM card with a data plan and also the SIMs PIN an PUK. Preferably the SIM card is not blocked, so you just need to enter the PIN when asked for.

    My best and honest advice

    Try to avoid the whole usb-modeswitch trouble by buying a mobile Wi-Fi hotspot. It saves you valuable time.


    Hello frequent AU users. The reason why I am asking this question:

    There are a lot of questions about mobile broadband USB dongles here at AskUbuntu, you can find them by browsing the referenced tags below. Unfortunately users still seem to be lost – not knowing what to ask and where to start – also valuable answers are seemingly hard to discover. So let me start with this simple question and try to iron out this issue.

  • Pandya
    Pandya about 10 years