Re: software unplug and plug USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I also have a mobile phone connected, a gps and a keyboard, i do the
following:


ecar@ecar:~$ lsmod | grep usb
usbserial              29928  1 pl2303
usbtouchscreen          8708  0 
usbcore               130304  7
libusual,pl2303,usbserial,usbtouchscreen,ehci_hcd,uhci_hcd
ecar@ecar:~$ rmmod pl2303
ERROR: Removing 'pl2303': Operation not permitted
ecar@ecar:~$ sudo rmmod pl2303
ecar@ecar:~$ sudo rmmod usbserial
ecar@ecar:~$ modprobe usbserial
FATAL: Error inserting usbserial
(/lib/modules/2.6.17-11-386/kernel/drivers/usb/serial/usbserial.ko):
Operation not permitted
(reverse-i-search)`mod': cd backup_modules/
(reverse-i-search)`modpro': sudo modprobe  ehci_hcd
ecar@ecar:~$ sudo modprobe usbserial vendor=0x12d1 product=0x1003
ecar@ecar:~$ lsmod | grep usb
usbserial              29928  0 
usbtouchscreen          8708  0 
usbcore               130304  6
usbserial,libusual,usbtouchscreen,ehci_hcd,uhci_hcd


but only when I unplug and plug manually, the modem starts up ...
Because of that i wanted to unplug/plug via scripting (software way)

On Mon, 2007-10-01 at 09:39 +0200, Tomasz Chmielewski wrote:
> Miguel schrieb:
> > actually, I have a USB keyboard, could that be the problem? why?
> 
> Because when you remove USB modules, USB devices, including USB 
> keyboards, won't work...
> 
> 
> > removing and adding modules doesn't solve my problem... The USB has
> > several functions: modem and usb mass storage and only the storage one
> > is recognized 
> > :(
> 
> What modules exactly do you unload/load again, in what order, using 
> which commands?
> 
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux