public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: software unplug and plug USB
@ 2007-09-28 12:17 Tomasz Chmielewski
  2007-10-01  7:36 ` Miguel
  0 siblings, 1 reply; 10+ messages in thread
From: Tomasz Chmielewski @ 2007-09-28 12:17 UTC (permalink / raw)
  To: Miguel; +Cc: LKML

> I'm using a huawei E220 modem and occasionally it doesn't work and I
> must unplug and plug it again, run the scripts connection to make it
> works again.
> how can I unplug an plug an USB modem via software?

If the modem doesn't have any other power sources than USB, just 
removing the modem's and USB modules, and the modprobing them again 
should help.

Just take care if you have it connected to the PC with a USB keyboard ;)


-- 
Tomasz Chmielewski
http://blog.wpkg.org


^ permalink raw reply	[flat|nested] 10+ messages in thread
* software unplug and plug USB
@ 2007-09-28 10:56 Miguel
  0 siblings, 0 replies; 10+ messages in thread
From: Miguel @ 2007-09-28 10:56 UTC (permalink / raw)
  To: lkml

hi,

I'm using a huawei E220 modem and occasionally it doesn't work and I
must unplug and plug it again, run the scripts connection to make it
works again.
how can I unplug an plug an USB modem via software?

The other problem is that this device is recognized like a cd rom
although I have patch my kernel 2.6.17. here is the var/messages:


Sep 28 12:53:41 ecar kernel: [17179613.972000]   Vendor: HUAWEI
Model: Mass Storage      Rev: 2.31
Sep 28 12:53:41 ecar kernel: [17179613.972000]   Type:   CD-ROM
ANSI SCSI revision: 02
Sep 28 12:53:41 ecar kernel: [17179613.996000] sr0: scsi3-mmc drive:
65x/349x xa/form2 cdda tray
Sep 28 12:53:41 ecar kernel: [17179613.996000] Uniform CD-ROM driver
Revision: 3.20


could anybody help me?

regards,

mike



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-01 11:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 12:17 software unplug and plug USB Tomasz Chmielewski
2007-10-01  7:36 ` Miguel
2007-10-01  7:39   ` Tomasz Chmielewski
2007-10-01  8:18     ` Miguel
2007-10-01  8:30       ` Jiri Slaby
2007-10-01  9:58       ` Oliver Neukum
2007-10-01 10:04       ` Tomasz Chmielewski
2007-10-01 10:46         ` Miguel
2007-10-01 11:13           ` Jiri Slaby
  -- strict thread matches above, loose matches on Subject: below --
2007-09-28 10:56 Miguel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox