Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2011 15:19:55 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: Powercycling USB device on hub
Message-ID:  <201107201519.55975.hselasky@c2i.net>
In-Reply-To: <CA%2BervzZXRTHk6GWSy0HMELaANdwYia4ddQ1pX=tCrPx73pqMtg@mail.gmail.com>
References:  <CA%2BervzZXRTHk6GWSy0HMELaANdwYia4ddQ1pX=tCrPx73pqMtg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote:
> Hi,
> 
> is ist possible to power-cycle the HUB port of a USB device by
> programmatic means (via script or libusb or some ioctl)?
> 
> It would be perfect if I could power-off/on just a certain device but
> it would also help to power-cycle all devices on a HUB.
> 

Hi,

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. There is also a power_off command, but your device might 
not come back after that.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107201519.55975.hselasky>