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

Re: reinserting USB plug via software



>> > What commands would be the equivalent to pulling the USB connector out
>> > of the computer, waiting a second, and then putting it back in?

> rmmod uhci-hcd; rmmod ehci-hcd; sleep 1; modprobe ehci-hcd; \
> modprobe uhci-hcd

> (you may also need ohci-hcd, but the above is the most common setup)

> If you do something stupid with that, like running it with usb-storage
> filesystems mounted, and the kernel happens to let you do it, you may suffer
> data-loss.  You have been warned.   It will bring down (logically) all USB
> buses, then bring them up again.

And of course, it may not be sufficient: my rt73usb wifi dongle seems to
require a unplug-replug after hibernation to bring it back to life.
No amount of "modprobe -r" seems to be able to fix it.


        Stefan


Reply to: