On Mon, Aug 04, 2008 at 11:57:56PM +0200, Giuseppe Sacco wrote:
> On Mon, 4 Aug 2008 21:59:06 +0200 Aurelien Jarno <[EMAIL PROTECTED]> wrote:
> [...]
> > Could you please set the environment variable USB_DEBUG to 255 and run
> > lsusb or any other USB application. This should give you a hint about 
> > the problem. Also running lsusb with strace could give more details.
> 
> [EMAIL PROTECTED]:~$ sudo env USB_DEBUG=255 lsusb
> Password:
> usb_set_debug: Setting debugging level to 255 (on)
> usb_os_init: Found USB VFS at /dev/bus/usb
> usb_os_find_busses: Found 003
> usb_os_find_busses: Found 001
> usb_os_find_busses: Found 002
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/007
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/006
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/005
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/004
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/003
> usb_os_find_devices: Couldn't open /dev/bus/usb/003/002

So it seems it can't open the devices. The corresponding code in libusb
is:

    fd = open(filename, O_RDWR);
    if (fd < 0) {
      fd = open(filename, O_RDONLY);
      if (fd < 0) {
        if (usb_debug >= 2)
          fprintf(stderr, "usb_os_find_devices: Couldn't open %s\n",
                  filename);

So either it is a bug in the kernel, either udev creates the wrong
devices. Running "strace lsusb" will most probably give the answer.

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to