Re: lsusb omits some devices and (apparently) cannot be fixed

Aurelien Jarno <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, Sep 13, 2007 at 05:34:02PM -0500, Karl O. Pinc wrote:
> 
> On 09/13/2007 05:17:17 PM, Aurelien Jarno wrote:
> >Karl O. Pinc a écrit :
> 
> >> lsusb silently ignores at least some permission errors, resulting in
> >> no output for the device to which there are no permissions.
> 
> >
> >As already explained, lsusb does not parse /dev, but uses libusb for
> >that. If a device is not in the list given by libusb, lsusb has no way
> >to guess that a device is missing.
> 
> That's why I'm writing to (I hope) the authors of Linux's usb
> internals, so they can expose an interface libusb can use
> to come up with good error reporting.
> 
> Regards /dev, my point is that the existence of the device
> _is_ knowable to the account without permissions to
> the device, so all the necessary information is
> available.  Something just needs to put
> it together to come up with an error message.
> 

Just set the environment variable USB_DEBUG to 255 and you will see an
error message. But the binary interface of libusb has not been design 
to report such errors, and changing it now will break a lot of software.
You will have to wait for the next generation of libusb that is 
currently being developed.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.