[sane-devel] gamma table value

Henning Meier-Geinitz henning@meier-geinitz.de
Fri, 16 May 2003 19:47:27 +0200


Hi,

On Fri, May 16, 2003 at 05:55:20PM +0100, F J Brooks wrote:
> >export SANE_DEBUG_AVISION=7
> >scanimage -L
> >scanimage -l 5mm -t 5mm -x 15mm -y 15mm  > scanner-name.png
> 
> Right, so I ran these commands - both as root and as user - as I didn't know
> which you wanted. These are extracts from my log:
> 
> 'Thursday 15 May.logged in as root:
> Response to commands:
> 
> F jBrooks:/home/fredjb # export SAN_DEBUG_AVISION=7

No, SANE_DEBUG_AVISION=7, mind the "E" as in "easy" :-)

> F jBrooks:/home/fredjb # scanimage -L
> 
> 'No scanners were identified. If you were expecting something different,

[...]

Because of the missing E nothing was printed. Rene wanted the debug
information that's printed when you set the environment varaible
SANE_DEBUG_AVISION to a value of 7.

> fredjb@F jBrooks: > export SAN~DEBUG-AVISION=7

Still not the right one, but it seems to work nevertheless :-)

> fredjb@F jBrooks: > scanimage -L
> 
> I was presented with what appeared to be hundreds of lines of info which I
> cannot possibly send you (unless you wish) as it is much too big a file. I

If you didn't know already: Use "scanimage -L 2>log" to send the debug
output into a file (in this case it's named "log" and is found in the
current directory). Use "less log" to display it. This way it may be
easier to insert the ouput in your mails.

You didn't copy the text by hand, did you? Oh well, quite a lot of work.

> [avision] sane-init: config file line 14: trying to attach 'scsi Hp.
> [avision] attach: (Version: 1.0 Build: 55)
> [avision] attach: opening {dev{sg2
> [avision] attach: sending INQUIRY
> [avision] attach: Inquiry gives mfg=HP, model=Scanjet 5300C, product
> revision=6.00.
> [avision] FOUND'

For me that looks ok, but I'm not the maintainer of the avision backend.

> fredjb@FJBrooks:~> scanimage -l 5mm -x 15mm -y 15mm > scanner-name.png

Was the file "scanner-name.png" generated (in the current directory)?
If yes, can you display it (e.g. with gimp, display or any other
viewer program)? I'm sure there is an image viewer from KDE, but I
don't know its name.

> Then I (left)-clicked my 'Scanner' icon and: EUREKA!! up came the XSane
> introductory window, which - after the licence agreement - invited me to
> choose between: 'Hewlett-Packard ScanJet 5300C flatbed scanner
> [avision:/dev/scanner]' and 'Hewlett-Packard ScanJet 5300C flatbed scanner
> [avision:/dev/sg2].

That's because you have a link "/dev/scanner" pointing to "/dev/sg2".
No problem, both are the same.

> I chose the former and, after some fiddling, managed to
> get an image in the Viewer window. I couldn't, however, get it to print, but
> as I haven't yet had time to set it up, I suppose that's not surprising.

So the scanner works. I think it also worked with scanimage above, you
may just not have noticed that the image was saved to the disk without
any printing to the command line.

Bye,
  Henning