LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-22-2013, 08:40 PM   #1
Keith Sayers
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
USB modem stick


I seek a Linux-capable USB modem stick to work with Kubuntu 12.04 on my laptop. I have opened a mobile broadband account with Iprimus and they have sent me a HUAWEI Mobile Connect Model E160E HSDPA USB stick which works well with Windows and for a while did so also with Linux. But it now no longer does and from asking around I have gathered that this particular stick can be temperamental. Preferably I would like to buy a new stick which is Linux enabled, but if not then can this stick be re-programmed, please?

Thank you!
 
Old 08-23-2013, 03:46 AM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
The problems you are having are most likely common to all modems. The usual solution is to install usb-modeswitch. However, this is not really needed.

When your Linux system is already running and you plug your usb modem in, it presents itself as a faux-cdrom. Ejecting that faux-cdrom will switch it to modem mode. (this is all usb-modeswitch does anyway)

In my experience, this doesn't always help because the network manager seems to have difficulty recognising the modem after it's switched into modem mode.

Another, better, solution is to always plug the modem in before you boot into Linux. If the modem is already connected when you boot up, it defaults to modem mode and the network manager will find it automatically.

(note: some of the very first usb modems actually do need usb-modeswitch, but to the best of my knowledge, none of the Huawei modems fall into that category)


About mode switching:

The reason usb modems present themselves as a faux-cdrom is due to a bug in the Windows implementation of the usb protocol. A usb device can present itself as multiple devices at once and the operating system is meant to be able to deal with each device separately. However, Windows can only do this if it already has drivers installed for all the devices presented. If Windows does not have a driver for one of those devices, then the entire physical device is 'not recognised' and cannot be used.
As a work-around, modem manufactures designed their devices to present only as a read-only storage device which contained the drivers and software to run that device. Once those drivers and software are installed, they send a command to the modem to switch it into modem mode.
Early implementations used a custom command which is why usb-modeswitch was created in the first place. However, almost all modern implementations use the eject command to do this switching as eject is available on all platforms. So, while people often still use usb-modeswitch, it's not really needed anymore in most cases.
 
1 members found this post helpful.
Old 08-25-2013, 03:21 AM   #3
Keith Sayers
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the reply, I appreciate your help but it seems to have changed rather than solved the problem.

I put the modem stick in before booting, the blue light flashed so I deduced it had been detected, clicked on the connection icon at the bottom, got my usual screen in which I then click on 'iPrimus' but instead of getting a connection I got a message 'Waiting for Authorisation' - but no apparent means of entering such authorisation. I did a bit of poking around and went into 'Manage Connection' and then Mobile Broadband which told me 'iPrimus Connected'. I deduce from that that I now have a software rather than a hardware problem - should I now be in another forum?

I then removed the USB modem stick, connected to the landline modem and have come through to this forum with no problem so the software settings must be correct. (And I was not challenged for authorisation.)
 
Old 08-25-2013, 06:20 AM   #4
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
This is just a guess, but do you have the sim card's pin on or off?
I usually turn the sim pin of (by putting it in a cellphone, then in security settings of the cellphone disable pin)
There is a problem with trying to enter the pin in Linux, and it manifests in different ways depending on the distro. I think the usual way to fix it is to edit a config file somewhere, but I've never managed to figure out where.

You can possibly try a manual dial in using gnome-ppp and wvdial.
 
Old 08-27-2013, 07:05 PM   #5
Keith Sayers
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for the idea - it gives me some ideas. I do not have a cell phone but will try the config idea.
 
Old 09-05-2013, 03:38 AM   #6
PhantomCC
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
i'm having the same problem and followed Glue's suggestion and viola, it worked! thanks , Glue!
 
Old 09-05-2013, 12:33 PM   #7
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
I'm glad it helped!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change between 2G/3G modes on a USB stick modem. (Alcatel x220) masmddr Linux - Networking 5 05-01-2011 03:17 AM
3G USB stick/modem: reading out / displaying signal strength JZL240I-U Linux - Mobile 2 09-27-2010 12:54 AM
one GSM/GPRS/3G usb stick modem creates 3 usb serial devices radu.pop Linux - General 2 07-16-2010 01:32 AM
[SOLVED] How do you properly install a Novatel Turbo Stick USB modem? Robert.Thompson Linux - Newbie 20 02-22-2010 10:19 PM
Best distro for USB stick modem support Completely Clueless Linux - Networking 3 01-03-2009 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration