From owner-freebsd-current@FreeBSD.ORG Thu Mar 19 22:46:11 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16CE01065670 for ; Thu, 19 Mar 2009 22:46:11 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo6.cc.swin.edu.au (gpo6.cc.swin.edu.au [136.186.1.35]) by mx1.freebsd.org (Postfix) with ESMTP id A391A8FC14 for ; Thu, 19 Mar 2009 22:46:10 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo6.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id n2JMk0QM008779; Fri, 20 Mar 2009 09:46:05 +1100 Message-ID: <49C2CB27.30102@swin.edu.au> Date: Fri, 20 Mar 2009 09:45:59 +1100 From: Mattia Rossi User-Agent: Thunderbird 2.0.0.19 (X11/20090309) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <49C083A4.5020608@swin.edu.au> <200903180904.52127.hselasky@c2i.net> <49C17A53.8030608@swin.edu.au> <200903190925.31551.hselasky@c2i.net> In-Reply-To: <200903190925.31551.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Hans Petter Selasky Subject: Re: USB2, mouse and X X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 22:46:11 -0000 Hans Petter Selasky wrote: > Hi Mattia, > > I see that your keyboard is connected through a High-Speed HUB. > > 1) Has your setup ever worked with the USB2 stack? It's strange that there is > only one interrupt on the EHCI. And when was the kernel built? > FreeBSD 8.0-CURRENT #11 r189933M: Wed Mar 18 10:34:42 EST 2009 Actually the trouble with the mouse started with the USB2 stack. It never worked properly since then. First I thought it's an X problem, then a KDE4 problem, and after rebuilding and rebuilding I gave up.. > 2) When you run "usbconfig" you will see some lines with "pwr=SAVE". Maybe > there is a bug that will disable the wrong ports at power save. > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen6.3: at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen6.4: at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON That's what it looks like. > 3) Can you try other ports or connect another High Speed HUB in between? > > usbconfig -u 6 -a 2 power_on > Tried to switch power on. It looks like this now: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.3: at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen6.4: at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON but it doesn't change the situation. There is still the lag. Plugging keyboard and mouse in on the back port of the PC just gives the following output: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen5.2: at usbus5, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen5.3: at usbus5, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON Nothing changes here either. I'll rebuild the latest kernel, and see what happens then. Thanks for your help! Mat > --HPS > > ugen6.2: at usbus6 > uhub7: addr 2> on usbus6 > uhub7: 2 ports with 1 removable, self powered > ugen6.3: at usbus6 > ukbd0: > on usbus6 > kbd2 at ukbd0 > ugen6.4: at usbus6 > ums0: on > usbus6 > ums0: 3 buttons and [XYZ] coordinates > > >> irq22: ehci0 uhci4 1 0 >> Then to the console switching part: It's not possible to switch to the >> console until the text shows up again. As I said, it seems the system >> gets blocked. >>