From owner-freebsd-usb@FreeBSD.ORG Tue Apr 7 16:55:23 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 446C93BB for ; Tue, 7 Apr 2015 16:55:23 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06CCB1A7 for ; Tue, 7 Apr 2015 16:55:22 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4020B1FE022; Tue, 7 Apr 2015 18:55:20 +0200 (CEST) Message-ID: <55240C26.7000905@selasky.org> Date: Tue, 07 Apr 2015 18:56:06 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Matthias Apitz , freebsd-usb@freebsd.org Subject: Re: power off 5V on USB port References: <20150407133014.GA1790@c720-r276659> In-Reply-To: <20150407133014.GA1790@c720-r276659> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 16:55:23 -0000 On 04/07/15 15:30, Matthias Apitz wrote: > > > Hello, > > I'm using an Ubuntu smartphone connected on one of the USB ports to my > netbook as a router to the Internet. I wanted to power-off the USB port to > a) save energy in the netbook and > b) not having the phone always charged for the memory effect in the battery. > > I tried: > > $ usbconfig > ... > ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > # usbconfig -d ugen0.3 power_off > # usbconfig -d ugen0.3 > ugen0.3: at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF (500mA) > > as you can see the state is now pwr=OFF, but in this state the USB port > is not longer usable. What is the correct way to shutdown the 5V > provided via USB to the device? > Not all USB ports support power off. --HPS