[sane-devel] Benq S2W 4300U Scanner...

Zed Linux_mailinglists at zed.net.nz
Tue Feb 2 09:09:04 UTC 2010


I am using LinuxMint v8.0 and having difficulty in getting my Benq S2W 4300U
Scanner to work on my system.  

After installing u176v046.bin in .usr/share/sane/snapscan, and editing
/etc/sane.d/snapscan.con to read:

#------------------------------ General -----------------------------------

# Change to the fully qualified filename of your firmware file, if
# firmware upload is needed by the scanner
firmware /usr/share/sane/snapscan/u176v046.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

I get an error message: Failed to start scanner: Error during device I/O

typing lsusb in a terminal gives me:

zed at zed-desktop ~ $ lsusb
Bus 001 Device 008: ID 03f0:2f17 Hewlett-Packard EWS 2605dn
Bus 001 Device 005: ID 05e3:0702 Genesys Logic, Inc. USB 2.0 IDE Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 006: ID 04a5:20b0 Acer Peripherals Inc. (now BenQ Corp.) S2W
3300U/4300U
Bus 002 Device 003: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
zed at zed-desktop ~ $ 

so the scanner is there.

Turning off the scanner and typing $ tail -f /var/log/messages gives me the
following:

zed at zed-desktop ~ $ tail -f /var/log/messages
Feb  2 14:31:51 zed-desktop sudo: pam_sm_authenticate: Called
Feb  2 14:31:51 zed-desktop sudo: pam_sm_authenticate: username = [zed]
Feb  2 14:43:16 zed-desktop kernel: [201541.333127] usb 2-1: USB disconnect,
address 4
Feb  2 14:45:32 zed-desktop kernel: [201678.008023] usb 2-1: new full speed
USB device using ohci_hcd and address 5
Feb  2 14:45:33 zed-desktop kernel: [201678.222085] usb 2-1: configuration
#1 chosen from 1 choice
Feb  2 17:39:38 zed-desktop kernel: [212123.386301] scanimage[16779]:
segfault at 68 ip 001e4852 sp bfd7afe4 error 4 in
libpthread-2.10.1.so[1de000+15000]
Feb  2 17:45:35 zed-desktop sudo: pam_sm_authenticate: Called
Feb  2 17:45:35 zed-desktop sudo: pam_sm_authenticate: username = [zed]
Feb  2 17:45:56 zed-desktop kernel: [212501.455456] scanimage[16875]:
segfault at 68 ip 00386852 sp bfbeb654 error 4 in
libpthread-2.10.1.so[380000+15000]
Feb  2 18:02:34 zed-desktop kernel: [213499.605729] usb 2-1: USB disconnect,
address 5

I am advised that a segfault error is a major, and was further advised to:

zed at zed-desktop ~ $ SANE_DEBUG_SNAPSCAN=255 scanimage -L 2>snapscan.log
device `snapscan:libusb:002:006' is a Acer FlatbedScanner23 flatbed scanner
zed at zed-desktop ~ $ 

The output from the log is shown below:

[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[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: error opening device /dev/usb/scanner0: Invalid
argument
[snapscan] add_usb_device(libusb:002:006)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:002:006)
[snapscan] add_usb_device: Checking if 0x04a5 is a supported USB vendor ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(1,0xbff0646e,6,0xbff06478,0xbff06474 (36))
[snapscan] atomic_usb_cmd(1,0xbff0646e,6,0xbff06478,0xbff06474 (36))
[snapscan] usb_cmd(1,0xbff0646e,6,0xbff06478,0xbff06474 (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x43
0x6f ...
[snapscan] Read 36 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] snapscani_check_device: Is vendor "Color" model
"FlatbedScanner22" a supported scanner?
[snapscan] snapscani_get_model_id(FlatbedScanner22, 1, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID 0x04a5,0x20b0.
[snapscan] snapscani_check_device: Autodetected driver: Acer4300 (42 bit)
[snapscan] snapscani_usb_close(1)
[snapscan] 1st read 3 write 1
[snapscan] snapscani_usb_cmd(1,0xbff06472,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(1,0xbff06472,6,0x0,0x0 (0))
[snapscan] usb_cmd(1,0xbff06472,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] 2nd read 4 write 2
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0xbff0772c, 0)
[snapscan] sane_snapscan_exit

Your advise is sought as to where the problem lies and whether it is
solvable to the extent that I will be able to get this scanner to work on my
system.

Zed
-- 
Zed 

A "can't" is someone who sits on their "can."



More information about the sane-devel mailing list