LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-08-2009, 07:58 PM   #1
~zoey~
Member
 
Registered: Aug 2004
Location: South Dakota
Distribution: ubuntu & PCLOS
Posts: 119

Rep: Reputation: 15
Unhappy Invalid Argument for Scanner in Ubuntu


I am running ubuntu 8..10 and I have had no luck in getting my Epson perfection 3490 photo scanner to work. I belong to the scanner group and my scanner is recognized, but I get this message when I click on Xsane; Failed to open device snapscan:libusb:008:002':invalid argument

What I have done so far after googling and finding some info:

First I made sure that libsane-extras is installed.

Next I made sure that all users who are allowed to use the scanner belong to the "scanner" group.

Got the firmware, which is in a cab archive on the CD that came with the scanner; extracted files to find Esfw52.bin; copied file to /usr/local/lib/firmware

Checked snapscan.conf and scanner was listed Changed firmware line in snapscan.conf to firmware /usr/local/lib/firmware/Esfw52.bin

Added file 10-udev.rules containing these lines;
#scanner devices
scanner:root:scanner:066
usb/scanner*:root:scanner:0660
to /etc/udev/rules.d

Still got the invalid argument message.

I found that ubuntu 8.10 is missing the epkowa file, so I followed the directions (cut and paste) and created one in/etc/sane.d.
I then followed these directions:
I edited /etc/sane.d/dll.conf: commented out the line "epson" and added a line "epkowa".

edited /etc/sane.d/epkowa.conf and comment out the "scsi" line; the only uncommented line"usb".

I then unplugged the scanner usb connection, did a restart, plugged it back in, clicked on XSane and got the very same error that I got before making all of the changes.

This is the output for sudo sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b8 [EPSON], product=0x0122 [EPSON Scanner]) at libusb:008:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program

And for scanimage -L
device `snapscan:libusb:008:004' is a EPSON EPSON Scanner flatbed scanner

I would appreciate any help.

Thanks, zoey
 
Old 03-09-2009, 01:28 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Added file 10-udev.rules containing these lines;
#scanner devices
scanner:root:scanner:066
usb/scanner*:root:scanner:0660
to /etc/udev/rules.d
This doesn't look like a valid udev rule to me. Where are you getting your "directions" from? Please give us links.

Also see:
http://www.reactivated.net/writing_udev_rules.html
 
Old 03-09-2009, 08:12 PM   #3
~zoey~
Member
 
Registered: Aug 2004
Location: South Dakota
Distribution: ubuntu & PCLOS
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tredegar View Post
This doesn't look like a valid udev rule to me. Where are you getting your "directions" from? Please give us links.

Also see:
http://www.reactivated.net/writing_udev_rules.html
I followed psb6m's instructions because it looked liked they worked for other people.
http://ubuntuforums.org/showthread.php?t=108256

I read about epkowa here;
http://reformedmusings.wordpress.com...ntrepid-linux/

Thanks, zoey
 
Old 03-10-2009, 12:55 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I followed psb6m's instructions because it looked liked they worked for other people.
That post dates from 2005 - things have changed a lot since then.
Your 10-udev.rules file is not good at all. Please remove it.

I don't think you need this at all. That post refers to an "Epson Stylus CX7800 All-in-One" which is not what you have.
So, for now, I think you should undo these changes.

I think you should look here ( a more recent posting in the ubuntu forums thread ):
http://ubuntuforums.org/showpost.php...0&postcount=59
In ubuntu 8.04 and up, you should have to do very little to get your scanner working.
 
Old 03-10-2009, 04:23 PM   #5
~zoey~
Member
 
Registered: Aug 2004
Location: South Dakota
Distribution: ubuntu & PCLOS
Posts: 119

Original Poster
Rep: Reputation: 15
Thank you so much! Now it works. I need to learn how to do better searches. I did search for my scanner, but obviously I didn't find the right post.
Thanks again, zoey
 
Old 03-10-2009, 04:35 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I did search for my scanner, but obviously I didn't find the right post.
You did find the right post, but you didn't read it to the end. You live & learn.
Pleased it's working for you now.
 
  


Reply



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
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
iptables: Invalid argument pk_kala Linux - Server 4 06-23-2007 02:21 AM
br2684ctl Invalid argument kenjiru Linux - Hardware 1 04-14-2007 03:51 AM
[ Invalid Argument on 'iptables' ] benleung Linux - Security 1 09-23-2003 12:25 AM
xawtv - invalid argument liguorir Linux - Software 0 06-17-2003 08:55 PM

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

All times are GMT -5. The time now is 03:45 AM.

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
Open Source Consulting | Domain Registration