Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 21:23:41 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Daniel Rucci <rucci@warganizer.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: force power over usb
Message-ID:  <20050520192340.GP80082@cicely12.cicely.de>
In-Reply-To: <428E33CE.8060007@warganizer.com>
References:  <428A2350.6000603@warganizer.com> <20050519194949.GS80082@cicely12.cicely.de> <428CFA06.8040608@warganizer.com> <20050520112115.GD80082@cicely12.cicely.de> <428E33CE.8060007@warganizer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd@bwct.de                                  info@bwct.de



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