Re: SANE and Linux kernel 2.4.0

From: abel deuring (
Date: Wed Jan 10 2001 - 14:11:26 PST

  • Next message: abel deuring: "Re: MICROTEK2 failure : out of memory with kernel 2.4"

    Douglas Gilbert wrote:
    > Tim Waugh wrote on the linux kernel list:
    > > I'm having problems with using xsane to acquire a preview from an HP
    > > ScanJet 5P connected to an AHA-2940. 2.3.42 is the last kernel that
    > > works right for me.
    > >
    > > The symptom is that the scanner starts to make scanning sounds, then
    > > stops, and xsane says 'Error during read: Error during device I/O'.
    > Tim and I have been looking at this offline. The significance
    > of lk 2.3.43 was the addition of a new sg driver that has an
    > additional interface. Recent versions of SANE use that newer
    > sg interface. The problem that Tim reported seemed to be caused
    > by timeouts ** resulting in scsi bus resets. Anyway the problem
    > seems to disappear with the recently released SANE 1.0.4 .
    > [The original report was based on SANE 1.0.3 and earlier.]
    > There is also a problem report with the SnapScan 1236 <--> aha152x
    > combination also based on SANE 1.0.3 . This one is looking
    > like an "uninitialized errno" bug fixed in SANE 1.0.4 .
    > ** SANE's newer sg interface shortens the per command timeout
    > >from 10 minutes to 10 seconds. Most other OSes have a timeout
    > value of 1 minute or more. I suspect 10 seconds may be too short.

    I've fixed this in the CVS system.

    I made some additional modifications to sanei_scsi.c:

    - better determination of sanei_scsi_max_request_size. For a low level
    driver without scatter/gather support, it should no longer be necessary
    to set the configure option SCSIBUFFERSIZE or the environment var

    - find_devices cannow also handle the device file names from devfs

    - additional debug output: sense buffer, device status, host status and
    driver status


    Source code, list archive, and docs:
    To unsubscribe: echo unsubscribe sane-devel | mail

    This archive was generated by hypermail 2b29 : Wed Jan 10 2001 - 12:39:10 PST