Re: HP support

David Mosberger-Tang (davidm@azstarnet.com)
Sun, 25 May 1997 17:19:45 -0700

>>>>> On Sun, 25 May 1997 15:31:08 -0500, Worawut Wisutmethangoon <wisutmet@cae.wisc.edu> said:

Worawut> I'd like to add that I also have the same problem;
Worawut> preview doesn't work for me. My scanner is HP Scanjet 5p,
Worawut> though. I use sane-0.57 and gtk rpm from redhat
Worawut> contribution packages. The gtk rpm contains

You are the first person to report on the 5p. I gather the actual
scanning works fine? If so, can you send me the SCSI id for your
scanner? It should be something similar to C2520A and can be found in
/var/log/messages.

Worawut> libgdk.so.1.0.0 libgtk.so.1.0.0 libgimp.so.1.0.0
Worawut> libgimpui.so.1.0.0 libglib.so.1.0.0

Worawut> I downloaded the gtk+970426-davidm.tar.gz but could
Worawut> not compile it. The file README and INSTALL are empty.

The gtk tar ball is simply gimp's gtk+ subdirectory with a few
patches. ./configure and make should work fine. But as Michael said
in an earlier mail, the Red Hat GTK RPM should contain all you need.
I'm not sure why the preview window should fail. Maybe somebody that
can reproduce this problem could investigate?

Worawut> I also cannot run the installed [x]scanimage
Worawut> programs. I have to run it from the sane-0.57/frontend/
Worawut> directory. It seems to me that the programs in the
Worawut> sane-0.57/frontend/ directory are the wrappers of the
Worawut> programs hidden in sane-0.57/frontend/.libs. Somehow the
Worawut> installation copied those files to /usr/local/bin/ but did
Worawut> not copy the wrappers.

The wrappers are not needed in the installed versions. I suspect
you're using an older Linux version, though I'm not sure what causes
the behavior you're seeing. If you don't want to debug this yourself,
you can build SANE with configuration-option --disable-shared. That
should work around the problem by using statically linked libraries
only.

Worawut> To run xscanimage, I need to type in the
Worawut> sane-0.57/frontend/ ./xscanimage hp Without the argument hp
Worawut> it will popup device selection window with options pnm:0
Worawut> and pnm:1. Both do not work with my scanner.

pnm:0 and pnm:1 are pseudo-backends that read PNM images. They don't
access your scanner at all (see "man sane-pnm"). Make sure the line:

hp

appears in /usr/local/etc/sane.d/dll.conf (and you may also want to
read the sane-dll(5) man-page). sane-0.57 lists the hp backend in
dll.conf by default, but it may be not there if you installed an
earlier version of SANE (as a safety feature, SANE will not overwrite
files already installed in /usr/local/etc/sane.d).

Worawut> Also, with scanimage I cannot use geometry options (
Worawut> -t -l -x -y). For example, with the command ./scanimage -d
Worawut> hp -x 200 -y 200 --mode Color --resolution 100 > out.pnm I
Worawut> got the following error scanimage: setting of option --br-x
Worawut> failed (Invalid argument) Or ./scanimage -d hp -t 0 -l 0
Worawut> --mode Color --resolution 100 > out.pnm gives scanimage:
Worawut> setting of option --tl-y failed (Invalid argument)

Worawut> This is very similar error to what I got when trying
Worawut> to scan preview in the xscanimage.

Worawut> Error: Failed restore value of option tl-x: Invalid
Worawut> argument. Error: Failed restore value of option tl-y:
Worawut> Invalid argument.

I don't know why this happens. Can anybody with an HP scanner look
into this (assuming the problem is reproducible)?

Worawut> Another thing, the default resolution is set to 18 dpi. Why is it
Worawut> so coarse?

18dpi would give you a preview-quality image with scanimage when not
typing any other option. Seems like a reasonable default to me.

Worawut> Is there a way to set the the to something
Worawut> finer?

Sure, simply use something like --resolution 100. The options are
explained when you type "scanimage --help --device hp".

When using xscanimage, you can simply slide the resolution to the
desired value (say, 100dpi), and then activate

Preferences->Save device settings

The next time you invoke xscanimage, it will default to your chosen
value instead of 18dpi.

Worawut> Lastly, I'd like to thank all the developers of
Worawut> SANE. Keep up the good work.

You're welcome!

--david

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com