From owner-freebsd-current@FreeBSD.ORG Mon May 18 13:48:11 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 682D1106566B for ; Mon, 18 May 2009 13:48:11 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id 219B58FC12 for ; Mon, 18 May 2009 13:48:10 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: by qyk3 with SMTP id 3so5689642qyk.3 for ; Mon, 18 May 2009 06:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=xMJR2RfZfs7/d+ojBCFzLfI3vMroYcs9lotVlzlcisk=; b=eY3u/iHD91OAgrCoWX8MHdYBWWChT+517/F6yDI+aLX6omUkCFZL87g1iktMcNuxF+ Bg3eXOaMHLDDzHsFMuTpbmyC0ZpaYd/uUBljpv6pS3AMuXA8VPYWCMs100nFcS2sPP3N 52V4D8LWGlC54n5/FZ+0tl4zQKZC3pr26tw70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=oNB6q3kESffSq/p5LiN0I7scSbbfQmiqOSRVw+IaSMTk87HF/PFzf86/ct6cK5rfII QAn+HaoT+wl15AnqEFWkPS3nTKvRJlcaQT3k6nCDA5BncIIL4Oeno94dPRxpY72aLxbu i5i55w9x+p3l2KL69ZqC53AMUsP2gwWpKj/aU= MIME-Version: 1.0 Received: by 10.220.76.212 with SMTP id d20mr6605394vck.26.1242654490196; Mon, 18 May 2009 06:48:10 -0700 (PDT) In-Reply-To: <200905181546.02302.hselasky@c2i.net> References: <747dc8f30905180627h25c83dbt8b5fd8527bad6f15@mail.gmail.com> <200905181546.02302.hselasky@c2i.net> From: Renato Botelho Date: Mon, 18 May 2009 10:47:50 -0300 Message-ID: <747dc8f30905180647r76ec74b5ud90eb2c062aef988@mail.gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: [new-usb] - USB_ERR_NO_POWER on keyboard hub X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 13:48:11 -0000 On Mon, May 18, 2009 at 10:46 AM, Hans Petter Selasky wrote: > On Monday 18 May 2009, Renato Botelho wrote: >> I have a Sun USB Type 7 keyboard, and this keyboard has an USB hub >> with 3 ports on it. I'm using one of those 3 ports to plug the mouse and >> it's working fine. >> >> uhub5: 4 ports with 3 removable, bus powered >> ugen0.3: at usbus0 >> ums0: on usbus0 >> ums0: 3 buttons and [XYZ] coordinates ID=0 >> ugen0.4: at usbus0 >> ukbd0: > 2.00/1.04, addr 4> on usbus0 >> kbd2 at ukbd0 >> >> When I tried to plug a pen drive on anothe one, I got this: >> >> usb2_set_config_index:531: power exceeded 500 > 100 >> usb2_set_config_index:531: power exceeded 500 > 100 >> usb2_alloc_device:1755: Failure selecting configuration index 0: >> USB_ERR_NO_POWER, port 2, addr 5 (ignored) >> ugen0.5: at usbus0 >> pid 3705 (hald-probe-usb2-dev), uid 0: exited on signal 11 >> ugen0.5: at usbus0 (disconnected) >> >> usb2_set_config_index:531: power exceeded 500 > 100 >> usb2_set_config_index:531: power exceeded 500 > 100 >> usb2_alloc_device:1755: Failure selecting configuration index 0: >> USB_ERR_NO_POWER, port 1, addr 5 (ignored) >> ugen0.5: at usbus0 >> pid 3886 (hald-probe-usb2-dev), uid 0: exited on signal 11 >> ugen0.5: at usbus0 (disconnected) >> >> I'm using FreeBSD 8.0-current r192140. >> >> Let me know if there is more information i need to provide. >> >> Thanks > > Hi, > > Your Keyboard HUB technically does not allow current consumption above 100mA > per port. Your memstick reports it needs 500mA. Probably you can hack around > it, but then your hardware might break ... Yep, I found now this text on Sun FAQ: What is power budget control? Power budget control is specified in USB spec to limit device connections to a hub to avoid overcurrent condition. A self-powered hub can supply a maximum of 500mA to each port, while a bus-powered hub should only supply a maximum of 100mA to each port. With power budget control, devices consuming power more than 100mA will be denied connection to a bus-powered hub. And two bus-powered hubs are not allowed to be concatenated. I can live without it, prefer to keep my kbd working :) Thank you -- Renato Botelho