From owner-freebsd-current@FreeBSD.ORG Sat Mar 21 21:22:42 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 926AA106566B for ; Sat, 21 Mar 2009 21:22:42 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 138E68FC1E for ; Sat, 21 Mar 2009 21:22:41 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id n2LLMOWN022425; Sat, 21 Mar 2009 22:22:26 +0100 From: Pieter de Goeje To: Hans Petter Selasky Date: Sat, 21 Mar 2009 22:22:23 +0100 User-Agent: KMail/1.9.10 References: <200903211448.28590.pieter@degoeje.nl> <200903211706.58474.hselasky@c2i.net> In-Reply-To: <200903211706.58474.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903212222.23952.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: freebsd-current@freebsd.org 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: Sat, 21 Mar 2009 21:22:43 -0000 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 > > > > $ usbconfig list > > 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=FULL (12Mbps) > > pwr=ON > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH > > (480Mbps) 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=FULL (12Mbps) > > pwr=ON > > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=ON > > > > Relevant sections from dmesg > > > > uhci0: port 0xd000-0xd01f irq 16 at > > device 26.0 on pci0 > > uhci0: [ITHREAD] > > uhci0: LegSup = 0x2f00 > > usbus0: on uhci0 > > uhci1: port 0xd100-0xd11f irq 21 at > > device 26.1 on pci0 > > uhci1: [ITHREAD] > > uhci1: LegSup = 0x2f00 > > usbus1: on uhci1 > > uhci2: port 0xd500-0xd51f irq 18 at > > device 26.2 on pci0 > > uhci2: [ITHREAD] > > uhci2: LegSup = 0x2f00 > > usbus2: on uhci2 > > ehci0: mem 0xfc105000-0xfc1053ff > > irq 18 at device 26.7 on pci0 > > ehci0: [ITHREAD] > > usbus3: EHCI version 1.0 > > usbus3: on ehci0 > > uhci3: port 0xd200-0xd21f irq 23 at > > device 29.0 on pci0 > > uhci3: [ITHREAD] > > uhci3: LegSup = 0x2f00 > > usbus4: on uhci3 > > uhci4: port 0xd300-0xd31f irq 19 at > > device 29.1 on pci0 > > uhci4: [ITHREAD] > > uhci4: LegSup = 0x2f00 > > usbus5: on uhci4 > > uhci5: port 0xd400-0xd41f irq 18 at > > device 29.2 on pci0 > > uhci5: [ITHREAD] > > uhci5: LegSup = 0x2f00 > > usbus6: on uhci5 > > ehci1: mem 0xfc104000-0xfc1043ff > > irq 23 at device 29.7 on pci0 > > ehci1: [ITHREAD] > > usbus7: EHCI version 1.0 > > usbus7: on ehci1 > > usbus0: 12Mbps Full Speed USB v1.0 > > usbus1: 12Mbps Full Speed USB v1.0 > > usbus2: 12Mbps Full Speed USB v1.0 > > usbus3: 480Mbps High Speed USB v2.0 > > usbus4: 12Mbps Full Speed USB v1.0 > > usbus5: 12Mbps Full Speed USB v1.0 > > usbus6: 12Mbps Full Speed USB v1.0 > > usbus7: 480Mbps High Speed USB v2.0 > > ugen0.1: at usbus0 > > uhub0: on usbus0 > > ugen1.1: at usbus1 > > uhub1: on usbus1 > > ugen2.1: at usbus2 > > uhub2: on usbus2 > > ugen3.1: at usbus3 > > uhub3: on usbus3 > > ugen4.1: at usbus4 > > uhub4: on usbus4 > > ugen5.1: at usbus5 > > uhub5: on usbus5 > > ugen6.1: at usbus6 > > uhub6: on usbus6 > > ugen7.1: at usbus7 > > uhub7: on usbus7 > > > > ugen0.2: at usbus0 > > uhid0: > 1.10/a.00, addr 2> on usbus0 > > ugen1.2: at usbus1 > > ums0: on > > usbus1 ums0: 16 buttons and [XYZ] coordinates > > uhid1: on > > usbus1 > > 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. -- Pieter de Goeje