Re: reinserting USB plug via software
On Wed, Jan 21, 2009 at 01:40:04PM -0600, Stackpole, Chris wrote:
> > From: Henrique de Moraes Holschuh [mailto:hmh@debian.org]
> > Sent: Tuesday, January 20, 2009 12:19 PM
> > Subject: Re: reinserting USB plug via software
> > 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.
>
> Wait. It will bring down _all_ USB buses? Hrm. I think I will just stick
> with unplugging and plugging it back in.
Alternatively: rmmod usb_storage
(but this will also disconnect other USB disks)
See also the following:
http://blog.andrew.net.au/2009/01/17#usb_power_control2
Maybe it will provide you some hints, though it seems to deal with
devices that are USB hubs themselves.
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: