[sane-devel] sane-find-scanner vs. scanimage --list-devices?
Steven Lembark
lembark@wrkhors.com
Sun, 11 Nov 2001 03:00:19 -0600
The finderizer locates the scanner (an HP6100C) nicely enough,
scanimage -L doesn't. Same effect as me and su. Checking
"/dev/scanner" or "/dev/scsi/host2/bus0/target1/lun0/generic"
gives the same result (see below). The hp.config lists the
correct device, no help.
System is a heavily hacked RH-7.1 system w/ sane installed
into /opt/sane/1.06. Gimp is installed in /opt/gimp/1.2.2.
Both of their include/lib files are available in /opt/lib
and /opt/include; /opt/lib is the first entry in /etc/ld.so.conf.
The Sane and HP FAQ's seem to imply that anything the finderizer
can locate whould be found identically by scanimage --list-devices.
Checking the /proc system, it finds the device and the generic
driver has a matching string (see below). The HP FAQ suggests
trying the '-d hp:/dev/blah' method, which gives me invalid
argument.
In order to reset the equipment I've removed the scsi driver
(I use a Tekram for the drives, BusLogic for external equipment),
power-cycled all of they toys, waited for them to settle out and
then reinstalled the driver.
root@dizzy:bin # ./sane-config --prefix
/opt/sane/1.0.6/
root@dizzy:bin # ./sane-config --cflags
-I/opt/sane/1.0.6//include
root@dizzy:bin # ./sane-config --ldflags
-L/opt/sane/1.0.6//lib -Wl,-rpath,/opt/sane/1.0.6//lib
root@dizzy:bin # ./sane-config --libs
-lsane -lnsl -lm -ljpeg
root@dizzy:bin # ./sane-config --version
1.0.6
root@dizzy:bin # cat /proc/scsi/scsi
Attached devices:
<snip>
Host: scsi2 Channel: 00 Id: 01 Lun: 00
Vendor: HP Model: C2520A Rev: 3644
Type: Processor ANSI SCSI revision: 02
<snip>
root@dizzy:bin # cat /proc/scsi/sg/device_strs
<snip>
HP C2520A 3644
<snip>
root@dizzy:bin # cat /etc/sane.d/hp.conf <- soft link to
/opt/sane/etc/sane.d scsi HP
/dev/scanner
root@dizzy:bin # ./sane-find-scanner
<snip>
sane-find-scanner: found SCSI processor "HP C2520A 3644" at device
/dev/scanner sane-find-scanner: found SCSI processor "HP C2520A 3644"
at device /dev/sg2
root@dizzy:bin # ./scanimage --list-devices
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
root@dizzy:bin # ./scanimage -d hp:/dev/scanner > /tmp/x
scanimage: open of device hp:/dev/scanner failed: Invalid argument
None of the FAQ/HOWTO/README files I've gone through so far
mentions how to deal with this case, or where the differences
in how the two go about it effect the outcome (and there didn't
seem to be any comments in the source describing this particular
item). Any suggestions for where to look next?
Note: the FAQ suggested checking man sane_scsi, but this doesn't
show up anywhere in the file under /opt/sane/1.06/man.
thanx.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582