|Reported to work fine under FreeBSD 2.2.2R with the aha driver.|
|Reported to work fine under FreeBSD 2.2.2.|
|The scanner probes ok but any attempt to access it hangs the entire system. It looks like something is disabling interrupts and then not re-enabling them, so it looks like a bug in the FreeBSD aic driver.|
|Works on FreeBSD 2.2.5R and 3.0 using the aic driver, provided that Plug-and-Play support is disabled on the card. If there are no uk devices, just do a sh MAKEDEV uk0 in the /dev directory. The scanner should then be accessible as /dev/uk0 if it was probed during boot.|
|Reported to work fine under FreeBSD 2.2.2R with the amd driver.|
First, make sure your kernel has SCSI generic support enabled. In make xconfig, this shows up under SCSI support->SCSI generic support.
To keep scanning times to a minimum, it is strongly recommended to use a large buffer size for the generic SCSI driver. From SG driver version 2.0 on, the maximum buffer size can be changed at program run time, and there is no restriction in size. This driver version is part of the Linux kernels from version 2.2.7 on. If the new SG driver is available some backends (e.g. sane-umax, sane-mustek, sane-sharp) automatically request larger scsi buffers. If a backend does not automatically request a larger scsi buffer, set the environment variable SANE_SG_BUFFERSIZE to the desired buffer size in bytes. It is not recommended to use more than 1 MB, because for large values the probability increases that the SG driver cannot allocate the necessary buffer(s). For ISA cards, even 1 MB might be a too large value. For a detailed discussion of memory issues of the SG driver, see http://www.torque.net/sg.
For Linux kernels before version 2.2.7 the size of the buffer is only 32KB. This works, but for many cheaper scanners this causes scanning to be slower by about a factor of four than when using a size of 127KB. Linux defines the size of this buffer by macro SG_BIG_BUFF in header file /usr/include/scsi/sg.h. Unless a system is seriously short on memory, it is recommended to increase this value to the maximum legal value of 128*1024-512=130560 bytes. After changing this value, it is necessary to recompile both the kernel (or the SCSI generic module) and the SCSI backends. Keep in mind that this is only necessary with older Linux kernels.
A common issue with SCSI scanners is what to do when you booted the system while the scanner was turned off? In such a case, the scanner wont be recognized by the kernel and SANE wont be able to access it. Fortunately, Linux provides a simple mechanism to probe a SCSI device on demand. Suppose you have a scanner connected to SCSI bus 2 and the scanner has a SCSI id of 5. When the system is up and running and the scanner is turned on, you can issue the command:
echo "scsi add-single-device 2 0 5 0" > /proc/scsi/scsi
and the kernel will probe and recognize your scanner (this needs to be done as root). Its also possible to dynamically remove a SCSI device by using the remove-single-device command. For details, please refer to to the SCSI-2.4-HOWTO.
Scanners are known to work with the following SCSI adapters under Linux. This list isnt complete, usually any SCSI adapter supported by Linux should work.
Acard/Advance SCSI adapters Some old versions of the kernel driver (atp870u.c) cut the inquiry information. Therefore the scanner couldnt be detected correctly. Use a current kernel. Adaptec AHA-1505/AHA-1542/AHA-2940 Reported to work fine with Linux since v2.0. If you encounter kernel freezes or other unexpected behaviour get the latest Linux kernel (2.2.17 seems to work) or reduce SCSI buffer size to 32 kB. ASUS SC200 Reported to work fine with Linux v2.0. BusLogic BT958 To configure the BusLogic card, you may need to follow these instructions (contributed by Jeremy <email@example.com>): During boot, when your BusLogic adapter is being initialized, press Ctrl-B to enter your BusLogic adapter setup. Choose the address which your BusLogic containing your scanner is located. Choose SCSI Device Configuration. Choose Scan SCSI Bus. Choose whatever SCSI id that contains your scanner and then choose View/Modify SCSI configuration. Change Negotiation to async and change Disconnect to off. Press Esc, save, and Esc again until you are asked to reboot. NCR/Symbios 53c400/53c400a or Domex DTC3181E/L/LE (DTCT436/436P) ISA SCSI card This card is supplied by Mustek (and other vendors). Its supported since Linux 2.2. The SCSI cards are supported by the module g_NCR5380. Its necessary to tell the kernel the io port and type of card. Example for a 53c400a: modprobe g_NCR5380 ncr_addr=0x280 ncr_53c400a=1. Once the kernel detects the card, it should work all right. However, while it should work, do not expect good performance out of this card---it has no interrupt line and therefore while a scan is in progress, the system becomes almost unusable. You may change the values of the USLEEP macros in drivers/scsi/g_NCR5380.c. Some documentation is in this file and NCR5380.c. NCR/Symbios 810 For some scanners it may be necessary to disable disconnect/reconnect. To achieve this use the option ncr53c8xx="disc:n". Some people reported that their scanner only worked with the 53c7,8xx driver, not the ncr53c8xx. Try both if you have trouble.
For Linux kernels before 2.0.33 it may be necessary to increase the SCSI timeout. The default timeout for the Linux kernels before 2.0.33 is 10 seconds, which is way too low when scanning large area. If you get messages of the form restart (ncr dead ?) in your /var/log/messages file or on the system console, its an indication that the timeout is too short. In this case, find the line if (np->latetime>10) in file ncr53c8xx.c (normally in directory /usr/src/linux/drivers/scsi) and change the constant 10 to, say, 60 (one minute). Then rebuild the kernel/module and try again.
Tekram DC315 The driver can be downloaded from http://www.garloff.de/kurt/linux/dc395/. For some older scanners it may be necessary to disable all the more advanced features by using e.g. modprobe dc395x_trm dc395x_trm=7,5,1,32. Tekram DC390 Version 1.11 of the Tekram driver seems to work fine mostly, except that the scan does not terminate properly (it causes a SCSI timeout after 10 minutes). The generic AM53C974 also seems to work fine and does not suffer from the timeout problems.
Under Solaris, OpenStep and NeXTStep, the generic SCSI device name refers to a SCSI bus, not to an individual device. For example, /dev/sg0 refers to the first SCSI bus. To tell SANE which device to use, append the character a+target-id to the special device name. For example, the SCSI device connected to the first SCSI controller and with target-id 0 would be called /dev/sg0a, and the device with target-id 1 on that same bus would be called /dev/sg0b, and so on.
SANE_DEBUG_SANEI_SCSI If the library was compiled with debug support enabled, this environment variable controls the debug level for the generic SCSI I/O subsystem. E.g., a value of 128 requests all debug output to be printed by the backend. A value of 255 also prints kernel messages from the SCSI subsystem (where available). Smaller levels reduce verbosity. SANE_SCSICMD_TIMEOUT sets the timeout value for SCSI commands in seconds. Overriding the default value of 120 seconds should only be necessary for very slow scanners.
sane(7), sane-find-scanner(1), sane-backendname(5), sane-usb(5)
|SANE-SCSI (5)||14 Jul 2008|