force power over usb

Bernd Walter ticso at cicely12.cicely.de
Fri May 20 12:24:13 PDT 2005


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 at bwct.de                                  info at bwct.de



More information about the freebsd-usb mailing list