sane-project-website/old-archive/1997-05/0016.html

136 wiersze
6.4 KiB
HTML

<!-- received="Sun May 25 17:44:00 1997 MST" -->
<!-- sent="Sun, 25 May 1997 17:19:45 -0700" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="davidm@azstarnet.com" -->
<!-- subject="Re: HP support" -->
<!-- id="199705260019.RAA06243@panda.mosberger" -->
<!-- inreplyto="3388A18C.5FA1504E@cae.wisc.edu" -->
<title>sane-devel: Re: HP support</title>
<h1>Re: HP support</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
<i>Sun, 25 May 1997 17:19:45 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#16">[ date ]</a><a href="index.html#16">[ thread ]</a><a href="subject.html#16">[ subject ]</a><a href="author.html#16">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0017.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek-probs: color, preview"</a>
<li> <b>Previous message:</b> <a href="0015.html">David Mosberger-Tang: "Re: problems with mscan-0.1 and paragon 600IICD"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; On Sun, 25 May 1997 15:31:08 -0500, Worawut Wisutmethangoon &lt;<a href="mailto:wisutmet@cae.wisc.edu">wisutmet@cae.wisc.edu</a>&gt; said:</i><br>
<p>
Worawut&gt; I'd like to add that I also have the same problem;<br>
Worawut&gt; preview doesn't work for me. My scanner is HP Scanjet 5p,<br>
Worawut&gt; though. I use sane-0.57 and gtk rpm from redhat<br>
Worawut&gt; contribution packages. The gtk rpm contains<br>
<p>
You are the first person to report on the 5p. I gather the actual<br>
scanning works fine? If so, can you send me the SCSI id for your<br>
scanner? It should be something similar to C2520A and can be found in<br>
/var/log/messages.<br>
<p>
Worawut&gt; libgdk.so.1.0.0 libgtk.so.1.0.0 libgimp.so.1.0.0<br>
Worawut&gt; libgimpui.so.1.0.0 libglib.so.1.0.0<br>
<p>
Worawut&gt; I downloaded the gtk+970426-davidm.tar.gz but could<br>
Worawut&gt; not compile it. The file README and INSTALL are empty.<br>
<br>
The gtk tar ball is simply gimp's gtk+ subdirectory with a few<br>
patches. ./configure and make should work fine. But as Michael said<br>
in an earlier mail, the Red Hat GTK RPM should contain all you need.<br>
I'm not sure why the preview window should fail. Maybe somebody that<br>
can reproduce this problem could investigate?<br>
<p>
Worawut&gt; I also cannot run the installed [x]scanimage<br>
Worawut&gt; programs. I have to run it from the sane-0.57/frontend/<br>
Worawut&gt; directory. It seems to me that the programs in the<br>
Worawut&gt; sane-0.57/frontend/ directory are the wrappers of the<br>
Worawut&gt; programs hidden in sane-0.57/frontend/.libs. Somehow the<br>
Worawut&gt; installation copied those files to /usr/local/bin/ but did<br>
Worawut&gt; not copy the wrappers.<br>
<p>
The wrappers are not needed in the installed versions. I suspect<br>
you're using an older Linux version, though I'm not sure what causes<br>
the behavior you're seeing. If you don't want to debug this yourself,<br>
you can build SANE with configuration-option --disable-shared. That<br>
should work around the problem by using statically linked libraries<br>
only.<br>
<p>
Worawut&gt; To run xscanimage, I need to type in the<br>
Worawut&gt; sane-0.57/frontend/ ./xscanimage hp Without the argument hp<br>
Worawut&gt; it will popup device selection window with options pnm:0<br>
Worawut&gt; and pnm:1. Both do not work with my scanner.<br>
<p>
pnm:0 and pnm:1 are pseudo-backends that read PNM images. They don't<br>
access your scanner at all (see "man sane-pnm"). Make sure the line:<br>
<p>
hp<br>
<p>
appears in /usr/local/etc/sane.d/dll.conf (and you may also want to<br>
read the sane-dll(5) man-page). sane-0.57 lists the hp backend in<br>
dll.conf by default, but it may be not there if you installed an<br>
earlier version of SANE (as a safety feature, SANE will not overwrite<br>
files already installed in /usr/local/etc/sane.d).<br>
<p>
Worawut&gt; Also, with scanimage I cannot use geometry options (<br>
Worawut&gt; -t -l -x -y). For example, with the command ./scanimage -d<br>
Worawut&gt; hp -x 200 -y 200 --mode Color --resolution 100 &gt; out.pnm I<br>
Worawut&gt; got the following error scanimage: setting of option --br-x<br>
Worawut&gt; failed (Invalid argument) Or ./scanimage -d hp -t 0 -l 0<br>
Worawut&gt; --mode Color --resolution 100 &gt; out.pnm gives scanimage:<br>
Worawut&gt; setting of option --tl-y failed (Invalid argument)<br>
<p>
Worawut&gt; This is very similar error to what I got when trying<br>
Worawut&gt; to scan preview in the xscanimage.<br>
<p>
Worawut&gt; Error: Failed restore value of option tl-x: Invalid<br>
Worawut&gt; argument. Error: Failed restore value of option tl-y:<br>
Worawut&gt; Invalid argument.<br>
<p>
I don't know why this happens. Can anybody with an HP scanner look<br>
into this (assuming the problem is reproducible)?<br>
<p>
Worawut&gt; Another thing, the default resolution is set to 18 dpi. Why is it<br>
Worawut&gt; so coarse?<br>
<p>
18dpi would give you a preview-quality image with scanimage when not<br>
typing any other option. Seems like a reasonable default to me.<br>
<p>
Worawut&gt; Is there a way to set the the to something<br>
Worawut&gt; finer?<br>
<br>
Sure, simply use something like --resolution 100. The options are<br>
explained when you type "scanimage --help --device hp".<br>
<p>
When using xscanimage, you can simply slide the resolution to the<br>
desired value (say, 100dpi), and then activate<br>
<p>
Preferences-&gt;Save device settings<br>
<p>
The next time you invoke xscanimage, it will default to your chosen<br>
value instead of 18dpi.<br>
<p>
Worawut&gt; Lastly, I'd like to thank all the developers of<br>
Worawut&gt; SANE. Keep up the good work.<br>
<br>
You're welcome!<br>
<p>
--david<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0017.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek-probs: color, preview"</a>
<li> <b>Previous message:</b> <a href="0015.html">David Mosberger-Tang: "Re: problems with mscan-0.1 and paragon 600IICD"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>