From owner-freebsd-usb@FreeBSD.ORG Wed Apr 8 05:56:00 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 055E2229 for ; Wed, 8 Apr 2015 05:56:00 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1D18D19 for ; Wed, 8 Apr 2015 05:55:59 +0000 (UTC) Received: from [80.187.96.144] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Yfixt-0002QU-Q4; Wed, 08 Apr 2015 07:55:55 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t385tmQb002047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 8 Apr 2015 07:55:48 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t385tl1d002046; Wed, 8 Apr 2015 07:55:47 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 8 Apr 2015 07:55:46 +0200 From: Matthias Apitz To: Hans Petter Selasky Subject: Re: power off 5V on USB port Message-ID: <20150408055546.GA1998@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Hans Petter Selasky , freebsd-usb@freebsd.org References: <20150407133014.GA1790@c720-r276659> <55240C26.7000905@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55240C26.7000905@selasky.org> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 80.187.96.144 Cc: freebsd-usb@freebsd.org 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: Wed, 08 Apr 2015 05:56:00 -0000 El día Tuesday, April 07, 2015 a las 06:56:06PM +0200, Hans Petter Selasky escribió: > > 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. I will go and look for a cable with type-A receptacle and type-A plug and will cut the red line of pin 1 to see if this let the phone still asume that someting is conected on USB to talk with; btw: the man page usbconfig(8) does not explain what 'power_off' means at all; matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 "Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden." "Si el hombre es formado por las circunstancias entonces es necesario formar humanamente las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)