[sane-devel] Using "scanimage" under Gentoo

Olaf Meeuwissen paddy-hack at member.fsf.org
Sun Dec 15 07:41:01 GMT 2019


Hi Rainer,

Dr Rainer Woitok writes:

> Bruce and All,
>
> On Thursday, 2019-12-12 23:44:38 +1000, Bruce Schultz wrote:
>
>> ...
>> Rainer can you try now with the sane-backends-9999.ebuild, which will
>> install the current git version of the backends. I'm hopeful that having
>> something at least as recent as the known working version may work out
>> for you.
>
> Done, but still no joy ...
>
> I placed two single-sided originals into the ADF and then ran
>
>    $ scanimage -V
>    scanimage (sane-backends) 1.0.28-871-g8270a82b-dirty; backend version 1.0.28
>    $ scanimage '--batch=.%03d0.png' --batch-increment 1 --batch-print --batch-start 1 --device pixma:MX880_new-host --source 'Automatic Document Feeder' --format png --mode Color --resolution 300 -l 3 -t 0 -x 210 -y 297
>    [17:56:54.517560] [bjnp] udp_command: ERROR - no data received (timeout = 100)
>    [17:56:54.517651] [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
>    [17:56:54.537210] [bjnp] udp_command: ERROR - no data received (timeout = 100)
>    [17:56:54.537237] [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
>    Scanning infinity pages, incrementing by 1, numbering from 1
>    Scanning page 1
>    Scanned page 1. (scanner status = 5)
>    Scanning page 2
>    scanimage: sane_read: Document feeder out of documents
>    Scanned page 2. (scanner status = 7)
>    Batch terminated, 2 pages scanned
>    $

A status value of 7 indicates there are no documents in feeder as
scanimage already mentioned.  I'm wondering whether that status is
reported by the device half-way through an on-going scan.  If the
backend passes that through to the scanimage as soon as it is received,
instead of continuing to provide image data until the image is complete
(status value of 5) first, you would get the behaviour you mention.

> The scanner scanned  the first sheet ok,  placed it in the  output tray,
> partly pulled in the second sheet,  and then stalled,  while at the same
> time signalling on its display  that it is busy and having WiFi traffic.
> It ignored any buttons pressed and had to be power-cycled.
>
> I know about the existence of environment variable "SANE_DEBUG_BJNP" but
> have no idea what value to set it to  to provide reasonable information.
> Could someone please guide me?

Just set it to 127 if you don't know.  The developers should be able to
slice and dice the result as needed.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join



More information about the sane-devel mailing list