<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi,<br>Something else that didn't quite work during last night's testing was loading multiple pages into the ADF.<br>Using xsane, the first scan works fine. <br>However, the ADF starts to load the second page towards the end of the first scan (fax-style) and appears to be waiting for xsane to request it.<br>xsane reckons that it is finished but the scanner is not. It ends up in a strange situation where the scanner and xsane are out of sync.<br><br>While in this state, xsane will not perform a scan because the scanner is busy. <br>Everything is fine after the scan is cancelled on the scanner panel.<br>xsane is not expecting to be doing multiple scans in this setup.<br>Perhaps the pixma driver can detect this situation and issue a cancel to the scanner? <br>It could perform the first scan, detect if there is paper still in the
 scanner and if so, send an abort to the scanner.<br><br>If I get time, I will play around with this tonight, but my time with the unit is running out.<br>Shame, this is a lot of fun.<br><br>Cheers,<br>Ralph<br><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Rolf Bensch <rolf@bensch-online.de><br> <b><span style="font-weight: bold;">To:</span></b> littlesincanada <littlesincanada@yahoo.co.uk> <br><b><span style="font-weight: bold;">Cc:</span></b> sane-devel@lists.alioth.debian.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, September 20,
 2013 1:14:14 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [sane-devel] New scanner Canon MF4770N Multi function<br> </font> </div> <div class="y_msg_container"><br>Hi Ralph,<br><br>I found a patch for different flatbed (platen) and ADF page length<br>handling. I adapted this for your scanner. Your scanner supports 11" for<br>flatbed (platen) and 14" for ADF.<br><br>Cheers,<br>Rolf<br><br><br>Am 20.09.2013 16:47, schrieb Rolf Bensch:<br>> Hi Ralph,<br>><br>> Am 20.09.2013 06:34, schrieb littlesincanada:<br>>> Hi Rolf,<br>>> OK, diff included for pixma-imageclass.c to git unstable.<br>>><br>>> I figured out the issue with the underrun: when the printer is scanning<br>>> with the ADF for Preview (full area scan), it auto detects the end of<br>>> paper and terminates the scan earlier than the sane driver is expecting.<br>>> It sees the end of the paper and knows to stop at that point
 (nothing<br>>> left to scan).<br>>><br>> Here the backend expects maximum paper length if you don't request a<br>> smaller format from scanimage or xsane. The scanner stops scanning when<br>> the paper went through the document feeder.<br>><br>>> It cannot do this when scanning from the platen since it doesn't know<br>>> where the end of the page is. Therefore, I don't get the warning when<br>>> Previewing from the platen.<br>>><br>> Sure, the scanner expects 11.7" paper length, but your scanner supports<br>> only 11". Please replace the device define line with this one:<br>><br>> DEV ("Canon imageCLASS MF4770n", "MF4770", MF4770_PID, 600, 640, 825,<br>> PIXMA_CAP_ADF),<br>><br>> This should fix this issue. Please report if this is successful. Then<br>> I'll commit your patch to git.<br>><br>> If you don't want to scan large documents above 11" on the document<br>> feeder,
 I'll patch this later.<br>><br>>> I couldn't really get any response from the buttons. My time with the<br>>> printer is running out (I have to ship it to my daughter in Uni) so I'm<br>>> going to have to call it a do at that.<br>>><br>> You can check button support with scanimage. Please follow these items<br>> for debugging:<br>><br>> (1) Connect your scanner to the usb bus.<br>> (2) 'export SANE_DEBUG_PIXMA=11' on the console.<br>> (3) Press any button.<br>> (4) 'scanimage -A' on the console.<br>><br>> The response from scanimage should contain these lines:<br>><br>>   Buttons:<br>>     --button-update<br>>         Update button state<br>> [pixma] INTR T=1.655 len=32<br>> [pixma]  00000000:00 10 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>>
 [pixma]<br>>     --button-1 <int> [1] [read-only]<br>>         Button 1<br>>     --button-2 <int> [0] [read-only]<br>>         Button 2<br>>     --original <int> [0] [read-only]<br>>         Type of original to scan<br>>     --target <int> [1] [read-only]<br>>         Target operation type<br>>     --scan-resolution <int> [0] [read-only]<br>>         Scan resolution<br>><br>> The [pixma] lines are from my scanner which is different from yours.<br>><br>> (5) repeat from (3) for all other buttons.<br>><br>> Please send me the [pixma] responses for all buttons. Then I can create<br>> a patch for this.<br>><br>> If you won't get [pixma] debug lines SANE doesn't support the buttons<br>> from your scanner.<br>><br>>
 Cheers,<br>> Rolf<br><br><br><br></div> </div> </div> </blockquote></div>   </div></body></html>