force power over usb

Hans Petter Selasky hselasky at c2i.net
Fri May 20 13:51:42 PDT 2005


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


More information about the freebsd-usb mailing list