<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Here is the log output (with SANE_DEBUG_SANEI_USB=255) for running scanimage -L *five* times, then the tail of dmesg: https://gist.github.com/jonemo/8dc14c0c3ffdde31aeff</div><div><div class="zmail_extra"><div id="1"><br></div><div id="1">I ran it five times because I noticed that while the 1st and 3rd run both yield the desired output (listing the device), the first one is different from the 3rd in that the scanner does not do the initialization and this is also visible from the debug output of course. Not sure if this is expected or relevant here.</div><div id="1"><br></div><div id="1">-Jonas</div><div id="1"><br>---- On Thu, 19 Mar 2015 13:39:49 -0700 <b>m. allan noah<kitno455@gmail.com></b> wrote ---- <br></div><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px">could you add SANE_DEBUG_SANEI_USB=255 to your command, and run <br>scanimage -L three times? Then afterwards, can you run the command <br>dmesg and look at the end of the output for any usb related messages? <br> <br>allan <br> <br>On Thu, Mar 19, 2015 at 3:51 PM, Jonas Neubert <<a href="mailto:jonas.neubert@gmail.com" target="_blank" mailid="jonas.neubert%40gmail.com" subj="">jonas.neubert@gmail.com</a>> wrote: <br>> Both scanimage -L and scanimage --help show the same behavior: Works once, fails second time. Debug outputs: <br>> <br>> scanimage -L: <a href="https://gist.github.com/jonemo/c0e508baf4533d79a2ea" target="_blank">https://gist.github.com/jonemo/c0e508baf4533d79a2ea</a> <br>> scanimage --help: <a href="https://gist.github.com/jonemo/6879f07a590d8a5f3fe2" target="_blank">https://gist.github.com/jonemo/6879f07a590d8a5f3fe2</a> <br>> <br>> -Jonas <br>> <br>> ---- On Thu, 19 Mar 2015 05:26:34 -0700 m. allan noah<<a href="mailto:kitno455@gmail.com" target="_blank" mailid="kitno455%40gmail.com" subj="">kitno455@gmail.com</a>> wrote ---- <br>>  > There have been no recent changes that would improve the situation. <br>>  > Can you run scanimage -L repeatedly without error? or maybe scanimage <br>>  > --help? <br>>  > <br>>  > allan <br>>  > <br>>  > On Thu, Mar 19, 2015 at 2:06 AM, Jonas Neubert <<a href="mailto:jonas.neubert@gmail.com" target="_blank" mailid="jonas.neubert%40gmail.com" subj="">jonas.neubert@gmail.com</a>> wrote: <br>>  > > I'm using USB2, and the git repo checkout was Monday late evening, less than an hour before I sent my last email. I already destroyed the test environment I used on Monday which is why I can't tell you the exact time or commit hash that was checked out. I can try again tomorrow morning if there have been relevant changes in the repo since Monday night. <br>>  > > <br>>  > > -Jonas <br>>  > > <br>>  > > <br>>  > > ---- On Wed, 18 Mar 2015 17:39:13 -0700 m. allan noah<<a href="mailto:kitno455@gmail.com" target="_blank" mailid="kitno455%40gmail.com" subj="">kitno455@gmail.com</a>> wrote ---- <br>>  > >  > That kind of error implies that we are having a usb problem, where <br>>  > >  > perhaps a command is being lost, or the data toggle is not being <br>>  > >  > reset. How old is your git repo checkout? Are you using USB 3 ports? <br>>  > >  > <br>>  > >  > allan <br>>  > >  > <br>>  > >  > On Tue, Mar 17, 2015 at 1:34 AM, Jonas Neubert <<a href="mailto:jonas.neubert@gmail.com" target="_blank" mailid="jonas.neubert%40gmail.com" subj="">jonas.neubert@gmail.com</a>> wrote: <br>>  > >  > > I just did a few successful scans! The patch does indeed make the scanner work, with two caveats: <br>>  > >  > > <br>>  > >  > > 1) Only every other call to scanimage results in a successful scan, the 2nd, 4th, 6th, etc scan fails the same way as before. <br>>  > >  > > 2) Even during successful scans the debug output contains an 'Error during device I/O', although I'm not sure if this is even a problem. <br>>  > >  > > <br>>  > >  > > Debug output from a successful scan (1st, 3rd, 5th, ... call to scanimage): <a href="https://gist.github.com/jonemo/489414e8bc5590998890" target="_blank">https://gist.github.com/jonemo/489414e8bc5590998890</a> <br>>  > >  > > Debug output from an unsuccessful scan (2nd, 4th, 6th, ... call to scanimage): <a href="https://gist.github.com/jonemo/8a4cf7d13a50556b3c41" target="_blank">https://gist.github.com/jonemo/8a4cf7d13a50556b3c41</a> <br>>  > >  > > <br>>  > >  > > I also tried scanning at 600dpi and it worked successfully (every other time). <br>>  > >  > > <br>>  > >  > > -Jonas <br>>  > >  > > <br>>  > > <br>>  > > <br>>  > <br>>  > <br>>  > <br>>  > -- <br>>  > "well, I stand up next to a mountain- and I chop it down with the edge <br>>  > of my hand" <br>>  > <br>> <br>> <br> <br> <br> <br>--  <br>"well, I stand up next to a mountain- and I chop it down with the edge <br>of my hand" <br></blockquote><br></div><br></div></div></body></html>