Klaus Knopper answers your Linux questions
Vodacom Modem Driver
Good Day, Sir: I'm very new to the Linux platform, coming from "Windoze," not realising really how unique a person can make his own Linux. Being new to the Linux platform gave me loads of entertainment so far, but now I've hit a brick wall.
At home, I'm running CentOS. On my work laptop I'm running it through Oracle and have been able to keep it fully updated, but at home I don't have ADSL or WiFi; I use a USB modem from Vodacom and a South African service provider that supplies me with Internet.
Now here is the issue: On my Windows PC it works perfectly, but when I plug it in to my spare Linux PC at home, my modem doesn't detect or allow me to install. The modem model is a K3772-Z. I have searched all over the Internet for drivers that will allow me to install it. Can you please assist in helping me with a solution?
Thanks a lot if you can help me.
Groete/Regards, Jaco
Answer: Many modems identify themselves to Linux as a "serial device" (or serial terminal); these can be used with desktop software like KPPP or the modem part of network manager using the standard "AT" protocol and PPP for dialup. However, some other modems require special drivers to even operate as modems, and in some cases, these drives are only provided for one or the other Windows version. Your modem seems to be one of those that incorrectly identify itself as a CD-ROM (allowing a Windows driver installation, then resetting itself to become a serial device) or (incorrectly) wired network device. The package and command usb_modeswitch
, available for many Linux distributions can take care of switching the device back to serial mode: However, it does not work for every case.
I found a how-to for fixing the modem under Ubuntu [1], but it requires some administrative commands. The command reported as working for a Huawei E220 HSDPA Modem is:
sudo usb_modeswitch -v 0x12d1 -p 0x1003 -V 0x12d1 -P 1003 -R
The numbers 0x12d1
and 1003
are taken from the output of command lsusb
, where your modem should be listed; they are the modem's vendor and device ID.
Another option could be:
sudo ifconfig usb0 -arp
which can change the mode of a USB modem+network device just by disabling the ARP protocol.
Sudo will ask for the root password on Ubuntu. If you add one or both of these lines to a startup file like /etc/rc.local
, they will be called as root automatically, and the "sudo" can be left out.
Time Issues: Linux vs. Windows
I noticed that the time displayed on a dual-boot machine differs between Knoppix/Linux and Windows. Is there a way to synchronize both?
Answer: A Desktop PC or Notebook has two clocks: the built-in real-time (or "BIOS") clock, which is read during boot, and the system time, which is used during normal operation.
Although it is common under Unix/Linux always to leave the BIOS/real-time clock in Universal time (UTC) and let the system time be set by time zone settings automatically during boot, under Windows, it seems to be common instead to have the real-time clock in "local time" and even rewrite the real-time clocks time during the daylight savings time switch. It is possible for both operating systems to change the default "BIOS" time interpretation to either "localtime" or UTC; however, it's probably easier to do this under Linux than search for an appropriate setting or registry patch in Windows.
When Knoppix reads the time from the real-time clock, it honors the file /etc/adjtime
, which contains UTC
in the last line, if the BIOS time is expected in universal time, or LOCAL
, if the BIOS time is "local time" (or rather "local time difference from UTC").
Changing this file will change Linux behavior when reading the real-time clock with hwclock -s
during system start.
However, a GNU/Linux system will not write back its own system time to the BIOS automatically unless instructed to do so during system shutdown, whereas Windows will do this frequently, so you might still experience differences when switching to and from daylight savings time.
Infos
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.