From owner-freebsd-usb@FreeBSD.ORG Mon Aug 29 18:18:43 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 6F6C61065670 for ; Mon, 29 Aug 2011 18:18:43 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (unknown [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id B7C3B8FC16 for ; Mon, 29 Aug 2011 18:18:42 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id p7TIIY4J029654; Tue, 30 Aug 2011 01:18:34 +0700 (NOVST) (envelope-from egrosbein@rdtc.ru) Message-ID: <4E5BD7F5.1010700@rdtc.ru> Date: Tue, 30 Aug 2011 01:18:29 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Hans Petter Selasky References: <4E5BD533.6010208@rdtc.ru> <201108292011.00706.hselasky@c2i.net> In-Reply-To: <201108292011.00706.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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:18:43 -0000 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: 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: > FW651.18.I USB FW7.4 American Power 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: > MSM ZTE, Incorporated> 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. Eugene Grosbein