MTN usb modem connection problems

Hi
Reinstalled modeswitch data & modeswitch and the results are the same.

[ 35.581141] init: plymouth-upstart-bridge main process (1387) terminated with status 1
[ 35.581155] init: plymouth-upstart-bridge main process ended, respawning

After modem installed

[ 35.581155] init: plymouth-upstart-bridge main process ended, respawning
[ 273.004253] usb 1-4.2: new high-speed USB device number 6 using ehci-pci
[ 273.097003] usb 1-4.2: New USB device found, idVendor=1bbb, idProduct=022c
[ 273.097007] usb 1-4.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 273.097010] usb 1-4.2: Product: HSPA+ USB Modem
[ 273.097012] usb 1-4.2: Manufacturer: SCD
[ 273.180989] usb-storage 1-4.2:1.0: USB Mass Storage device detected
[ 273.181080] scsi4 : usb-storage 1-4.2:1.0
[ 273.181183] usbcore: registered new interface driver usb-storage
[ 273.225615] usbcore: registered new interface driver uas
 
It looks like the modem is not switching and loading the driver, but you reported previously that did work at least once.

I suggest asking on the ModeSwitchForum. The author of usb-modeswitch is very helpful.
 
Hi ginggs

I have submitted a request to the forum you suggested and I have given the link to my post here
it will be much easier than having to go through all the issues again, lets hope we have some success
there.

I will keep you updated as I progress.

For all your help up to now I am truly grateful.

cheers
 
Hi ginggs

To update you :-
After much effort on their part I finally have some success, not much point in me
trying to explain as much of it was over my head away, suffice it to say that now I can
connect albeit in an odd fashion for the time being.
The procedure now is to boot up, open the terminal, and add two commands and after
that I can connect no problem until I reboot and then I have to do the same again.

Re-Modeswitch Forum
“As you have noticed, the driver binding is not permanent - you have to do it once every time you boot the system. This can also be done automatically, by adding the two commands to a script that runs at boot, or annother that runs when the modem is connected (there is no harm in running these commands repeatedly).”

The commands are:-
using just 'su'
($ sudo) modprobe -v option
($ sudo) echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

without the sudo:
modprobe -v option
echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

I now have to find out how to do this, so if you know I would appreciate your help otherwise I will
look around.

Cheers
 
Last edited:
Hi ginggs

To update you :-
After much effort on their part I finally have some success, not much point in me
trying to explain as much of it was over my head away, suffice it to say that now I can
connect albeit in an odd fashion for the time being.
The procedure now is to boot up, open the terminal, and add two commands and after
that I can connect no problem until I reboot and then I have to do the same again.

Re-Modeswitch Forum
“As you have noticed, the driver binding is not permanent - you have to do it once every time you boot the system. This can also be done automatically, by adding the two commands to a script that runs at boot, or annother that runs when the modem is connected (there is no harm in running these commands repeatedly).”

The commands are:-
using just 'su'
($ sudo) modprobe -v option
($ sudo) echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

without the sudo:
modprobe -v option
echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

I now have to find out how to do this, so if you know I would appreciate your help otherwise I will
look around.

Cheers

Create a folder in you home directory, I usually call it scripts.

In the folder create a file called usbmodem.sh

Copy and paste this

Code:
#!/bin/bash
sudo modprobe -v option
sudo echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

You will need to run the commands as sudo

Then in the same folder where you created the file type

Code:
chmod +x usbmodem.sh

then back to you home directory create an alias edit .bash_aliases (I use vi)

Code:
 vi .bash_aliases

Then add the following line

Code:
alias usb-modem='~/scripts/./usbmodem.sh'

Then update bashrc

Code:
source .bashrc

Now when you plug in your modem from the cli just run

Code:
usb-modem
 
Hi DWPTA

Thanks for offering to help, but I am really not that clued up with the Terminal, commands etc.
so if I may ask you to be more specific. I have only done the following so far:-

Created a folder called scripts
inside the folder I have created a file called usbmodem.sh

I copied and pasted into the file

Code:

#!/bin/bash
sudo modprobe -v option
sudo echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

&

Code:

