From owner-freebsd-usb@FreeBSD.ORG Mon Aug 29 18:36:47 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 9ADAE106564A for ; Mon, 29 Aug 2011 18:36:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 191448FC13 for ; Mon, 29 Aug 2011 18:36:46 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=ZrWDMTID0AMW4DNRKF44fvigJaUxxg2ESvddpUoMqyA= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=2kYNRXJinEix5IcCPUcA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 172589123; Mon, 29 Aug 2011 20:36:45 +0200 From: Hans Petter Selasky To: Eugene Grosbein Date: Mon, 29 Aug 2011 20:34:11 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4E5BD533.6010208@rdtc.ru> <201108292011.00706.hselasky@c2i.net> <4E5BD7F5.1010700@rdtc.ru> In-Reply-To: <4E5BD7F5.1010700@rdtc.ru> 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: <201108292034.11298.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: power off port physically 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: Mon, 29 Aug 2011 18:36:47 -0000 On Monday 29 August 2011 20:18:29 Eugene Grosbein wrote: > 30.08.2011 01:11, Hans Petter Selasky wrote: > >> I have USB 3G modem with LED and all my attempts to power it off > >> with usbconfig power_off/power_on, set_state 255 to its hub do nothing > >> to modem's LED that is ON still, so modem does not get powered off > >> physically. > >> > >> I have Intel D975XBX motherboard and use its onboard USB2.0 ports: > >> > >> # usbconfig > >> ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL > >> (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 > >> md=HOST spd=FULL (12Mbps) pwr=SAVE ugen2.1: at > >> usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen3.1: >> HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen4.1: > >> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) > >> pwr=SAVE ugen0.2: >> Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen4.2: > >> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) > >> pwr=SAVE ugen4.3: at > >> usbus4, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON > >> > >> As you can see, I also have additional USB Hub intergrated with my > >> monitor, tried its ports too - without luck. > >> > >> Please CC: me as I'm not in the list. > >> > >> How do I power USB port off with FreeBSD 8.2-STABLE? > > > > If you use an external HUB and the HUB does not have the power always > > one, like some do, it should be enough to re-enumerate the parent HUB > > which your device is connected to. > > I use motherboard-integrated USB ports. How do I "re-enumerate" the parent > HUB? I've tried "usbconfig -d 4.1 set_config 255" - it does not power my > device off. > > I need not quick reset. I need power it off for long time. Hi, You could try: usbconfig -d X.Y suspend or usbconfig -d X.Y power_off, though if the hardware is not constructed to support power off it won't work. Also read the thread that Mike referred to. --HPS