Ok, I'm not a newbie,
I tried this BENQ 4300 scanner on 3 different machines,
all having different usb controllers, I tried usb-uhci,
uhci, and ohci. I also tried pluging it onto the main
usb ports, hubs, usb2 hubs, chained hubs...
I am running RH8.0 + all updates, also tried it on
Gentoo laptop and Knoppix.
I am getting quite stressed by this, I have already
bought (and swapped) 2 more scanners without being able
to use them with linux (sorry don't have windoze
anywhere). One based on a gt6801 chip never worked (smp
locked hard, non-smp never worked), the other, an epson
scanner (660) never worked even though the SANE pages
said all epson scanners should work... (but this one
doesn't)
Please help, I don't want to have to use windows, but
these 3 scanners are costing me money and time... and
nerves.
Here are the messages from the kernel log:
kernel: scanner.c: open_scanner(14): Unable to access
minor data
kernel: scanner.c: open_scanner(15): Unable to access
minor data
kernel: usb_control/bulk_msg: timeout
last message repeated 20 times
kernel: usb_control/bulk_msg: timeout
kernel: scanner.c: read_scanner(0): excessive NAK's
received
And from the sane log:
[root@##### root]# export SANE_DEBUG_SNAPSCAN=255
[root@##### root]# scanimage
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version
1.4.13
[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 0x04a5 is a
supported USB vendor ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan]
snapscani_usb_cmd(4,0xbfffe450,6,0xbfffe420,0xbfffe41c
(36))
[snapscan]
atomic_usb_cmd(4,0xbfffe450,6,0xbfffe420,0xbfffe41c (36))
[snapscan] usb_cmd(4,0xbfffe450,6,0xbfffe420,0xbfffe41c
(36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x12 0x00 0x00 0x00
0x24 0x00
(followed by a long pause / crash sometimes, then)
[snapscan] usb_write Only -1 bytes written
[snapscan] mini_inquiry: snapscan_cmd command failed:
Error during device I/O
[snapscan] snapscani_check_device: mini_inquiry failed
with Error during device I/O.
[snapscan] snapscani_usb_close(4)
[snapscan] add_usb_device(/dev/usb/scanner0)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(/dev/usb/scanner0)
[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(4,0xbfffe370,6,0xbfffe340,0xbfffe33c
(36))
[snapscan]
atomic_usb_cmd(4,0xbfffe370,6,0xbfffe340,0xbfffe33c (36))
[snapscan] usb_cmd(4,0xbfffe370,6,0xbfffe340,0xbfffe33c
(36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing: 0x12 0x00 0x00 0x00
0x24 0x00
Then it times out...
The kernel log is then full of:
usb_control/bulk_msg: timeout
[snapscan] usb_read Error returned from read:
Connection timed out (110)
[snapscan] mini_inquiry: snapscan_cmd command failed:
Error during device I/O
[snapscan] snapscani_check_device: mini_inquiry failed
with Error during device I/O.
[snapscan] snapscani_usb_close(4)
[snapscan] sane_snapscan_get_devices (0xbffff608, 0)
scanimage: no SANE devices found
[snapscan] sane_snapscan_exit
Logged In: YES
user_id=89371
Hi,
It looks as if the basic USB communication does not work. Some hints:
- Check if any other device shares an interrupt with the USB controller. If
yes, try to change it (e.g. by swapping PCI cards to different slots).
- Do you have any other USB devices connected? Do they work? Is there
any difference when you unplug them and use the scanner alone?
- Did you try to upload any firmware before running the tests? Could you
be using the wrong firmware file?
- What is the contents of /proc/bus/usb/devices?
Regards,
Oliver