From owner-freebsd-usb@FreeBSD.ORG Thu Jul 21 10:51:18 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0375F1065670 for ; Thu, 21 Jul 2011 10:51:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 86DB38FC19 for ; Thu, 21 Jul 2011 10:51:17 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=yfIOS+81wnQIz0UwZPDdWOvE/jQxEvyI9Z1xC25I9wc= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=fa5KVJVg6bUA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=m9U9hcouXGd-qSs7-NUA:9 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 156117575; Thu, 21 Jul 2011 12:51:15 +0200 From: Hans Petter Selasky To: Peer Stritzinger Date: Thu, 21 Jul 2011 12:49:03 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201107201519.55975.hselasky@c2i.net> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107211249.03972.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Powercycling USB device on hub X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 10:51:18 -0000 On Thursday 21 July 2011 12:47:55 Peer Stritzinger wrote: > Hi, > > On Wed, Jul 20, 2011 at 3:19 PM, Hans Petter Selasky wrote: > > On Wednesday 20 July 2011 14:30:37 Peer Stritzinger 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. > Hi, > Do I understand this right: I reset the USB Hub device to powercycle > all devices connected to it? Yes. That is correct. > > >There is also a power_off command, but your device might > > > > not come back after that. > > This would probably really not help since I try to reboot a USB device > with hung software, so it won't recognize any commands itself. Have you tried usbconfig -d X.Y reset ? 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. --HPS