xscanimage won't detect my scanner

Jamie Zawinski (jwz@jwz.org)
Fri, 12 Mar 1999 09:32:37 -0800

Well, since there do not seem to be precompiled binary RPMs of SANE
that plug in to GIMP 1.0.1 on RH 5.2 anywhere in the world, I gave up
and uninstalled and reinstalled GTK so that there is no trace of
GTK 1.1 anywhere on my system, and I can build SANE myself
(meaning I cannot currently compile Mozilla, meaning that once I
get SANE working, I get to go through this library shuffle all over
again.)

The problem: xscanimage doesn't notice that my scanner exists.

find-scanner sees it:

find-scanner: found processor "HP C2520A 3503" at device /dev/scanner
find-scanner: found processor "HP C2520A 3503" at device /dev/sga

the device is readable:

% ll /dev/scanner /dev/sga
lrwxrwxrwx 1 root root 3 Jan 5 17:42 /dev/scanner -> sga
crw-rw-rw- 1 root sys 21, 0 Sep 30 22:05 /dev/sga

With an explicit argument, scanimage works (actually scans an image):

scanimage -d hp:/dev/scanner >/dev/null

But xscanimage doesn't detect it, and so the only entries on its
device menu are the "ppm" devices (whose purpose I still don't fathom.)

I poked around under gdb, and I don't understand what's going wrong.
It's an "error 0: success" kind of situation. Here's what I get if
I set sanei_debug_sanei_scsi=99 upon entry to umax_identify_scanner:

[sanei_scsi] scsi_req_enter: entered 0x8089bd0
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8089bd0
[sanei_scsi] sanei_scsi.issue: 0x8089bd0
[sanei_scsi] sanei_scsi_req_wait: read 41 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
[sanei_scsi] scsi_req_enter: entered 0x8089bd0
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8089bd0
[sanei_scsi] sanei_scsi.issue: 0x8089bd0
[sanei_scsi] sanei_scsi_req_wait: read 41 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success

Any suggestions?

RH 5.2, SANE 1.00, HP ScanJet 4c, Adaptec AIC-7861.

-- 
Jamie Zawinski
jwz@mozilla.org    http://www.mozilla.org/   (work)
jwz@jwz.org        http://www.jwz.org/       (play)

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com