[sane-devel] sane 1.0.8 on OS/2 part 2
Sun, 2 Jun 2002 13:28:50 +0200
On Sat, Jun 01, 2002 at 11:24:43PM +0200, Paul Floyd wrote:
> One thing I forgot to mention. For ages I've been using a snapscan.conf
> file (probably dating back to 1.0.3). Tonight I took a look at the
> current snapscan.conf, and notice that the syntax had been changed. So I
> gave it a go.
> Didn't work.
> My guess is that in the new format:
> scsi AGFA * Scanner
> the * fails to match the format of the device on OS/2 (which is dXtYlZ,
> rather than /dev/scanner or whatever).
The scsi ... format is quite independent from the format of the actual
device file names. It's described in man sane-scsi. The third argument
is the type of the device and "Scanner" looks right :-)
> Putting it back to simply
> scsi AGFA
> worked better.
One guess: It looks like the OS/2 code simulates a Linux
/proc/scsi/scsi file by creating a temporary file. However, the format
doesn't seem to completely match. E.g. The "Type: Scanner" entry is
missing. This is probably the reason for your observation.
Here is an example of the output of /proc/scsi/scsi:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: MUSTEK Model: MSF-06000SP Rev: 3.12
Type: Scanner ANSI SCSI revision: 01
Maybe you can fix the code in sanei_scsi.c around line 677 or the
detection around line 3479? I don't know if you can get the Type:
information from OS/2. If you can't, maybe just add a fixed "Type:
Patches welcome :-)