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.

Writing a simple shell script to do this for the devices that you care
about is left as an exercise for the reader :)

> I guess in this way Windows wins - in Windows I can right-click a
> device in the device manager and 'disable' it from the drop down menu
> on the first properties page.

Feel free to write a gui tool that does this too, if you really want it.

Hope this helps,

greg k-h


-------------------------------------------------------
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