On Thu, 6 Apr 2006, Greg KH wrote:

> On Thu, Apr 06, 2006 at 01:15:41PM -0400, Zoont Foomby wrote:
> > Hi all you crazy Linux USB hackers!
> > 
> > Has anyone created a patch to allow one to disable a device on the USB
> > bus? It sure would be nice to be able to plug all of my USB storage
> > devices into my Linux box without having linux actually claim them for
> > use.
> 
> You can disconnect any device from the driver by writing the device id
> to the "unbind" file in the /sys/bus/usb/driver/DRIVER_NAME/ directory
> in sysfs.

You can also unconfigure any USB device by doing

        echo -n 0 >/sys/bus/usb/devices/DEVICE_NAME/bConfigurationValue

This will automatically unbind it from all its drivers (and in the case of 
the iPod, presumably leave it happily recharging in user mode.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to