Tag Archive for 'jaunty'

Telstra NextG working with MF626 USB modem

Essentially, these devices are detected as a SCSI CD device so that Windows and Mac users can install the drivers and software to make the device work and connect to the net. They then switch product ID to activate the device as a modem. Unfortunately this didn’t work properly in Ubuntu, and would only detect as a mass storage device. With this fix, it can be hot plugged and still work :-O

Thanks to a post in the Ubuntu forums, I finally got the Telstra NextG wireless working for a friend of Mike, on his Jaunty netbook.

Here’s what I did, for for future reference:

1) Install udev-extras which provides some extra hal scripts.
sudo apt-get install udev-extras

2) Install the Debian Sid i386 usb-modeswitch package, rather than build from scratch.
http://packages.debian.org/sid/usb-modeswitch
sudo dpkg -i usb-modeswitch_0.9.7-1_i386.deb

3) Uncommented the “ZTE MF626″ entry of the usb-modeswitch config (including the # comments!).
sudo vim /etc/usb_modeswitch.conf

ZTE MF628+ (tested version from Telia / Sweden)
ZTE MF626

Contributor: Joakim Wennergren

DefaultVendor= 0x19d2
DefaultProduct= 0×2000

TargetVendor= 0x19d2
TargetProduct= 0×0031

MessageEndpoint=0×01
MessageContent=”55534243123456782000000080000c8501 0101180101010101000000000000″

4) Create new HAL rule to activate the device as a modem.
sudo vim /usr/share/hal/fdi/information/20thirdparty/20-zte-mf626.fdi

<!– -*- SGML -*- –>
<deviceinfo version=”0.2″>
<device>
<!– ZTE MF626 HSDPA USB Modem –>
<match key=”@info.parent:usb.vendor_

id” int=”0x19d2″>
<match key=”@info.parent:usb.product_id” int=”0×0031″>
<match key=”@info.parent:usb.interface.number” int=”3″>
<append key=”modem.command_sets” type=”strlist”>GSM-07.07</append>
<append key=”modem.command_sets” type=”strlist”>GSM-07.05</append>
<append key=”info.capabilities” type=”strlist”>modem</append>
</match>
</match>
</match>
</device>
</deviceinfo>

5) Create a new udev rule to auto run usb_modeswitch when the device is plugged in.
sudo vim /etc/udev/rules.d/90-zte.rules

ACTION!=”add”, GOTO=”ZTE_End”

SUBSYSTEM==”usb”, SYSFS{idProduct}==”2000″, SYSFS{idVendor}==”19d2″, GOTO=”ZTE_ZeroCD”

LABEL=”ZTE_ZeroCD”
RUN+=”/usr/sbin/usb_modeswitch -W -c /etc/usb_modeswitch.conf”

LABEL=”ZTE_End”

6) Remove the HAL FDI cache and reboot.
sudo rm /var/cache/hald/fdi-cache
sudo reboot

7) Then after a reboot, I plug in the device, wait for it to go blue, then connect to Telstra (Next G Card) in Network Manager.

Works!

Aspiring to be Jaunty

Mike has a friend with an Acer Aspire One netbook (which he bought over 6 months ago) and it has been no end of trouble getting it to work properly. The main issue has been the horrible built-in Atheros wireless chip. There was much to-ing and fro-ing, the end result of which is that the guy wanted to buy a Windows netbook to replace it (all because of this one main issue). In fact, it’s been down right embarrassing that Linux doesn’t work. He’s wanted to give the rotten thing away, or rather, throw it away (preferably somewhere jagged with lots of rocks).

Eventually we did get it working with Intrepid and even though it was clunkalicious, it did work. Until he did an upgrade that is. So Jaunty comes along and everything is supposed to work out of the box, but it doesn’t. Wireless is still broken. The device is detected, but network manager just won’t work (also iwlist wlan0 scanning does not work).

I dug around on launchpad and found out, lo and behold, there is a bug that stops wireless from working.

The fix? Blacklist the acer_wmi module (add blacklist acer_wmi to /etc/modprobe.d/blacklist) and reboot. Essentially the rfkill switch on the Aspire One is dodgy and it gets permanently set to off. Not loading this module prevents that, which means it’s free to be, well, on.

So, if you have an Acer Aspire One with Jaunty (or other distribution) and you don’t get any wireless love, try this work around. Now I just have to get his dodgy Telstra 3G USB modem device working.. and that’s a whole other level of pain.

-c