[sane-devel] problem launching sane

Jost Ammon jost@ammon-web.de
Sun, 15 Feb 2004 18:56:06 +0100


Hello,

Sane doesn't find my scanner so I ran the sane-troubleshoot (a real great feature!). I'm not a hacker at all so I'm not proficient in interpreting the log, but it seems that sane tries to add simultaneously a SCSI (bad) as well as a USB device (good). Trying to add SCSI seems to be the problem. So I think the solution will be to out-comment adding the scsi device, but where and how?

Or do I need to go into a total different direction?

Thanx for any advice.

Jost

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sane-troubleshoot version 2003-06-16 started Sun Feb 15 18:33:08 2004
System information: Linux 2.4.21-0.13mdk i686
Searching for libsane in /lib
Searching for libsane in /usr/lib
Found /usr/lib/libsane.so.1.0.11
Searching for libsane in /usr/local/lib
Searching for libsane in /usr/X11R6/lib
Searching for dll.conf in /etc/sane.d
Found /etc/sane.d/dll.conf
* sane/sane.h not found
trying dlopen
dlopen (libsane.so) failed: libsane.so: cannot open shared object file: No such file or directory
dlopen (libsane.so.1) succeeded
--> sane_init ()
<-- sane_init (): Success
* SANE version 1.0.11
--> sane_open (test:1)
<-- sane_open (test:1): Success
--> sane_close ()
<-- sane_close ()
--> sane_get_devices ()
<-- sane_get_devices (): Success
Found AGFA SNAPSCAN flatbed scanner at "snapscan:/dev/usb/scanner0"
Selected AGFA SNAPSCAN flatbed scanner at "snapscan:/dev/usb/scanner0"
--> sane_exit ()
<-- sane_exit ()
Setting SANE_DEBUG_SNAPSCAN=255
--> sane_init ()
<-- sane_init (): Success
--> sane_open (snapscan:/dev/usb/scanner0)
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.22
[snapscan] add_scsi_device(/etc/sane.d/snapscan.conf)
[snapscan] add_scsi_device: Detected (kind of) a SCSI device
[snapscan] add_scsi_device: error opening device /etc/sane.d/snapscan.conf: Invalid argument
[snapscan] add_usb_device(/dev/usb/scanner0 bus=usb)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(/dev/usb/scanner0)
[snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffd6b0,6,0xbfffd680,0xbfffd67c (36))
[snapscan] atomic_usb_cmd(0,0xbfffd6b0,6,0xbfffd680,0xbfffd67c (36))
[snapscan] usb_cmd(0,0xbfffd6b0,6,0xbfffd680,0xbfffd67c (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x41 0x47 ...
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN" a supported scanner?
[snapscan] snapscani_get_model_id(SNAPSCAN, 0, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID 0x06bd,0x2091.
[snapscan] snapscani_check_device: Autodetected driver: SnapScan
[snapscan] snapscani_usb_close(0)
[snapscan] snapscani_init_device_structure()
[snapscan] add_usb_device(/dev/usb/scanner0)
[snapscan] add_usb_device(libusb:001:002)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:001:002)
[snapscan] add_usb_device: error opening device libusb:001:002: Access to resource has been denied
[snapscan] sane_snapscan_open (/dev/usb/scanner0, 0xbfffe864)
[snapscan] find_device
[snapscan] sane_snapscan_open: Allocating 64512 bytes as scanner buffer.
[snapscan] sane_snapscan_open: allocated scanner structure at 0x81e8228
[snapscan] open_scanner
[snapscan] snapscani_usb_open(/dev/usb/scanner0)
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffe7c0,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffe7c0,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffe7c0,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] sane_snapscan_open: performing scanner self test.
[snapscan] send_diagnostic
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffe7f0,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0xbfffe7f0,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0xbfffe7f0,6,0x0,0x0 (0))
[snapscan] sane_snapscan_open: self test passed.
[snapscan] inquiry
[snapscan] sn