<div dir="auto"><div>Hi</div><div dir="auto">You don't say if you did adf scanning successfully on Ubuntu although I assume that is the case.</div><div dir="auto">Could you confirm that?</div><div dir="auto"><br></div><div dir="auto">Cheers</div><div dir="auto">Ralph<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019, 06:58 Dr Rainer Woitok, <<a href="mailto:rainer.woitok@gmail.com">rainer.woitok@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
since quite some time I have been successfully using "scanimage" on my<br>
laptop running Ubuntu 16.04 to scan from a Canon Pixma MX 885 scanner<br>
connected via WiFi.<br>
<br>
Under Ubuntu 16.04 the "sane" package itself was version 1.0.14-11, but<br>
packages "libsane", "libsane-common", and "sane-utils" were regularly<br>
updated up to version 1.0.28+git20190831-xenial0 from Rolf Bensch's PPA.<br>
<br>
I then installed Gentoo on the same laptop. Neither the scanner nor the<br>
WiFi changed in any way. For the Pixma I installed the Gentoo packages<br>
"media-gfx/sane-backends" version 1.0.27-r3, as well as "net-print/cups-<br>
bjnp" version 2.0 and "net-print/gutenprint" version 5.3.1, which are at<br>
least required for printing (printing a test page via "cups" works).<br>
<br>
The scanner configuration in "~/.config/sane/" is still what I also used<br>
under Ubuntu (the name "new-host" was coined by my router and does not<br>
seem to be changable in the router's configuration):<br>
<br>
$ echo $SANE_CONFIG_DIR<br>
/home/rainer/.config/sane<br>
$ cd $SANE_CONFIG_DIR<br>
$ grep '^[^#]+$' *.conf<br>
dll.conf:pixma<br>
pixma.conf:bjnp-timeout=100<br>
pixma.conf:bjnp://new-host/timeout=5000<br>
pixma.conf:bjnp-timeout=100<br>
$<br>
<br>
Package "media-gfx/sane-backends" has been built with the following USE<br>
flags:<br>
<br>
$ equery --no-color --no-pipe uses media-gfx/sane-backends | grep -ve '- - sane_backends_'<br>
[ Legend : U - final flag setting for installation]<br>
[ : I - package is installed with flag ]<br>
[ Colors : set, unset ]<br>
* Found these USE flags for media-gfx/sane-backends-1.0.27-r3:<br>
U I<br>
- - abi_x86_32 : 32-bit (x86) libraries<br>
- - gphoto2 : Add digital camera support<br>
+ + ipv6 : Add support for IP version 6<br>
+ + sane_backends_pixma : SANE_BACKENDS setting for building the pixma backend<br>
- - snmp : Add support for the Simple Network Management Protocol if available<br>
- - systemd : Enable use of systemd-specific libraries and features like socket activation or session tracking<br>
- - threads : Add threads support for various packages. Usually pthreads<br>
+ + usb : Add USB support to applications that have optional USB support (e.g. cups)<br>
- - v4l : Enable support for video4linux (using linux-headers or userspace libv4l libraries)<br>
- - xinetd : Add support for the xinetd super-server<br>
- - zeroconf : Support for DNS Service Discovery (DNS-SD)<br>
$<br>
<br>
Scanning two pages from the scanner's platen glass works (execpt perhaps<br>
for the reported scanner status of 5, but this may have also occured un-<br>
der Ubuntu because my scanner script originally weeded out any messages<br>
matching "\(scanner status = [57]\)"):<br>
<br>
$ scanimage '--batch=.%03d0.png' --batch-increment 1 --batch-print --batch-prompt --batch-start 1 --device pixma:MX880_new-host --source Flatbed --format png --mode Gray --resolution 300 -l 0 -t 0 -x 210 -y 297<br>
Scanning infinity pages, incrementing by 1, numbering from 1<br>
Place document no. 1 on the scanner.<br>
Press <RETURN> to continue.<br>
Press Ctrl + D to terminate.<br>
<br>
Scanning page 1<br>
Scanned page 1. (scanner status = 5)<br>
Place document no. 2 on the scanner.<br>
Press <RETURN> to continue.<br>
Press Ctrl + D to terminate.<br>
<br>
Scanning page 2<br>
Scanned page 2. (scanner status = 5)<br>
Place document no. 3 on the scanner.<br>
Press <RETURN> to continue.<br>
Press Ctrl + D to terminate.<br>
Batch terminated, 2 pages scanned<br>
$<br>
<br>
However, trying to scan a single double sided original or two single<br>
sided originals via the scanner's Automatic Document Feeder fails after<br>
returning the image for the first page:<br>
<br>
$ scanimage '--batch=.%03d0.png' --batch-increment 1 --batch-print --batch-start 1 --device pixma:MX880_new-host --source 'ADF Duplex' --format png --mode Gray --resolution 300 -l 3 -t 0 -x 210 -y 297<br>
Scanning infinity pages, incrementing by 1, numbering from 1<br>
Scanning page 1<br>
Scanned page 1. (scanner status = 5)<br>
Scanning page 2<br>
scanimage: sane_read: Error during device I/O<br>
Scanned page 2. (scanner status = 9)<br>
Batch terminated, 2 pages scanned<br>
$<br>
<br>
And after that the scanner will no longer respond to any requests until<br>
it is switched off and on again:<br>
<br>
$ scanimage '--batch=.%03d0.png' --batch-increment 1 --batch-print --batch-start 2 --device pixma:MX880_new-host --source 'ADF Duplex' --format png --mode Gray --resolution 300 -l 3 -t 0 -x 210 -y 297<br>
Scanning infinity pages, incrementing by 1, numbering from 1<br>
Scanning page 1<br>
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 5000 ms)!<br>
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!<br>
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 5000 ms)!<br>
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!<br>
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 5000 ms)!<br>
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!<br>
scanimage: sane_read: Error during device I/O<br>
Scanned page 1. (scanner status = 9)<br>
Batch terminated, 1 page scanned<br>
$<br>
<br>
Any ideas what's going wrong here?<br>
<br>
Sincerely,<br>
Rainer<br>
<br>
</blockquote></div></div></div>