From owner-freebsd-current@FreeBSD.ORG Sun Mar 22 00:03:37 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 A3A4E1065716 for ; Sun, 22 Mar 2009 00:03:37 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 439988FC0A for ; Sun, 22 Mar 2009 00:03:37 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 3B214FF31; Sun, 22 Mar 2009 13:03:36 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BsuB0xFUkWLo; Sun, 22 Mar 2009 13:03:32 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sun, 22 Mar 2009 13:03:32 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 77C951142F; Sun, 22 Mar 2009 13:03:31 +1300 (NZDT) Date: Sat, 21 Mar 2009 17:03:31 -0700 From: Andrew Thompson To: Anonymous Message-ID: <20090322000331.GA50126@citylink.fud.org.nz> References: <200903211448.28590.pieter@degoeje.nl> <200903211706.58474.hselasky@c2i.net> <200903212222.23952.pieter@degoeje.nl> <861vsqe8n2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <861vsqe8n2.fsf@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Pieter de Goeje , freebsd-current@freebsd.org, Hans Petter Selasky Subject: Re: usbconfig / hal-device no longer lists usb devices 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: Sun, 22 Mar 2009 00:03:38 -0000 On Sun, Mar 22, 2009 at 02:52:33AM +0300, Anonymous wrote: > Pieter de Goeje writes: > > > On Saturday 21 March 2009, Hans Petter Selasky wrote: > >> On Saturday 21 March 2009, Pieter de Goeje wrote: > >> > Since a couple of weeks usbconfig and hal-device no longer list my usb > >> > devices. I know it worked before (also with the new USB stack). I think > >> > this causes my mouse to not work in X, while it works fine on the > >> > console. I've double checked that I don't have libusb from ports > >> > installed. I've rebuild kernel/world, make delete-old && make delete-old > >> > libs, recompiled hald, but still no success. > >> > > >> > $ uname -a > >> > FreeBSD nox.student.utwente.nl 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat > >> > Mar 21 13:37:32 CET 2009 > >> > pyotr@nox.student.utwente.nl:/usr/obj/FreeBSD/FreeBSD-current/src/sys/GEN > >> >ER IC i386 > >> > > [...] > >> > >> Make sure that the devices under /dev/usb/xxx have proper permissions. > >> > >> --HPS > > > > Yes, they all have the same permissions: crw-------. I'm running usbconfig as > > root btw, so it shouldn't matter. > > > > I added a bunch of printf()s to libusb, specifically ugen20_enumerate(). > > Both ugen0.2 and ugen1.2 failed at ioctl(f, USB_GET_PLUGTIME, &plugtime) > > because it returned EINVAL. The ugenX.2 files were opened successfully. > > > > At this point it looks like the problem lies somewhere in the kernel, which > > makes it a lot harder for me to debug. > > Can you try to back out r189906? Doing so makes my keyboard to appear in > usbconfig output again. Here is a ktrace diff for `usbconfig -u 0 -a 3'. > What does sysctl hw.usb2.dev.debug=2 show with usbconfig on the latest HEAD code? Andrew