Re: software unplug and plug USB

From: Tomasz Chmielewski
Date: Mon Oct 01 2007 - 06:05:26 EST


Miguel schrieb:
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

Only then It's not enough. You also have to remove ehci_hcd / uhci_hcd / ohci_hcd.the device will be powered off (unless the method described in the link given by Jiri Slaby powers the device off, too).


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/

cd backup_modules/? Where do you keep your modules?


--
Tomasz Chmielewski
http://blog.wpkg.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/