[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1191226692.6014.16.camel@McM>
Date: Mon, 01 Oct 2007 10:18:12 +0200
From: Miguel <mc354@....es>
To: Tomasz Chmielewski <mangoo@...g.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: software unplug and plug USB
I also have a mobile phone connected, a gps and a keyboard, i do the
following:
ecar@...r:~$ lsmod | grep usb
usbserial 29928 1 pl2303
usbtouchscreen 8708 0
usbcore 130304 7
libusual,pl2303,usbserial,usbtouchscreen,ehci_hcd,uhci_hcd
ecar@...r:~$ rmmod pl2303
ERROR: Removing 'pl2303': Operation not permitted
ecar@...r:~$ sudo rmmod pl2303
ecar@...r:~$ sudo rmmod usbserial
ecar@...r:~$ 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@...r:~$ sudo modprobe usbserial vendor=0x12d1 product=0x1003
ecar@...r:~$ 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists