You can try turning it off by doing a couple things.... Find the following
section of code in artec.c:
-----------------------------------------------------------
"AT3", "flatbed",
8.3, 11, 0, 255, 0, 255, 0, 0, 8, 55, 32768,
ARTEC_FLAG_CALIBRATE_RGB |
ARTEC_FLAG_RGB_LINE_OFFSET |
ARTEC_FLAG_RGB_CHAR_SHIFT |
ARTEC_FLAG_GAMMA_SINGLE |
ARTEC_FLAG_SEPARATE_RES |
ARTEC_FLAG_SENSE_HANDLER |
ARTEC_FLAG_ONE_PASS_SCANNER,
"50,100,200,300", "50,100,200,300,600"
-----------------------------------------------------------
Comment out the line that says "ARTEC_FLAG_SENSE_HANDLER", that will disable
the sense handler for the AT3. Then go find the first place where
sanei_scsi_open is called like this:
-----------------------------------------------------------
DBG (6, "attach: opening %s\n", devname);
status = sanei_scsi_open (devname, &fd, sense_handler, 0);
if (status != SANE_STATUS_GOOD)
{
DBG (1, "attach: open failed (%s)\n", sane_strstatus (status));
-----------------------------------------------------------
Change the "sense_handler" on the sanei_scsi_open line to a plain "0" (zero).
That will disable the sense handler being used while trying to detect what
kind of scanner you have.
Can you try that and see if it works?
> Luca Del Signore
>
>
> Script started on Thu Nov 4 09:15:21 1999
> [root@localhost /root]# s xscanimage
>
> Segmentation fault (core dumped)
> [root@localhost /root]# ù[Kexit
>
> Script done on Thu Nov 4 09:26:19 1999
> aha152x: trying software interrupt, ok.
> scsi0 : Adaptec 152x SCSI driver; $Revision: 1.7 $
> scsi1 : SCSI host adapter emulation for IDE ATAPI devices
> scsi : 2 hosts.
> Vendor: ULTIMA Model: AT3 Rev: 1.90
> Type: Scanner ANSI SCSI revision: 02
> Detected scsi generic sga at scsi0, channel 0, id 6, lun 0
Chris
************************************************************************
** Chris Pinkham AlphaLinux v2.2.5, Cajun 3.0-8 **
** cpinkham@infi.net http://www4.infi.net/~cpinkham/ **
************************************************************************
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com