The ADF on my OfficeJet 5610 did not work with xsane
but did work with scanimage 1.0.17 (from sane-backends 1.0.17)
The symptom was that the page was not ejected properly
from the ADF after scanning. I am using hplip 0.9.8
on Fedora Core 4.

After investigation, I discovered that the difference
between xsane and scanimage was that scanimage called
sane_cancel after scanning each page from the ADF. 
xsane did not do that, but the attached one line patch to
xsane (against xsane-0.991) made xsane work with the
ADF on my Officejet. (The patch simply makes xsane call
sane_cancel after each page.) 

I posted the patch to sane-devel, but they said that
xsane is correct, and the bug is in hpaio. In fact, 
sane_cancel is supposed to be called only after the
end of the batch scan, and not after each page. In fact, 
later versions of scanimage behave like xsane.

So should hpaio be fixed? Or is it already fixed in
later versions?

Best Wishes, 

Alex Eskin


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--- src/xsane-scan.c.orig	2006-09-15 20:50:56.000000000 -0500
+++ src/xsane-scan.c	2006-09-15 20:53:00.000000000 -0500
@@ -1560,6 +1560,7 @@
 
     DBG(DBG_info, "ADF mode end of scan: increment page counter and restart scan\n");
     xsane.adf_page_counter += 1;
+    sane_cancel(xsane.dev);
     gtk_timeout_add(100, (GtkFunction)xsane_scan_dialog, NULL); /* wait 100ms then call xsane_scan_dialog(); */
   }
   else if ( ( (status == SANE_STATUS_GOOD) || (status == SANE_STATUS_EOF) ) && (xsane.batch_loop  == BATCH_MODE_LOOP) )
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to