From owner-freebsd-usb@FreeBSD.ORG Sat Jul 23 15:20:59 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 540BD106566B for ; Sat, 23 Jul 2011 15:20:59 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7038FC12 for ; Sat, 23 Jul 2011 15:20:58 +0000 (UTC) Received: by vws18 with SMTP id 18so2936598vws.13 for ; Sat, 23 Jul 2011 08:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=o0QQXFfCHNlJcNhb/gq4ihsrz7RUOueTrC3/NtIIZI8=; b=Vygxj5YFYHxROpMSS6Ua40D4MQhgrSL/YHrGv9fHuQgDns4D+PeE77IiKhXMjuUsfK +Zl8DhCArWJ5E++wbK8MxbL7tqsVKtec1DVdJ6v7tG0FUAh+b5PjeuCaPBY6IlKzxwEo CceuASxhzGZZg1J/jinMsu8zuSdngYS83voww= MIME-Version: 1.0 Received: by 10.52.66.15 with SMTP id b15mr2443577vdt.425.1311434458338; Sat, 23 Jul 2011 08:20:58 -0700 (PDT) Received: by 10.52.188.102 with HTTP; Sat, 23 Jul 2011 08:20:58 -0700 (PDT) In-Reply-To: References: <201107201519.55975.hselasky@c2i.net> <201107211249.03972.hselasky@c2i.net> Date: Sat, 23 Jul 2011 17:20:58 +0200 Message-ID: From: Peer Stritzinger To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Sat, 23 Jul 2011 15:20:59 -0000 Hi, On Thu, Jul 21, 2011 at 12:49 PM, Hans Petter Selasky 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 >