<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Le 18/05/2012 03:55, Michael N.Steen a écrit :
    <blockquote cite="mid:1337306155.22195.57.camel@corax" type="cite">
      <pre wrap="">tor, 17 05 2012 kl. 07:17 +0200, skrev stef:

</pre>
      <blockquote type="cite">
        <pre wrap="">     Hello,

     could you add :
export SANE_DEBUG_SANEI_USB=255
     before running scanimage -L as root ? I have seen usb failing 
sometimes on setting alternate endpoints. Which was solved by compiling 
SANE with the old libusb (not libusb-1.0). With this debug level we 
should have more information about it.

Regards,
     Stef

</pre>
      </blockquote>
      <pre wrap="">
Hi, 

So I tried 

# export SANE_DEBUG_GENESYS=255
# export SANE_DEBUG_GENESYS_LOW=255
# export SANE_DEBUG_GENESYS_GL646=255
# export SANE_DEBUG_SANEI_USB=255
# scanimage -L

It seems to me, that it finds the scanner but can't figure out what to
do with it. The output is so long and I'm not sure what is important and
what not, so I' attaching it all as a text file, except that seemingly uninteresting
part are deleted and replaced with [...] to comply with the size limits of the list.

The original file is available if need be.

My apologies to the moderators if I have inadvertedly violated the rules of the list.

Thank you very much for your time.

Best regards, 
Michael

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
        Hello,<br>
    <br>
        the interesting part is:<br>
    [sanei_usb] sanei_usb_open: trying to open device `libusb:004:012'<br>
    libusb:error [op_set_configuration] failed, error -1 errno 71<br>
    [sanei_usb] sanei_usb_open: libusb complained: Numerical result out
    of range<br>
    [genesys] attach: couldn't open device `libusb:004:012': Invalid
    argument<br>
        this means SANE's to set up USB for your scanner. I have
    encountered this problem with my GL646 based MD5345. I worked around
    it by recompiling SANE with another libusb version (ie I used libusb
    instead aof libusb-1.0, or the other way round, I don't remember).
    The same software combination worked on another computer. I did some
    debugging but don't have enough time to finish. I wouldn't be
    surprised if it is a kernel or libusb (or a combination of both)
    bug.<br>
    <br>
    Regards,<br>
        Stef<br>
  </body>
</html>