Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2009 10:47:50 -0300
From:      Renato Botelho <rbgarga@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [new-usb] - USB_ERR_NO_POWER on keyboard hub
Message-ID:  <747dc8f30905180647r76ec74b5ud90eb2c062aef988@mail.gmail.com>
In-Reply-To: <200905181546.02302.hselasky@c2i.net>
References:  <747dc8f30905180627h25c83dbt8b5fd8527bad6f15@mail.gmail.com>  <200905181546.02302.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 18, 2009 at 10:46 AM, Hans Petter Selasky <hselasky@c2i.net> 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: <Alcor Micro> at usbus0
>> ums0: <Alcor Micro USB Mouse, class 0/0, rev 1.10/51.27, addr 3> on usbus0
>> ums0: 3 buttons and [XYZ] coordinates ID=0
>> ugen0.4: <Sun Microsystems> at usbus0
>> ukbd0: <Sun Microsystems Type 7 USB keyboard, class 0/0, rev
>> 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: <ALi Corp.> at usbus0
>> pid 3705 (hald-probe-usb2-dev), uid 0: exited on signal 11
>> ugen0.5: <ALi Corp.> 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: <ALi Corp.> at usbus0
>> pid 3886 (hald-probe-usb2-dev), uid 0: exited on signal 11
>> ugen0.5: <ALi Corp.> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f30905180647r76ec74b5ud90eb2c062aef988>