[SOLVED] Epson Stylus SX125 scanner function problem.

Need help with peripherals or devices?
Post Reply
Message
Author
AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

[SOLVED] Epson Stylus SX125 scanner function problem.

#1 Post by AlbertRJulia »

Hi
I didn't saw a forum for presentations, so I introduce myself here.

First of all, I want to thank all the work to the Debian community,

My name is Albert and I'm from Barcelona (Spain). I've always been a Ubuntu user, and now, I'm starting with Debian.
I am really excited about that because Debian is hard stuff for me. Until now I did well.

I installed Debian 6.0.4 (amd64) on an Asus 1001P dualbooted with Windows 7 Ultimate x64 without any problems (tested first on VBox :mrgreen: ). My idea is to remove Windows when I get my needs replaced

Wi-fi and Sound was auto-detected and working properly
I also installed non-free flash, Google Chrome, VLC, all perfect :D

My trouble is with a multifunction device: Epson Stylus SX125:

I'm succeeded installing the printer, but not the scanner.

Connected through USB interface (the only way)
I tried with Simple Scan (when I try to scan it says "Unable to connect to scanner").

With Image Scan! for Linux (downloaded from http://download.ebz.epson.net/dsc/du/02 ... 7403a4c878)
and it says "Could not send command to scanner. Check the scanner's status"

With XSane found the device but says "Failed to open device `epkowa:usb:002:002': Access to resource has been denied"

I don't know what to do, is it possible to solve this? :|

Thanks!
Last edited by AlbertRJulia on 2012-02-13 12:26, edited 1 time in total.

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: Epson Stylus SX125 scanner function problem.

#2 Post by subhuman »

what is the output from

Code: Select all

scanimage -L
?

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#3 Post by AlbertRJulia »

Hi, this is the output:

scanimage -L
device `v4l:/dev/video0' is a Noname USB2.0 UVC VGA WebCam virtual device
device `epkowa:usb:002:002' is a Epson Stylus SX125/NX125/NX127/TX120/ME 320/330 Series flatbed scanner

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: Epson Stylus SX125 scanner function problem.

#4 Post by subhuman »

have you tried something like

Code: Select all

scanimage >somescan.tiff
? what happens when you scan as root, and what as someone else?

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#5 Post by AlbertRJulia »

As root:

Code: Select all

root@unknown:/home/aros# scanimage > somescan.tiff
scanimage: sane_start: Invalid argument
As a normal user:

Code: Select all

aros@unknown:~$ scanimage > somescan.tiff
bash: somescan.tiff: Permission denied

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: Epson Stylus SX125 scanner function problem.

#6 Post by subhuman »

so we have two problems, one with sane, and one with the permissions. lat's take up the first one first: it may have to do with that webcam of yours, and if so we'll have to tell sane which device to use.
a) does /etc/xinetd contain the following verses:

Code: Select all

              service sane-port
              {
                     port        = 6566
                     socket_type = stream
                     wait        = no
                     user        = saned
                     group       = saned
                     server      = /usr/sbin/saned
              }
b) have you run sane-find-scanner? if not, do so, then try scanning again.

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#7 Post by AlbertRJulia »

/etc/xinetd does not exist:

Code: Select all

root@unknown:/etc# cat /etc/xinetd
cat: /etc/xinetd: No such file or directory
sane-find-scanner:

Code: Select all

root@unknown:/etc# 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04b8 [EPSON], product=0x085c [EPSON Epson Stylus SX125 Series]) at libusb:002:002
  # 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.
Tried to scan again but same error:

Code: Select all

root@unknown:/etc# scanimage > somescan.tiff
scanimage: sane_start: Invalid argument

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#8 Post by AlbertRJulia »

I have to install xinetd?

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: Epson Stylus SX125 scanner function problem.

#9 Post by subhuman »

AlbertRJulia wrote:I have to install xinetd?
if it isn't installed, leave it for now. i thought it would have been automatically selected. and: my fault, the filename is xinetd.conf. ;)

there should exist a file named libsane.rules on /etc/udev. this is how it looks at my system:

Code: Select all

# Brother
SYSFS{idVendor}=="04f9", MODE="0666", GROUP="scanner", ENV{libsane_matched}="yes"
i guess that if you change "04f9" for "04b8", and restart saned, we might have a chance...

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#10 Post by AlbertRJulia »

OMG My system does not have anything!

/etc/xinetd.conf does not exist:

Code: Select all

root@unknown:/etc# cat /etc/xinetd.conf
cat: /etc/xinetd.conf: No such file or directory
And there is no libsane.rules, this is what I have:

Code: Select all

root@unknown:/etc# ls -la /etc/udev
total 36
drwxr-xr-x   4 root root  4096 Feb 12 03:40 .
drwxr-xr-x 122 root root 12288 Feb 13 12:35 ..
drwxr-xr-x   2 root root  4096 Dec 13  2010 .dev
-rw-r--r--   1 root root    92 Nov  2  2008 hdparm.rules
-rw-r--r--   1 root root   281 Dec 13  2010 links.conf
drwxr-xr-x   2 root root  4096 Feb 12 03:40 rules.d
-rw-r--r--   1 root root   218 Dec 13  2010 udev.conf

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: Epson Stylus SX125 scanner function problem.

#11 Post by subhuman »

AlbertRJulia wrote:OMG My system does not have anything!
just create the libsane.rules file. before udev knows your scanner and creates the appropriate device, saned can't work.

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: Epson Stylus SX125 scanner function problem.

#12 Post by AlbertRJulia »

Solved!!!! :D :D :D

I created the file libsane.rules with the content you posted modifying the number "04f9" for "04b8".

Then I tried to restart sane service but it says:

Code: Select all

root@unknown:/etc# /etc/init.d/saned restart
saned disabled; edit /etc/default/saned
I edited /etc/default/saned:

Code: Select all

# Defaults for the saned initscript, from sane-utils

# Set to yes to start saned
RUN=no

# Set to the user saned should run as
RUN_AS_USER=saned
Changing RUN=no for RUN=yes

Then allowed me to start the service and now ALL THE SCANNING PROGRAMS ARE WORKING!!

Thank you so much! these things help me and motivate me to keep using Debian :wink:

User avatar
subhuman
Posts: 360
Joined: 2011-08-20 14:54

Re: [SOLVED] Epson Stylus SX125 scanner function problem.

#13 Post by subhuman »

every day a good deed! that's debian policy, didn't you know? 8)

AlbertRJulia
Posts: 9
Joined: 2012-02-13 09:15
Location: Barcelona, Spain

Re: [SOLVED] Epson Stylus SX125 scanner function problem.

#14 Post by AlbertRJulia »

No, but I like it :)

Post Reply