Author Message

<  Setup Discussion  ~  INQ Mini 3G - driver won't autoload

GeoNeil
Posted: Wed Mar 10, 2010 2:54 pm Reply with quote
Joined: 10 Mar 2010 Posts: 4
I'm using the INQ Mini 3G to connect online, here's how it shows up under lsusb

Code:
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:
# 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]
View user's profile Send private message
GeoNeil
Posted: Wed Mar 10, 2010 3:21 pm Reply with quote
Joined: 10 Mar 2010 Posts: 4
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...
View user's profile Send private message
Josh
Posted: Wed Mar 10, 2010 3:57 pm Reply with quote
Site Admin Joined: 02 Nov 2007 Posts: 1256
Which version of usb_modeswitch do you have installed?
View user's profile Send private message
GeoNeil
Posted: Wed Mar 10, 2010 5:17 pm Reply with quote
Joined: 10 Mar 2010 Posts: 4
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...
View user's profile Send private message
GeoNeil
Posted: Wed Mar 10, 2010 5:55 pm Reply with quote
Joined: 10 Mar 2010 Posts: 4
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!
View user's profile Send private message
Josh
Posted: Wed Mar 10, 2010 6:39 pm Reply with quote
Site Admin Joined: 02 Nov 2007 Posts: 1256
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 Cool

Automatic driver binding works reliably only since the latest release (1.1.0). Before 1.0.6 you have to do it manually anyway.
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 1
Post new topicReply to topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum