# Re: sane doesnt work under red hat 6.1 (again)!

Luca Del Signore (lucadels@tin.it)
Thu, 04 Nov 1999 18:45:33 +0100

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"
- Previous message: Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"
- Maybe in reply to: Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"
- Next in thread: Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"

Chris Pinkham wrote:
>
> The Artec backend works best with the AT3 model since that's what I have,
> I even have the same firmware revision as you. I'm wondering if it has
> anything to do with the sense handler. I have received other reports of
> this causing problems a while back.
>
> 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

Well... im not so expert but ill give it a try and let you know
thanx for nowChris Pinkham wrote:
>
> The Artec backend works best with the AT3 model since that's what I have,
> I even have the same firmware revision as you. I'm wondering if it has
> anything to do with the sense handler. I have received other reports of
> this causing problems a while back.
>
> 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
Chris Pinkham wrote:
>
> The Artec backend works best with the AT3 model since that's what I have,
> I even have the same firmware revision as you. I'm wondering if it has
> anything to do with the sense handler. I have received other reports of
> this causing problems a while back.
>
> 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

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

- Next message: Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"
- Previous message: Oliver Rauch: "Re: sane doesnt work under red hat 6.1 (again)!"
- Maybe in reply to: Luca Del Signore: "sane doesnt work under red hat 6.1 (again)!"
- Next in thread: Luca Del Signore: "Re: sane doesnt work under red hat 6.1 (again)!"