From owner-freebsd-usb@FreeBSD.ORG Wed Jun 6 16:04:18 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24CB4106566C for ; Wed, 6 Jun 2012 16:04:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6E5C08FC18 for ; Wed, 6 Jun 2012 16:04:17 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 283917951; Wed, 06 Jun 2012 17:59:09 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 6 Jun 2012 17:58:32 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201206061758.32133.hselasky@c2i.net> Cc: Subject: Re: usb power output issues X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 16:04:18 -0000 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: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE > ugen0.1.0: uhub0: > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE > ugen1.1.0: uhub1: > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen0.2.0: uhub2: addr 2> > ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen1.2.0: uhub3: addr 2> > ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen1.3.0: uhub5: 2.00/1.00, addr 3> > ugen1.4: at usbus1, cfg=0 > md=HOST spd=LOW (1.5Mbps) pwr=ON > ugen1.4.0: ukbd0: > ugen1.4.1: ums0: > ugen1.5: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen1.5.0: uhub4: 2.00/1.00, addr 5> > ugen1.6: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen1.6.0: ukbd1: 6> > ugen1.6.1: ums1: > ugen1.6.2: uhid0: 6> --HPS