Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
GeoNeil
Posts: 4
Joined: 10 Mar 2010, 15:24

INQ Mini 3G - driver won't autoload

Post by GeoNeil » 10 Mar 2010, 15:54

I'm using the INQ Mini 3G to connect online, here's how it shows up under lsusb

Code: Select all

Bus 001 Device 005: ID 12d1:101e Huawei Technologies Co., Ltd.
Which is the same code as seen in this thread. It works, but the driver doesn't seem to load automatically, every time I reboot my machine or disconnect and reconnect the modem I have to go to terminal as root and type this in:-

Code: Select all

# modprobe -v option 
# echo "12d1 101e" > /sys/bus/usb-serial/drivers/option1/new_id
I've even tried depmod -a the last time I did this but I still need to type the command in next time.

When I plug the phone in it starts up in mass storage mode and changes over to modem mode after typing the echo command (which I know creates a file consisting of the phone's USB deivce ID in a config folder used by the driver) Thing is, how do I get this generated automatically or permanently?

I don't suppose it helps that this INQ handset has the same device ID as a Huawei handset yet the older INQ1 was manufactured by a different company (Amoi) and has a different USB device ID and I think uses a different driver.

I'm using MEPIS 8 which is based on Debian lenny/stable.[/url]

GeoNeil
Posts: 4
Joined: 10 Mar 2010, 15:24

Post by GeoNeil » 10 Mar 2010, 16:21

Hmm, turns out I need both commands.

First command inserts the driver, second command tells the driver to mode switch the phone.

Disconnecting the phone means I have to manually remove the driver with rmmod option. If I disconnect and reconnect the phone, the phone reconnects in mass storage mode without the mode switch.

Also actually connecting to the internet is a bit hit and miss not sure if I need to reboot the phone to reconnect...

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 10 Mar 2010, 16:57

Which version of usb_modeswitch do you have installed?

GeoNeil
Posts: 4
Joined: 10 Mar 2010, 15:24

Post by GeoNeil » 10 Mar 2010, 18:17

Version 0.9.7

and there's the problem, it's the version that came with the distro, hmm, I'm running 64-bit (amd64) linux. Hang on, I'll give the latest version a go...

GeoNeil
Posts: 4
Joined: 10 Mar 2010, 15:24

Post by GeoNeil » 10 Mar 2010, 18:55

I think I've fixed it, took a while to realise that it's called usb_modeswitch with an underscore rather than a hyphen but I've got it sorted now, thanks!

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 10 Mar 2010, 19:39

Due to package name restrictions, underscores cannot be part of the name. So the recent 'official' packages and the tarball itself have the hyphen, but the component names managed to keep the underscore 8)

Automatic driver binding works reliably only since the latest release (1.1.0). Before 1.0.6 you have to do it manually anyway.

Post Reply