[sane-devel] Problem With Sane

gerard klaver gerard@gkall.hobby.nl
Sat, 18 Dec 2004 17:02:31 +0100


On Sat, 2004-12-18 at 14:26, zoni wrote:
> I am have have a problem with sane. I am using Red Hat 9. I have Benq
> 3300. I copied the file u222v067.bin from my windows to /etc and made
> the following changes as below. 
> 
> 
> #------------------------------ General
> -----------------------------------
> 
> # Change to the fully qualified filename of your firmware file, if
> # firmware upload is needed by the scanner
> 
> #firmware /etc/filename.bin
> firmware /etc/u222v067.bin
> # firmware /etc/u126v043.bin
> 
> # If not automatically found you may manually specify a device name.
> 
> # For USB scanners also specify bus=usb, e.g.
> /dev/usb/scanner0 bus=usb
> 
> # For SCSI scanners specify the generic device, e.g. /dev/sg0 on Linux.
> # /dev/sg0
> 
> 
> 
> 
> 
> so know when I start the program, after 2 minutes it gives a message "
> Failed to open device 'snapscane:/dev/usb/dcanner0':Error during Device
> I/O"
> 
> 
> after that I gave command and got following results, Please Guide Me.
> 
> 
> 
> 
> [root@zoni zoni]# sane-find-scanner -v
>  
> searching for SCSI scanners:
> checking /dev/scanner... failed to open (Invalid argument)
> checking /dev/sg0... failed to open (Invalid argument)
> checking /dev/sg1... failed to open (Invalid argument)
> checking /dev/sg2... failed to open (Invalid argument)
> checking /dev/sg3... failed to open (Invalid argument)
> checking /dev/sg4... failed to open (Invalid argument)
> checking /dev/sg5... failed to open (Invalid argument)
> checking /dev/sg6... failed to open (Invalid argument)
> checking /dev/sg7... failed to open (Invalid argument)
> checking /dev/sg8... failed to open (Invalid argument)
> checking /dev/sg9... failed to open (Invalid argument)
> checking /dev/sga... failed to open (Invalid argument)
> checking /dev/sgb... failed to open (Invalid argument)
> checking /dev/sgc... failed to open (Invalid argument)
> checking /dev/sgd... failed to open (Invalid argument)
> checking /dev/sge... failed to open (Invalid argument)
> checking /dev/sgf... failed to open (Invalid argument)
> checking /dev/sgg... failed to open (Invalid argument)
> checking /dev/sgh... failed to open (Invalid argument)
> checking /dev/sgi... failed to open (Invalid argument)
> checking /dev/sgj... failed to open (Invalid argument)
> checking /dev/sgk... failed to open (Invalid argument)
> checking /dev/sgl... failed to open (Invalid argument)
> checking /dev/sgm... failed to open (Invalid argument)
> checking /dev/sgn... failed to open (Invalid argument)
> checking /dev/sgo... failed to open (Invalid argument)
> checking /dev/sgp... failed to open (Invalid argument)
> checking /dev/sgq... failed to open (Invalid argument)
> checking /dev/sgr... failed to open (Invalid argument)
> checking /dev/sgs... failed to open (Invalid argument)
> checking /dev/sgt... failed to open (Invalid argument)
> checking /dev/sgu... failed to open (Invalid argument)
> checking /dev/sgv... failed to open (Invalid argument)
> checking /dev/sgw... failed to open (Invalid argument)
> checking /dev/sgx... failed to open (Invalid argument)
> checking /dev/sgy... failed to open (Invalid argument)
> checking /dev/sgz... failed to open (Invalid argument)
>   # No SCSI scanners found. If you expected something different, make
> sure that
>   # you have loaded a SCSI driver for your SCSI adapter.
>   # Also you need support for SCSI Generic (sg) in your operating
> system.
>   # If using Linux, try "modprobe sg".
>  
> searching for USB scanners:
> checking /dev/usb/scanner... failed to open (Invalid argument)
> checking /dev/usb/scanner0... open ok, vendor and product ids were
> identified
> found USB scanner (vendor=0x04a5, product=0x20b0) at /dev/usb/scanner0
> checking /dev/usb/scanner1... failed to open (Invalid argument)
> checking /dev/usb/scanner2... failed to open (Invalid argument)
> checking /dev/usb/scanner3... failed to open (Invalid argument)
> checking /dev/usb/scanner4... failed to open (Invalid argument)
> checking /dev/usb/scanner5... failed to open (Invalid argument)
> checking /dev/usb/scanner5... failed to open (Invalid argument)
> checking /dev/usb/scanner7... failed to open (Invalid argument)
> checking /dev/usb/scanner8... failed to open (Invalid argument)
> checking /dev/usb/scanner9... failed to open (Invalid argument)
> checking /dev/usb/scanner10... failed to open (Invalid argument)
> checking /dev/usb/scanner11... failed to open (Invalid argument)
> checking /dev/usb/scanner12... failed to open (Invalid argument)
> checking /dev/usb/scanner13... failed to open (Invalid argument)
> checking /dev/usb/scanner14... failed to open (Invalid argument)
> checking /dev/usb/scanner15... failed to open (Invalid argument)
> checking /dev/usbscanner... failed to open (Invalid argument)
> checking /dev/usbscanner0... failed to open (Invalid argument)
> checking /dev/usbscanner1... failed to open (Invalid argument)
> checking /dev/usbscanner2... failed to open (Invalid argument)
> checking /dev/usbscanner3... failed to open (Invalid argument)
> checking /dev/usbscanner4... failed to open (Invalid argument)
> checking /dev/usbscanner5... failed to open (Invalid argument)
> checking /dev/usbscanner6... failed to open (Invalid argument)
> checking /dev/usbscanner7... failed to open (Invalid argument)
> checking /dev/usbscanner8... failed to open (Invalid argument)
> checking /dev/usbscanner9... failed to open (Invalid argument)
> checking /dev/usbscanner10... failed to open (Invalid argument)
> checking /dev/usbscanner11... failed to open (Invalid argument)
> checking /dev/usbscanner12... failed to open (Invalid argument)
> checking /dev/usbscanner13... failed to open (Invalid argument)
> checking /dev/usbscanner14... failed to open (Invalid argument)
> checking /dev/usbscanner15... failed to open (Invalid argument)
> found USB scanner (vendor=0x04a5, product=0x20b0) at libusb:002:002
>   # A USB device was detected. This program can't be sure if it's really
>   # a scanner. If it is your scanner, it may or may not be supported by
>   # SANE. Try scanimage -L and read the backend's manpage.
>  
>   # Scanners connected to the parallel port or other proprietary ports
> can't be
>   # detected by this program.
> done
> [root@zoni zoni]# 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).
> [root@zoni zoni]#

Seems you are using libusb, and not the old scanner kernel module
so you need to edit your snapscan.conf file for libusb and check your
hotplug setup and permissions.
See also www.sane-project.org/README.linux
-- 
----------
m.vr.gr.
Gerard Klaver