[EMAIL PROTECTED] wrote:

> I'm having some problems using SCSI-generic (sg loaded as module) to
> access my scanner on linux 2.4 (using SANE).
>
> [snip output showing timeouts]

This is most likely caused by a bug in SANE 1.0.3 and 
1.0.4 which sets timeouts on commands to 10 seconds 
rather than 10 minutes. The SANE code detects the new 
sg driver in lk 2.4.x and mistakenly shortens the 
timeout. This has been fixed in SANE's CVS (and 
RedHat's 7.1 beta (fisher)). 

Fix for SANE 1.0.4 : in file
sane-backends-1.0.4/sanei/sanei_scsi.c change line 1893 
from:
      req->sgdata.sg3.hdr.timeout = 10000;
to
      req->sgdata.sg3.hdr.timeout = 10 * 60 * 1000;


If you look at the FAQ on the sg web site 
( http://www.torque.net/sg ) under the SANE entry you will
find the same information ...

Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to