sane-project-website/old-archive/1999-11/0021.html

102 wiersze
4.6 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Thu Nov 4 06:49:26 1999 PST" -->
<!-- sent="Thu, 4 Nov 1999 09:56:19 -0500 (EST)" -->
<!-- name="Chris Pinkham" -->
<!-- email="cpinkham@infi.net" -->
<!-- subject="Re: sane doesnt work under red hat 6.1 (again)!" -->
<!-- id="199911041456.JAA15841@mulder.atlantic.infi.net" -->
<!-- inreplyto="38215BAE.5B7FC643@tin.it" -->
<title>sane-devel: Re: sane doesnt work under red hat 6.1 (again)!</title>
<h1>Re: sane doesnt work under red hat 6.1 (again)!</h1>
<b>Chris Pinkham</b> (<a href="mailto:cpinkham@infi.net"><i>cpinkham@infi.net</i></a>)<br>
<i>Thu, 4 Nov 1999 09:56:19 -0500 (EST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#21">[ date ]</a><a href="index.html#21">[ thread ]</a><a href="subject.html#21">[ subject ]</a><a href="author.html#21">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0022.html">Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Previous message:</b> <a href="0020.html">Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
The Artec backend works best with the AT3 model since that's what I have,<br>
I even have the same firmware revision as you. I'm wondering if it has<br>
anything to do with the sense handler. I have received other reports of<br>
this causing problems a while back.<br>
<p>
You can try turning it off by doing a couple things.... Find the following<br>
section of code in artec.c:<br>
<p>
-----------------------------------------------------------<br>
"AT3", "flatbed",<br>
8.3, 11, 0, 255, 0, 255, 0, 0, 8, 55, 32768,<br>
ARTEC_FLAG_CALIBRATE_RGB |<br>
ARTEC_FLAG_RGB_LINE_OFFSET |<br>
ARTEC_FLAG_RGB_CHAR_SHIFT |<br>
ARTEC_FLAG_GAMMA_SINGLE |<br>
ARTEC_FLAG_SEPARATE_RES |<br>
ARTEC_FLAG_SENSE_HANDLER |<br>
ARTEC_FLAG_ONE_PASS_SCANNER,<br>
"50,100,200,300", "50,100,200,300,600"<br>
-----------------------------------------------------------<br>
<p>
Comment out the line that says "ARTEC_FLAG_SENSE_HANDLER", that will disable<br>
the sense handler for the AT3. Then go find the first place where<br>
sanei_scsi_open is called like this:<br>
<p>
-----------------------------------------------------------<br>
DBG (6, "attach: opening %s\n", devname);<br>
<p>
status = sanei_scsi_open (devname, &amp;fd, sense_handler, 0);<br>
if (status != SANE_STATUS_GOOD)<br>
{<br>
DBG (1, "attach: open failed (%s)\n", sane_strstatus (status));<br>
-----------------------------------------------------------<br>
<p>
Change the "sense_handler" on the sanei_scsi_open line to a plain "0" (zero).<br>
That will disable the sense handler being used while trying to detect what<br>
kind of scanner you have.<br>
<p>
Can you try that and see if it works?<br>
<p>
<i>&gt; Luca Del Signore</i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; Script started on Thu Nov 4 09:15:21 1999</i><br>
<i>&gt; [root@localhost /root]# s xscanimage</i><br>
<i>&gt; </i><br>
<i>&gt; Segmentation fault (core dumped)</i><br>
<i>&gt; [root@localhost /root]# <20>exit</i><br>
<i>&gt; </i><br>
<i>&gt; Script done on Thu Nov 4 09:26:19 1999</i><br>
<p>
<i>&gt; aha152x: trying software interrupt, ok.</i><br>
<i>&gt; scsi0 : Adaptec 152x SCSI driver; $Revision: 1.7 $</i><br>
<i>&gt; scsi1 : SCSI host adapter emulation for IDE ATAPI devices</i><br>
<i>&gt; scsi : 2 hosts.</i><br>
<i>&gt; Vendor: ULTIMA Model: AT3 Rev: 1.90</i><br>
<i>&gt; Type: Scanner ANSI SCSI revision: 02</i><br>
<i>&gt; Detected scsi generic sga at scsi0, channel 0, id 6, lun 0</i><br>
<p>
Chris<br>
<p>
************************************************************************<br>
** Chris Pinkham AlphaLinux v2.2.5, Cajun 3.0-8 **<br>
** <a href="mailto:cpinkham@infi.net">cpinkham@infi.net</a> <a href="http://www4.infi.net/~cpinkham/">http://www4.infi.net/~cpinkham/</a> **<br>
************************************************************************<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0022.html">Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"</a>
<li> <b>Previous message:</b> <a href="0020.html">Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>