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

RE: reinserting USB plug via software

> From: Henrique de Moraes Holschuh [mailto:hmh@debian.org]
> Sent: Tuesday, January 20, 2009 12:19 PM
> Subject: Re: reinserting USB plug via software
> On Tue, 20 Jan 2009, Stackpole, Chris wrote:
> > > What commands would be the equivalent to pulling the USB connector
> > > 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
> buses, then bring them up again.

Wait. It will bring down _all_ USB buses? Hrm. I think I will just stick
with unplugging and plugging it back in. I just have an external hard
drive that refuses to go into standby mode/sleep unless I unmount it.
However, once it goes to sleep, I haven't been able to bring it out of
sleep unless I unplug and plug it back in. It is annoying to have to
stand up and go to the computer to mess around with it when I need it,
but since I rarely use it that alternative is slightly less annoying
then having it constantly whirring. 

Thanks anyway though! It is another set of commands that I will have to


Reply to: