From owner-freebsd-usb@FreeBSD.ORG Fri May 20 20:51:42 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B32FC16A4CE for ; Fri, 20 May 2005 20:51:42 +0000 (GMT) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA5543DB0 for ; Fri, 20 May 2005 20:51:36 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-232-171.daxnet.no ([193.217.232.171] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 175036530; Fri, 20 May 2005 22:51:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, ticso@cicely.de Date: Fri, 20 May 2005 22:52:16 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <428E33CE.8060007@warganizer.com> <20050520192340.GP80082@cicely12.cicely.de> In-Reply-To: <20050520192340.GP80082@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_B4kjCDMUIwkKptX" Message-Id: <200505202252.17614.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Daniel Rucci Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 20:51:42 -0000 --Boundary-00=_B4kjCDMUIwkKptX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 20 May 2005 21:23, Bernd Walter wrote: > On Fri, May 20, 2005 at 03:00:30PM -0400, Daniel Rucci wrote: > > # usbdevs -v > > Controller /dev/usb0: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > Controller /dev/usb1: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 addr 2: full speed, self powered, config 1, Motorola Phone > > (V3)(0x4902), Motorola Inc.(0x22b8), rev 0.01 > > Controller /dev/usb2: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 addr 2: full speed, power 90 mA, config 1, product > > 0x2441(0x2441), Actiontec Electronics(0x1668), rev 5.46 > > port 2 powered > > > > output did not hang. Is there anyway to change it so its not self > > powered? > > It is what the device tells, maybe config 1 is just the configuration > for running on own power. > A device may have several configs with different power/feature sets. > A freshly contected device is considered unconfigured. > You can use /dev/ugen to set a different one - well if your device > really has different ones. > Just open(2) the device and use UR_SET_CONFIG ioctl. > The disabling mesage is still very strange, as the device is not > disabled. > Unless you need it for something else you might as well try a kernel > without ugen support. You can dump all configurations with the attached program "usb_dump.c", when your device is attached as ugen. cc usb_dump.c ./a.out -i -d -D -f /dev/ugen0 What does it say? --HPS --Boundary-00=_B4kjCDMUIwkKptX--