Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.