On Fri, 2008-03-07 at 11:36 -0800, Alex Harford wrote: > On Fri, Mar 7, 2008 at 8:37 AM, Martin wrote: > > > > You have to reload the driver kernel module for the device or possibly > > the USB bridge. > > > > You can't shut off power to a USB port through software. (correct me if > > I'm wrong) > > In Linux or in general? I thought this is how Windows does the > 'Safely Remove Device'. If you have a flash drive in there with an > LED, the LED goes out, even though it is still plugged in. > > There should be a file called state in a subdir like > /sys/bus/usb/devices/1-0:1.0/power, and: > echo "2" > /sys/bus/usb/devices/1-0:1.0/power/state > is supposed to power it off. But on my system (2.6.23) the state file > does not exist. :( That would be perfect! Unfortunately, while the state file exists (it contains 0) writing 2 to it appears to do nothing. Do you have more information on this mechanism? Thanks, TTYL -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist