<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi Rolf,<br>If the scanner is stopping scanning on a paper-end detector in the ADF (which I suspect it is, although I can't be sure), then it might stop at any arbitrary point even in preview mode. I only get the underrun warning when requesting a preview from the ADF. It could be as you say and the scanner is designed to scan a maximum of 11" from the ADF.<br><div>I will try your change and see what happens, though and I will try the ADF with shorter paper to see what happens. I suspect that what sane gets is arbitrarily determined by the physical length of the paper.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
york,times,serif; background-color: transparent; font-style: normal;">I did try the buttons on the scanner. When in "remote" mode for computer scanning, none of the buttons seem to cause a USB interrupt. They all "double beep" which indicates that press is invalid. I'm not sure which buttons would be expected to work in this context. <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Here is a good picture of the panel:<br></div><div>http://bimg2.mlstatic.com/impresora-multifuncional-laser-canon-image-class-mf4770n_MLV-F-4579386679_072013.jpg</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">If you have a chance, could you have a look and let me know which buttons are customarily used? There are no Colour/Grey/Scan buttons as such. The OK buttom might have served this purpose, but it is inactive in scan mode.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">There are only two which might seem to fit this bill on the far right hand side: "Scan>PC1" and "Scan>PC2" which I think is intended for network scanning, a setup that I have not tried.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0,
0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I will let you know tonight.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Cheers and thanks again for your help,<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Ralph<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif;
background-color: transparent; font-style: normal;"><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 7:47:02 AM<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>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><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><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><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></div> </div> </div> </blockquote></div> </div></body></html>