LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2007, 07:35 AM   #1
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Rep: Reputation: 30
USB Scanner problem


While Fedora 6 is booting up and my Acer (benq 4300) scanner is connected via USB port I am getting the following error.

"USB 1:1 read/all error -71" and then the device is going power off. I am sure that the scanner is Ok because from Windows it is working perfectly from the same port. Even in Fedora 6 the scanner is correctly recognized when I am trying to swich it on when the system is up, but then also Xsane is giving the following error -

"Failed to open device 'snapscan:libusb:001:005':-Invalid argument"

Please help.
 
Old 01-10-2007, 06:49 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
sane gives "good" support via snapscan:
http://www.sane-project.org/man/sane-snapscan.5.html

This may be a problem with the configuration file.
If you are using libusb (likely), then check that the configuration file doesn't have a device line (i.e. no line like /dev/usb/scanner0).
 
Old 01-10-2007, 09:22 AM   #3
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
I have not found the configuration file. I checked /usr/local/etc. But there is no sane.d file.

While I issued the command
# sane-find-scanner

the output is

found USB scanner (vendor=0x04a5 [Color], product=0x20b0 [ FlatbedScanner 22]) at libusb:002:002

Which means the scanner is detected. But it seems the configuration file is missing. Please suggest futher action. I have seen the link also.
 
Old 01-10-2007, 09:16 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
$ locate sane.d
or
$ locate snapscan

The config file is /etc/sane.d/snapscan.conf on my system. It is already set to autoscan usb via libusb (but that is for me.)

I notice the scanner is found at libusb:002:002 but the error message mentions libusb:001:005 ... you could try using scanimage on the commandline and explicitly specify the device found by sane-find-scanner.

try

scanimage -d snapscan:libusb:002:002 image.pnm

(example only - i.e. explicitly state your device to use on the commandline)

And, of course, read man sane-usb
 
Old 01-10-2007, 11:20 PM   #5
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks Simon, I found the configuration file. It's there in the same place : /etc/sane.d/snapscan.conf

I checked the file and found my scanner up there .

# Benq/Acer/Vuego 4300
usb 0x04a5 0x20de


Also the line /dev/usb/scanner0 is already commented in the file as follows.
-----------------------------------------
# For USB scanners also specify bus=usb, e.g.
# /dev/usb/scanner0 bus=usb

-----------------------------------------
Regarding the error message I have put in the cable in my USB 2 port from USB 5 port. So that is ok. Now the error message is showing "snapscan:libusb:002:002"

I should also mention here that when I am loading XSane, it is showin a list of devices it has found. One is /dev/video0 (TV Card) and the next one is my scanner ACer Flatbed Scanner 22.

Moreover at the prompt this time I found an error message
----------------------------------
Cannot open firmware file /usr/share/sane/snapscan/your-firmwarefile.bin.
----------------------------------
If I am correct then I believe I have to replace the firmware line with the actual location of my driver file which is u222v067.bin which is the correct driver for the scanner.

I searched the file
$ locate u222v067.bin
No result.

Please advise what to do now? Thanks for you help friend. You have shown some light for me at the end of the tunnel.

Last edited by arindom; 01-10-2007 at 11:23 PM.
 
Old 01-10-2007, 11:43 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
When you purchased the scanner, you got a disk with it. Firmware is on the disk - fingers crossed - otherwise you need to check the manufacturers website.

It may be that firmware is not needed - in which case you can try commenting out the "firmware" line in snapscan.conf ...
 
Old 01-11-2007, 05:39 AM   #7
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
I tried commenting the firmware line, not working. I think now I have to find that .bin file and load it.

Thanks for your help friend.
 
Old 03-07-2007, 08:35 PM   #8
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Hello again,

Finally I have been able to get the bin file. In the meantime I am now working in OpenSuse10.2.

Now the scanner is recognized by sane-find-scanner tool.

"found USB scanner (vendor=0x04a5, product=0x20b0) at libusb:002:002"

But when I am trying to use the scanner through XSane it is saying no scanner. Scanimage -L is also say "No scanner is identified"

I have also tried setting up the scanner through YAST. Though the scanner is found by YAST but the message coming is, scanner not configured.

Please suggest.
 
Old 03-08-2007, 01:48 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
man sane-snapscan

make sure that snapscan.conf is correct for your setup.
 
Old 03-08-2007, 03:19 AM   #10
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks Simon for being so supportive and helpful.

I have checked the /etc/sane.d/snapscan.conf. I didn't found any enty having this "vendor=0x04a5, product=0x20b0". So I have added that and then once I reboot I would report you the result.

Thanks again. It seems I am near to a solution.

------------
EDIT
------------
No not even after reboot the situation changed. Still Device Not Found.

Last edited by arindom; 03-08-2007 at 04:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 07:06 PM
USB Scanner problem in linux drulz Linux - Hardware 0 06-15-2006 04:19 AM
USB Scanner problem: usb 1-2: device not accepting address 3, error -71 lagartoflojo Slackware 1 11-13-2004 05:26 PM
USB, scanner problem. Likosin Linux - Hardware 1 05-22-2004 10:29 AM
USB Scanner problem again phil81 Linux - Hardware 5 04-09-2004 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration