Powercycling USB device on hub

Peer Stritzinger peerst at gmail.com
Sat Jul 23 15:20:59 UTC 2011


Hi,

On Thu, Jul 21, 2011 at 12:49 PM, Hans Petter Selasky <hselasky at c2i.net> wrote:
>> > Using the usbconfig utility in 8 stable and 9 current, you can set the
>> > configuration to 255 which means unconfigured and then 0 for the root
>> > HUB. For non-root HUBs you can BUS-reset the devices usbconfig -d X.Y
>> > reset or set_config aswell.
>
> Have you tried usbconfig -d X.Y reset ?

Problem is that the production system where I need to do this is still
running 8.0 ...

But I got it working with usbconfig -u X -a Y reset, did not work
first because I got the wrong device.

Not since I'm reseting the correct (non root) HUB I see a powercycle
on the USB device, so it works.

> Do a power_off command before the parent HUB reset, if the parent HUB reset is
> not enough. Beware that some motherboards hardwire the powersupply to the USB
> port. I.E. it is not possible to power-cycle the root HUB USB port.

Even worse: after trying to reset one of the root HUBS I get:

 $ sudo usbconfig -u 3 -a 1 reset
usbconfig: could not reset device: Device not configured

and after this all devices hat are on this bus are no longer visible
to usbconfig until the next reboot.

Cheers
-- Peer

> --HPS
>


More information about the freebsd-usb mailing list