usb power output issues

Hans Petter Selasky hselasky at c2i.net
Wed Jun 6 16:04:18 UTC 2012


On Wednesday 06 June 2012 17:38:44 Mark Felder wrote:
> Hi all,
> 
> I have a Dell OptiPlex 390. There are several in the office, but mine is
> the only one that runs FreeBSD. I'm currently running FreeBSD 9.0-STABLE
> #4 r234571, but this has happened on several previous builds as well. I've
> never run an 8.x branch on this hardware.
> 
> Sometimes when I come into the office -- perhaps once a week -- I'll find
> that my nice keyboard has stopped functioning. My mouse always works, but
> the keyboard does not. I can plug in any USB keyboard and I see it
> recognized by reading the console messages, but they just don't work. The
> CapsLock, ScrollLock, Numlock, etc lights don't even turn on. I usually
> just reboot the computer and move on, but today this happened when I was
> on the phone with a customer so I knew I couldn't blame it on a
> screensaver or anything whacky like that. I ended up digging out a powered
> USB hub and plugging my keyboard into that. It started working as expected
> at this time.

Hi,

Can you try pressing CTRL+ALT+F1, then CTRL+ALT+F9. Sometimes I see something 
similar, and switching back and forth between the console helps.

> 
> I am wondering if this is a known issue or if there is anything in the USB
> stack that could cause this behavior? My PC is currently in this state and
> I don't ever power it off, so if someone needs some USB diagnostics output
> I can provide that. This is not a debugging kernel so I can't get you any
> output from DDB at this time.

You can try to get dmesg, and also run:

usbconfig dump_device_desc dump_curr_config_desc

If your device times out on the command above, something is wrong in USB. Else 
it is a problem in the interaction with X11.

FYI: CAPS-LOCK-LED and NUM-LOCK-LED are software controlled by the USB stack.

> 
> 
> tech304# usbconfig show_ifdrv
> ugen0.1: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=SAVE
> ugen0.1.0: uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1>
> ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=SAVE
> ugen1.1.0: uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1>
> ugen0.2: <product 0x0024 vendor 0x8087> at usbus0, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=SAVE
> ugen0.2.0: uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00,
> addr 2>
> ugen1.2: <product 0x0024 vendor 0x8087> at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=SAVE
> ugen1.2.0: uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00,
> addr 2>
> ugen1.3: <USB 2.0 Hub MTT vendor 0x1a40> at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=SAVE
> ugen1.3.0: uhub5: <vendor 0x1a40 USB 2.0 Hub MTT, class 9/0, rev
> 2.00/1.00, addr 3>
> ugen1.4: <Cypress USB Keyboard  PS2 Mouse Cypress> at usbus1, cfg=0
> md=HOST spd=LOW (1.5Mbps) pwr=ON
> ugen1.4.0: ukbd0: <EndPoint1 Interrupt>
> ugen1.4.1: ums0: <EP2 Interrupt>
> ugen1.5: <USB 2.0 Hub MTT vendor 0x1a40> at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=SAVE
> ugen1.5.0: uhub4: <vendor 0x1a40 USB 2.0 Hub MTT, class 9/0, rev
> 2.00/1.00, addr 5>
> ugen1.6: <USB Receiver Logitech> at usbus1, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=ON
> ugen1.6.0: ukbd1: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr
> 6>
> ugen1.6.1: ums1: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 6>
> ugen1.6.2: uhid0: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr
> 6>

--HPS


More information about the freebsd-usb mailing list