chmod +x usbmodem.sh

(at this stage I haven't run any commands in the Terminal yet)

I don't know how to create an Alias?

I created a folder in the Home Directory called rh .bash_aliases but I'm
pretty sure that's not what you mean…..I stopped there until further

Thanks
 
Last edited:
Hi DWPTA

Thanks for offering to help, but I am really not that clued up with the Terminal, commands etc.
so if I may ask you to be more specific. I have only done the following so far:-

Created a folder called scripts
inside the folder I have created a file called usbmodem.sh

I copied and pasted into the file

Code:

#!/bin/bash
sudo modprobe -v option
sudo echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id

&

Code:

chmod +x usbmodem.sh

(at this stage I haven't run any commands in the Terminal yet)

I don't know how to create an Alias?

I created a folder in the Home Directory called rh .bash_aliases but I'm
pretty sure that's not what you mean…..I stopped there until further

Thanks

Don't be scared the terminal will not bite you.

To test the file in the scripts dir just type

Code:
./usbmodem.sh

It will run and ask for your sudo passwd. Type it in and it should be fine.

To see hidden files, it's those starting with a . (dot) just type

Code:
 ls -la | grep bash

So then you should see a files called

.bash_alias
.bash_history
.bash_logout
.bashrc

open .bash_alias, I use vi to edit my files, there is also nano that you can use to edit the files.

Code:
vi .bash_alias

Add this line to the file, the will will be empty (Press the Insert button)

Code:
alias usb-modem='~/scripts/./usbmodem.sh'

Once you have finished typing press the Esc button.

Then write and close the file like, press the double colon button : , then type at the :

Code:
wq!
--> Enter

It will save & close the file

Then update the .bashrc file like so

Code:
 source .bashrc

Then when you plug in the modem, just open a terminal and type

Code:
usb-modem

It will then run the script.
 
Hi again

Hope you had a good Xmas
I enter "/usbmodem.sh" into the terminal and it says "bash: ./usbmodem.sh: No such file or directory"
I then entered "~/scripts/usbmodem.sh" and I get permission denied
I then tried "ls -la | grep bash" and it displays ".bash_history" & "rh .bash_aliases"

thanks for your help

#edit.........In home I can only find a ".bash_history" file at the end (like a thumbnail file) which
I can open with .gedit but that's all there is in relation to what we're doing.
 
Last edited:
Hi again

Hope you had a good Xmas
I enter "/usbmodem.sh" into the terminal and it says "bash: ./usbmodem.sh: No such file or directory"
I then entered "~/scripts/usbmodem.sh" and I get permission denied
I then tried "ls -la | grep bash" and it displays ".bash_history" & "rh .bash_aliases"

thanks for your help

#edit.........In home I can only find a ".bash_history" file at the end (like a thumbnail file) which
I can open with .gedit but that's all there is in relation to what we're doing.

Note the .(dot) in front of the forward slash (/)

So to run a bash script you always type

./

You also need to be in the directory where the script is to run it, so when your in cli in your home dir just go

~/scripts/./usbmodem.sh
 
Hi again

Well I'm, not a happy chappie, I am so frustrated with this problem and you must think
I'm really dumb but I cannot seem to grasp this at all, I've tried so many permutations I've
lost track of what I'm doing.
If you wish to bail out I will totally understand as it must be just as bad for you, however
if you care to guide me through it will be more than grateful.
To recap:
I have created a folder in the home directory called (scripts) and within that folder I have
opened a file and named it (usbmodem.sh) & within that file I have added the codes you provided:-

scripts
usbmodem.sh
Code:
#!/bin/bash
sudo modprobe -v option
sudo echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id
&
Code:
chmod +x usbmodem.sh
I saved and exited.

I then created a folder in the home directory called (.bash_aliases) and within the folder is a
file called (.bash_aliases) I opened that file and have added:-
I did this by first pressing insert on the keyboard and adding the following 2 codes etc, I then
pressed esc, then I wrote the last Code, pressed enter but it did not save and exit, I did it manually.

It is obvious I'm not sufficiently clued up with all this stuff

Code:
vi .bash_alias

Code:
alias usb-modem='~/scripts/./usbmodem.sh'

:Code:
wq!
-->

You said to test the file in the scripts dir. Just type :

Code:
.usbmodem.sh
how do I get into the scripts dir in the terminal? I tried cd and nothing happens.

I tried (ls -la | grep bash) again and still only get
.bash_aliases
.bash_ history

You also mentioned earlier the cli, I have looked it up and it is the Command Line Interface
but does this refer to the Terminal or Text Editor.
 
Hi again

Well I'm, not a happy chappie, I am so frustrated with this problem and you must think
I'm really dumb but I cannot seem to grasp this at all, I've tried so many permutations I've
lost track of what I'm doing.
If you wish to bail out I will totally understand as it must be just as bad for you, however
if you care to guide me through it will be more than grateful.
To recap:
I have created a folder in the home directory called (scripts) and within that folder I have
opened a file and named it (usbmodem.sh) & within that file I have added the codes you provided:-

scripts
usbmodem.sh
Code:
#!/bin/bash
sudo modprobe -v option
sudo echo "1bbb 022c ff" > /sys/bus/usb-serial/drivers/option1/new_id
&
Code:
chmod +x usbmodem.sh
I saved and exited.

I then created a folder in the home directory called (.bash_aliases) and within the folder is a
file called (.bash_aliases) I opened that file and have added:-
I did this by first pressing insert on the keyboard and adding the following 2 codes etc, I then
pressed esc, then I wrote the last Code, pressed enter but it did not save and exit, I did it manually.

It is obvious I'm not sufficiently clued up with all this stuff

Code:
vi .bash_alias

Code:
alias usb-modem='~/scripts/./usbmodem.sh'

:Code:
wq!
-->

You said to test the file in the scripts dir. Just type :

Code:
.usbmodem.sh
how do I get into the scripts dir in the terminal? I tried cd and nothing happens.

I tried (ls -la | grep bash) again and still only get
.bash_aliases
.bash_ history

You also mentioned earlier the cli, I have looked it up and it is the Command Line Interface
but does this refer to the Terminal or Text Editor.

Don't worries will sort it out.

Ok let's do baby steps. First priority is to get the script up and running.

Get the file from my Dropbox --> https://www.dropbox.com/sh/h3tck6nj0fysjla/AAAZ0oEtalacq4gMGiU_RwfJa?dl=0

Save the usbmodem.sh to you scripts folder you created.

Let me know once you have done that.

PS. cli refers to the terminal, command line interface
 
Hi

Thanks for sticking in there.

Ok, have done that, shall I remove previous entries in the usbmodem.sh
 
Last edited:
ok, deleted,

just your entry from dropbox in there now
 
ok , as requested

total 36
drwxr-xr-x 13 roy roy 4096 Dec 29 13:35 Desktop
drwxr-xr-x 2 roy roy 4096 Dec 21 12:52 Documents
drwxr-xr-x 2 roy roy 4096 May 20 2015 Downloads
drwxr-xr-x 2 roy roy 4096 Jun 26 2015 Music
drwx------ 12 roy roy 4096 Dec 28 12:34 Pictures
lrwxrwxrwx 1 roy roy 35 Apr 15 2015 PlayOnLinux's virtual drives -> /home/roy/.PlayOnLinux//wineprefix/
drwxr-xr-x 2 roy roy 4096 Mar 22 2015 Public
drwxr-xr-x 2 roy roy 4096 Dec 29 15:09 scripts
drwxr-xr-x 2 roy roy 4096 Nov 17 10:39 Templates
drwxr-xr-x 3 roy roy 4096 Apr 16 2015 Videos

sorry, i think its this you mean

roy@roy-desktop ~/scripts $ ls -l
total 4
-rw-r--r-- 1 roy roy 110 Dec 29 15:09 usbmodem.sh
roy@roy-desktop ~/scripts $
 
Last edited:
sorry i did just edit
roy@roy-desktop ~/scripts $ ls -l
total 4
-rw-r--r-- 1 roy roy 110 Dec 29 15:09 usbmodem.sh
roy@roy-desktop ~/scripts $
 
Top
Sign up to the MyBroadband newsletter
X