cancel
Showing results for 
Search instead for 
Did you mean: 

WHY? is it so hard to get Linux to work?

ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

Quote from: MisterW
Usb modeswitch has done it's job fine, we now need to get the driver to recognise it.

No it hasn't, not quite, since usb_modeswitch is also supposed to take care of adding the device IDs to the "option" kernel module if necessary. What the usb_modeswitch script should be doing is:
/sbin/modprobe option
/bin/echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id
I got those lines more or less from /lib/udev/usb_modeswitch. Those IDs are already listed in the option driver in linux 3.0.0.
MisterW
Superuser
Superuser
Posts: 16,217
Thanks: 6,194
Fixes: 447
Registered: ‎30-07-2007

Re: WHY? is it so hard to get Linux to work?

@ejs,
Sorry , I Didn't realise that modeswitch did that as well. I just thought it handled the device reset and switch to modem mode.

Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.

shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

Quote from: MisterW


@shutter,Plug the device in, wait for the CDROM to disappear and then check using lsusb that the device now appears as
Quote
ID 12d1 :1506 Huawei Technologies co., Ltd.

Now try running sudo modprobe option vendor=0x12d1 product=0x1506 ( from a terminal window ) and see if newtork manager now 'sees' the device. You could also perhaps post the output of dmesg ( the last 20 lines or so ) following the sudo modprobe command

OK....... did the lsusb bit and confirmed as bus001 Device 004 ID 12d1 1506 HUAWEI Technologies Ltd
then typed in the sudo bit....
got this in reply.....

FATAL: Error inserting option (/lib/modules/2.6.38 - 10 generic/kernel/drivers/usb/serial/option.ko): Unkonwn symbol in modul, or unknown parameter (see dmesg)  {{{{ which I have not done yet}}}}
gleneagles
Aspiring Legend
Posts: 11,105
Thanks: 2,459
Fixes: 17
Registered: ‎02-08-2007

Re: WHY? is it so hard to get Linux to work?

Sorry to hear you are having all this trouble with mint 11. I installed it from a disk included with one of the linux magazines and not had a bit of bother with it except the icon disappearing for my Cruzer Blade (which may be nothing to do with mint)
My knowledge of Linux is Nil but thought it worth posting in case anyone is put off trying Linux.
We are born into history and history is born into us.
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

@shutter - try these commands instead:
sudo /sbin/modprobe option
sudo /bin/echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

did the first line, but nothing appears

second line...
bash: /sys/bus/usb-serial/drivers/optional/new_id: Permission denied
Cry
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

@gleneagles.... thanks for the kind words of encouragement  Wink  Cheesy
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

Quote from: shutter
did the first line, but nothing appears

second line...
bash: /sys/bus/usb-serial/drivers/optional/new_id: Permission denied
Cry

My mistake probably, since I don't use sudo, instead just have one terminal window with a root shell open. Try adding some quotes:
sudo "/bin/echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id"
If it succeeds, there will be no output, so check dmesg so see if it worked.
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

reply to that
[sudo] password for gerry : flashing black cursor....... typed in my password , but could not see it...... and after a while got
Sorry, try again,

so I did.... 3 times and same result... so zilch from that ! ! ! .. Undecided
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

Open a new terminal window, type "su" and press enter. Enter the root password, then only use that window for things needing to be done as root, and close it when you won't need to use it for a while. Then you don't need to sudo everything, and this will work:
/bin/echo 12d1 1506 > /sys/bus/usb-serial/drivers/option1/new_id
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

bash> /sys/bus/usb-serial/drivers/option1/new_id: No such file or directory
Undecided
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

I don't know why the "new_id" file doesn't exist. The fallback is to not use the option driver, and just use the usbserial driver:
/sbin/modprobe -r option
/sbin/modprobe usbserial vendor=0x12D1 product=0x1506
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

first line.  nothing.
second line reply
bash: /sbin/modprobe/usbserial/vendor=12d1: Not a directory
(also same using capital D in 12d1)
. Undecided
ejs
Aspiring Hero
Posts: 5,442
Thanks: 631
Fixes: 25
Registered: ‎10-06-2010

Re: WHY? is it so hard to get Linux to work?

I would have another go with the "option" driver, I think the only way "new_id" could not exist is if you mis-typed something. It's "option1", the word "option" followed by the digit "1" (one), not "optional". Perhaps this would be easier:
/sbin/modprobe option
cd /
cd sys
cd bus
cd usb-serial
cd drivers
cd option1
echo 12d1 1506 > new_id
shutter
Community Veteran
Posts: 22,296
Thanks: 3,811
Fixes: 66
Registered: ‎06-11-2007

Re: WHY? is it so hard to get Linux to work?

yes I follow the "option1" error possibility, however, I am pretty good at copytyping, and double checked it .... I also copied back ( I am running two laptops side by side so I can copy type what is on the Linux screen).
will start on the list above... .....  .... standby....
ok... here is the result
/sbin/modprobe/option    (nothing)
cd /
changed my name to  / #
cd sys
changed the above to
sys #
cd bus
bus #
cd usb-serial
usb-serial #
cd drivers
drivers #
cd option1
option1 #
echo 12d1 1506 > new_id
option1 # (flashing cursor)

all responses were in blue (as is my name at the start position)