Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 12.04 . I will explain my situation first .

I am using A USB modem which frequently disconnect for an hour or so. Then i will plug off it from ports and will insert again .Then it will search again and connect .

My idea is , is there anything i can do else without plugoff the modem from USB ports , i mean restarting powersupply to modem or USB port .

One more point: I can't restart total USB's power-supply because my speakers are USB and sometimes i used to work by attaching the USB devices .

Help me guys , if i got this then you are going to save me from an daily exercise .

Thank you .

share|improve this question

1 Answer

up vote 2 down vote accepted

usb-modeswitch Install usb-modeswitch

We can try if a reset of our USB device helps resurrecting it. We first need to find out the vendor ID, and the product ID easiest by

lsusb

This will give information e.g. like follows:

Bus 003 Device 002: ID 04f9:0224 Brother Industries, Ltd

In this example the vendor ID is 04f9, product ID is 0224 (right, its my printer).

To reset the device we may then issue

sudo usb_modeswitch -R -v <vendor ID> -p <product ID>

For more options read the manpage or the project homepage.

Install via the software center

share|improve this answer
I have looked in synaptic , i got it installed already . – Jai Sep 25 '12 at 18:55
Sorry for that - now it should do. – Takkat Sep 25 '12 at 18:58
1  
Just a note - in case the modem hangs it may not even react on a reset command - but worth a try anyway. – Takkat Sep 25 '12 at 18:59
hey , if device rstarted means again it have to ask me password of gsm sim but its not asking . i think its not doing . here is the link pastebin.com/qgDftJ8h – Jai Sep 25 '12 at 19:02
Sorry to read that. It did reset: OK, device was reset. If that did not help I have no really good further idea. I hope someone knows if it is possible to power-off an USB-port by software. I doubt it will work (e.g. my USB-ports here are always powered ON even when I powered my machine off). – Takkat Sep 25 '12 at 19:09
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.