[sane-devel] Using "scanimage" under Gentoo

Bruce Schultz brulzki at gmail.com
Mon Dec 16 21:07:14 GMT 2019


Hi Rainer

On 2019-12-15 03:43, Dr Rainer Woitok wrote:
> 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 ...

You could try rebuilding the backends with the following command:

EGIT_OVERRIDE_COMMIT_SANE_PROJECT_BACKENDS=6b7052c4 ACCEPT_KEYWORDS="**" 
emerge -av1 =media-gfx/sane-backends-9999

That will install git commit 6b7052c4, which should get you pretty close 
to the same version of the backend that you originally reported working 
on Ubuntu, which was version 1.0.28+git20190831-xenial0 from the PPA.

Also, in your original email you reported setting the timeouts as per 
the following:
>     $ grep '^[^#]+$' *.conf
>     dll.conf:pixma
>     pixma.conf:bjnp-timeout=100
>     pixma.conf:bjnp://new-host/timeout=5000
>     pixma.conf:bjnp-timeout=100

In your output below it's showing a timeout of 100, but I presume you 
intended to override that to 5000. You might want to double check that 
your config changes are still in place.

> 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
>     $
>
> 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?
>
> Sincerely,
>    Rainer
>
> PS: And plenty of kudos to Bruce who went into all this trouble of sett-
> ing up this ebuild and instructing me how to use it :-)

No probs ;)  I'm hoping that from the overlay we can get better exposure 
to testing and get new releases updated in gentoo earlier.

Bruce



More information about the sane-devel mailing list