lkml.org 
[lkml]   [2007]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: software unplug and plug USB
    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 majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-01 10:21    [W:0.021 / U:31.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site