[sane-devel] Failed to open device 'hp:/dev/scanner': Error duringdevice I/O

Peter Kirchgessner peter at kirchgessner.net
Fri Oct 12 17:52:29 BST 2001


Hi,

due to the version of the backend I would assume that you have two
different installations of SANE on your machine. hp-backend version 0.93
was delivered with SANE 1.0.4. This one was known to have some problems
with timeouts on the SCSI bus. Maybe you have to remove an old
SANE-installation with the tools of your Linux distribution and then try
to compile the SANE 1.0.5 again.
At first you can look which scanimage you are using by

which scanimage

If it is not /usr/local/bin/scanimage you are using a pre-installed
scanimage.
With

ldd `which scanimage`

you can see where the libraries come from. libsane.so.1 should come from
/usr/local/lib/libsane.so.1
Finally

ls -l /usr/local/lib/libsane.so.1

should show you the version of the library (libsane.so.1.0.5).

--Peter

Jochen Streicher wrote:
> 
> Hi,
> 
> On Fri, 12 Oct 2001, Peter Kirchgessner wrote:
> 
> > Hi,
> >
> > to see if the hp-backend can open the device you can run (x)scanimage
> > after an
> >
> > export SANE_DEBUG_HP=17
> >
> > The logs should show at which place the communication failed.
> >
> > --Peter
> >
> 
> Ok, this is what I got:
> 
> [sanei_debug] Setting debug level of hp to 17.
> [hp] sane_init called
> [hp] sane_init will finish with Success
> [hp] sane_get_devices called
> [hp] hp_read_config: hp backend v0.93 starts reading config file
> [hp] hp_read_config: processing line <scsi HP>
> [hp] hp_read_config: processing line </dev/scanner>
> [hp] hp_read_config: attach scsi HP
> [hp] hp_get_dev: New device /dev/sg2, connect-scsi, scsi-request=1
> [hp] sanei_hp_device_new: /dev/sg2
> [hp] scsi_inquire: sending INQUIRE
> [hp] scsi_new: sending TEST_UNIT_READY
> [hp] scsi_flush: writing 2 bytes:
> [hp]  0x0000  1B 45                                            .E
> [hp] scsi_flush: writing 7 bytes:
> [hp]  0x0000  1B 2A 73 32 35 37 45                             .*s257E
> [hp] scl_inq: read failed (Error during device I/O)
> [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O
> [hp] sanei_hp_device_new: SCL reset failed
> [hp] scsi_close: closing fd 23
> [hp] hp_read_config: attach /dev/scanner
> [hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1
> [hp] sanei_hp_device_new: /dev/scanner
> [hp] scsi_inquire: sending INQUIRE
> [hp] scsi_new: sending TEST_UNIT_READY
> [hp] scsi_flush: writing 2 bytes:
> [hp]  0x0000  1B 45                                            .E
> [hp] scsi_flush: writing 7 bytes:
> [hp]  0x0000  1B 2A 73 32 35 37 45                             .*s257E
> [hp] scl_inq: read failed (Error during device I/O)
> [hp] scl_errcheck: Can't read SCL error stack: Error during device I/O
> [hp] sanei_hp_device_new: SCL reset failed
> [hp] scsi_close: closing fd 23
> [hp] sane_get_devices will finish with Success
> [xscanimage] No scanners were identified. If you were expecting something
>           different, check that the scanner is plugged in, turned on and
>           detected by the find-scanner tool (if appropriate). Please read
>           the documentation which came with this software (README, FAQ,
>           manpages).
> [hp] sane_exit called
> [hp] sane_exit will finish
> 
> I use sane 1.05 compiled out of tarball to /usr/local ; and kernel 2.4.12
> (also out of tarball) at the moment.
> 
> Jochen

-- 
Peter Kirchgessner
http://www.kirchgessner.net
mailto:peter at kirchgessner.net
(alternate e-mail: pkirchgessner at t-online.de)




More information about the sane-devel mailing list