[sane-devel] HP ScanJet 5p on RH7.3 Linux?

Otto J. Makela om at iki.fi
Tue Aug 27 23:15:28 BST 2002


In principle, the HP ScanJet 5p should be a easy, SCSI-attached
scanner well-supported by Linux.

But no, I can't quite get it working when attached to a BusLogic SCSI
card I have on my RH7.3 machine (I didn't even bother trying the
pseudo-SCSI card that came with the scanner):

# uname -a 
Linux tigger.otto.net 2.4.18-4smp #1 SMP Thu May 2 18:32:34 EDT 2002 i686 unknown
# cat /etc/redhat-release 
Red Hat Linux release 7.3 (Valhalla)
# rpm -qa | fgrep -i sane
sane-backends-1.0.7-6.1
xsane-0.84-2
xsane-gimp-0.84-2
sane-frontends-1.0.7-2
# cat /proc/scsi/BusLogic/0 
***** BusLogic SCSI Driver Version 2.1.15 of 17 August 1998 *****
Copyright 1995-1998 by Leonard N. Zubkoff <lnz at dandelion.com>
Configuring BusLogic Model BT-946C PCI SCSI Host Adapter
  Firmware Version: 4.28D, I/O Address: 0xDC00, IRQ Channel: 17/Level
  PCI Bus: 0, Device: 17, Address: Unassigned, Host Adapter SCSI ID: 7
  Parity Checking: Enabled, Extended Translation: Disabled
  Synchronous Negotiation: Fast, Wide Negotiation: Disabled
  Disconnect/Reconnect: Enabled, Tagged Queuing: Enabled
  Scatter/Gather Limit: 128 of 8192 segments, Mailboxes: 211
  Driver Queue Depth: 211, Host Adapter Queue Depth: 100
  Tagged Queue Depth: Automatic, Untagged Queue Depth: 3
  Error Recovery Strategy: Default, SCSI Bus Reset: Enabled
  SCSI Bus Termination: Enabled
*** BusLogic BT-946C Initialized Successfully ***

Target 2: Queue Depth 3, Asynchronous

Current Driver Queue Depth:	211
Currently Allocated CCBs:	28

			   DATA TRANSFER STATISTICS

Target	Tagged Queuing	Queue Depth  Active  Attempted	Completed
======	==============	===========  ======  =========	=========
   2	Not Supported	      3         0          722	      722

Target  Read Commands  Write Commands   Total Bytes Read    Total Bytes Written
======  =============  ==============  ===================  ===================
   2	         47	        94		      752	           423

Target  Command    0-1KB      1-2KB      2-4KB      4-8KB     8-16KB
======  =======  =========  =========  =========  =========  =========
   2	 Read	        47          0          0          0          0
   2	 Write	        94          0          0          0          0

Target  Command   16-32KB    32-64KB   64-128KB   128-256KB   256KB+
======  =======  =========  =========  =========  =========  =========
   2	 Read	         0          0          0          0          0
   2	 Write	         0          0          0          0          0

			   ERROR RECOVERY STATISTICS

	  Command Aborts      Bus Device Resets	  Host Adapter Resets
Target	Requested Completed  Requested Completed  Requested Completed
  ID	\\\\ Attempted ////  \\\\ Attempted ////  \\\\ Attempted ////
======	 ===== ===== =====    ===== ===== =====	   ===== ===== =====
   2	     0     0     0        0     0     0	       0     0     0

External Host Adapter Resets: 1
Host Adapter Internal Errors: 0
# lsmod
Module                  Size  Used by    Tainted: P  
loop                   11632   0 
sg                     34500   0  (autoclean)
es1371                 33216   1  (autoclean)
gameport                3632   0  (autoclean) [es1371]
ac97_codec             12064   0  (autoclean) [es1371]
soundcore               7236   4  (autoclean) [es1371]
agpgart                40864   3  (autoclean)
NVdriver             1022752  10  (autoclean)
binfmt_misc             7780   1 
nfs                    90268   1  (autoclean)
nfsd                   77376   8  (autoclean)
lockd                  57760   1  (autoclean) [nfs nfsd]
sunrpc                 81684   1  (autoclean) [nfs nfsd lockd]
3c59x                  29160   1 
ide-scsi                9824   0 
BusLogic               94848   0  (autoclean)
sr_mod                 16952   0 
scsi_mod              112320   4  [sg ide-scsi BusLogic sr_mod]
ide-cd                 30368   0 
cdrom                  32608   0  [sr_mod ide-cd]
vfat                   12284   1  (autoclean)
nls_iso8859-1           3488   2  (autoclean)
nls_cp437               5120   2  (autoclean)
umsdos                 29248   1  (autoclean)
msdos                   7196   0  (autoclean) [umsdos]
fat                    38840   0  (autoclean) [vfat umsdos msdos]
usb-uhci               25604   0  (unused)
usbcore                77024   1  [usb-uhci]
ext3                   70752   1 
jbd                    53664   1  [ext3]
# cat /proc/scsi/scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: HP       Model: C5110A           Rev: 3638
  Type:   Processor                        ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: PLEXTOR  Model: CD-R   PX-W1210A Rev: 1.07
  Type:   CD-ROM                           ANSI SCSI revision: 02
# sane-find-scanner 
# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus and some scanners that are connected to the Universal
# Serial Bus (USB) depending on your OS. It will even find scanners
# that are not supported at all by SANE. It won't find a scanner that
# is connected to a parallel or proprietary port.

sane-find-scanner: found SCSI processor "HP C5110A 3638" at device /dev/scanner
sane-find-scanner: found SCSI processor "HP C5110A 3638" at device /dev/sg0
sane-find-scanner: found SCSI processor "HP C5110A 3638" at device /dev/sga
# ls -l  /dev/scanner /dev/sg0 /dev/sga
lrwxrwxrwx    1 root     root            3 Aug 22 20:39 /dev/scanner -> sg0
crw-rw-rw-    1 otto     root      21,   0 Apr 11 17:25 /dev/sg0
lrwxrwxrwx    1 root     root            3 May 15 02:53 /dev/sga -> sg0
# scanimage -L 

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).



Any ideas what's wrong here, that ide-scsi emulation (scsi1 bus) which
I use for my CD burner, the fact that I'm running a SMP kernel, or
something completely different?  This sounds a lot like what Mr.
Frank Roberts wrote on 2002-08-03 about using a HP ScanJet 6100C,
so could sane on Red Hat 7.3 somehow be hosed?
-- 
   /* * * Otto J. Makela <om at iki.fi> * * * * * * * * * * * * * * * */
  /* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
 /* Mail: Mechelininkatu 26 B 27,  FIN-00100  Helsinki,  FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */



More information about the sane-devel mailing list