Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2011 17:20:58 +0200
From:      Peer Stritzinger <peerst@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   Re: Powercycling USB device on hub
Message-ID:  <CA%2BervzaH2sybNmM%2B94URpdLTUG%2BzB5AgMqu6LnQz=w%2B=AijhLg@mail.gmail.com>
In-Reply-To: <CA%2BervzYe-eTa0he14VvHkmN-9gwD0hahBAjJXqbQeeKX3zuNsQ@mail.gmail.com>
References:  <CA%2BervzZXRTHk6GWSy0HMELaANdwYia4ddQ1pX=tCrPx73pqMtg@mail.gmail.com> <201107201519.55975.hselasky@c2i.net> <CA%2Bervza7eeMo%2BCePWqV_PRXka4_VdH49JgTc9rEpPZ%2BCXQF2uA@mail.gmail.com> <201107211249.03972.hselasky@c2i.net> <CA%2BervzYe-eTa0he14VvHkmN-9gwD0hahBAjJXqbQeeKX3zuNsQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Thu, Jul 21, 2011 at 12:49 PM, Hans Petter Selasky <hselasky@c2i.net> wr=
ote:
>> > 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 res=
et 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:

=A0$ 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BervzaH2sybNmM%2B94URpdLTUG%2BzB5AgMqu6LnQz=w%2B=AijhLg>