Re: usbconfig / hal-device no longer lists usb devices

From: Andrew Thompson <thompsa_at_FreeBSD.org>
Date: Sat, 21 Mar 2009 17:03:31 -0700
On Sun, Mar 22, 2009 at 02:52:33AM +0300, Anonymous wrote:
> Pieter de Goeje <pieter_at_degoeje.nl> 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_at_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
Received on Sat Mar 21 2009 - 23:03:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC