Using an Epson scanner
I have an Epson SX125 all in one printer I can get it to print OK with Ubuntu 10.04. How do I use it as a scanner.
The scan programs sane Xsane Skanlite on the software centre fail to download -untrusted sources Please advise. William
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu xsane Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please open a terminal and type:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install xsane
Revision history for this message
|
#2 |
Hi Marco,
Followed your commands. Opened Xsane but it says `No devices available` Please advise
William
Revision history for this message
|
#3 |
Have you downloaded and installed the scanner-specific addons from http://
file names most probably are iscan_2.
Revision history for this message
|
#4 |
Hi Manfred
Is this the file? William
home > Linux Driver >
All-in-Ones (Multifunction Inkjet Printers)
Download All-in-Ones (Multifunction Inkjet Printers)
Printer Driver
Download for Epson ME 320/330,Epson Stylus NX125/NX127/
file size
/
md5sum
Revision history for this message
|
#5 |
No, this is not the file. You are on the right page, but this is not the file you need.
Go to http://
Scroll down until you see the heading 'Form for download'
mark 'Epson ME 320/330,Epson Stylus NX125/NX127/
scroll further down to 'Questionnaire'
for Distribution select 'Ubuntu'
for Distribution version select '10.04'
click on 'Next'
On the page that opens you see the heading 'Printer Driver': you can ignore that (you say that printing already works ok)
Scroll further down to the heading 'Scanner Driver'
and download the data package (in the version below deb package): iscan-data_
and download the core package (either the "deb 32bit package [libltdl7] (for Ubuntu 8.10 or later)" or the "deb 64bit package [libltdl7] (for Ubuntu 8.10 or later)" the 32bit package if you are running Ubuntu 32bit version, the 64bit package if you are running the Ubuntu 64bit version): iscan_2.
Still further down there is the manual below the heading 'installation method': userg_revN_e.pdf
When following the the user guide always select the instructions for Debian packages, not those for RPM.
Revision history for this message
|
#6 |
Hi Manfred,
I have downloaded three iscan packages and manual. Xsane still says `no devices available`
Please advise. William
Revision history for this message
|
#7 |
Have you followed all instructions in the manual?
What is the output of the following commands:
sane-find-scanner
dpkg -l | grep sane
dpkg -l | grep iscan
Please open a terminal (ctrl-alt-t) and issue these commands. one by one. When done select all text (edit - select all), copy it (edit - copy) and paste into a new message of this question thread.
Revision history for this message
|
#8 |
Hi Manfred,
Looked at manual but uncertain about commands shown prefaced by hash.
Result your commands follows. The last one does not look sensible William
william@
# 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, product=0x085c) at libusb:001: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.
# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
william@
ii libsane 1.0.20-13ubuntu2 API library for scanners
ii sane-utils 1.0.20-13ubuntu2 API library for scanners -- utilities
ii xsane 0.996-2ubuntu3 featureful graphical frontend for SANE (Scan
ii xsane-common 0.996-2ubuntu3 featureful graphical frontend for SANE (Scan
william@
william@
Revision history for this message
|
#9 |
Ubuntu uses a different approach to grant administrative privileges to a user than most of the other Unix versions.
Whenever you see a command in the manual preceded by a # sign you should execute the command with sudo.
e.g. when you see
# dpkg -i iscan_xxx.deb
you should execute the command
sudo dpkg -i iscan_xxx.deb
I hope that is the hint you need.
Revision history for this message
|
#10 |
Hi Manfred,
I tried the install command as per manual but it does not work- see below.
William
william@
[sudo] password for william:
dpkg: error processing iscan-data_-.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
iscan-data_-.deb
william@
dpkg: error processing iscan_-.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
iscan_-.deb
william@
Revision history for this message
|
#11 |
In the command you have to replace $ver, $rel and $arch with the correct values for the current version (the real file name of the file that you have dowloaded).
e.g.
sudo dpkg --install iscan-data_
Revision history for this message
|
#12 |
Hi Manfred,
Yes I realised this after I sent-apologies.
I managed to install with Gdebi installer but installing iscan data first! Then using terminal with sudo iscan to open the program If I try to open from accessories I get error--could not send command to scanner. I can now at least scan documents using Image scan.
However Simple scan gives error--Unable to connect to scanner
and Xscan gives error-- failed to open device
Please advise,
William
Revision history for this message
|
#13 |
Have you changed the permission on the scanner device as shown on page 9 of the manual?
Does sane-find-scanner detect the scanner?
Revision history for this message
|
#14 |
Hi Manfred,
I get following using find scanner. I am unsure what to do next.Please advise.
William
william@
[sudo] password for william:
# 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=0x085c [EPSON Epson Stylus SX125 Series]) at libusb:001:003
# 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.
william@
-
Revision history for this message
|
#15 |
ok, your scanner is there, and sane is able to find it and correctly identifies it as Epson SX125.
What is the output of
ls -l /proc/bus/
You might have to change the file protection settings on the device with the command
sudo chmod 0666 /proc/bus/
(see the "Image Scan!" User's Guide, page 9 [note: due to pages with roman numbers at the begin, page 9 is the 13th page in the pdf document])
Revision history for this message
|
#16 |
Hi Manfred,
Tried those commands no sucess, see below.William
william@
ls: cannot access /proc/bus/
william@
[sudo] password for william:
ls: cannot access /proc/bus/
william@
chmod: cannot access `/proc/
william@
ls: cannot access /proc/bus/
william@
-
Revision history for this message
|
#17 |
Seems that the Epson manual describes the things different from how Ubuntu does it.
Just to check, execute the following commands and post the output:
sudo sane-find-scanner
ls -laR /proc/bus/usb
Revision history for this message
|
#18 |
Hi Manfred,
Same result.William-see below
william@
[sudo] password for william:
# 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=0x085c [EPSON Epson Stylus SX125 Series]) at libusb:001: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.
william@
ls: cannot access /proc/bus/usb: No such file or directory
william@
Revision history for this message
|
#19 |
Apparently on Ubuntu there is no /proc/bus/usb but /dev/bus/usb
sudo sane-find-scanner
ls -laR /dev/bus/usb
grep -i epson /etc/udev/
Revision history for this message
|
#20 |
Hi Manfred,
Looks hopeful ?? See below.William
william@
[sudo] password for william:
# 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=0x085c [EPSON Epson Stylus SX125 Series]) at libusb:001: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.
william@
/dev/bus/usb:
total 0
drwxr-xr-x 3 root root 60 2011-08-02 20:45 .
drwxr-xr-x 3 root root 60 2011-08-02 20:45 ..
drwxr-xr-x 2 root root 80 2011-08-17 09:39 001
/dev/bus/usb/001:
total 0
drwxr-xr-x 2 root root 80 2011-08-17 09:39 .
drwxr-xr-x 3 root root 60 2011-08-02 20:45 ..
crw-rw-r-- 1 root root 189, 0 2011-08-17 15:01 001
crw-rw-r--+ 1 root root 189, 3 2011-08-17 15:01 004
william@
grep: /etc/udev/
grep: /etc/udev/
william@
grep: /etc/udev/
grep: /etc/udev/
william@
Revision history for this message
|
#21 |
issue the command
sudo chmod 0666 /dev/bus/
and then try using the scanner with Simple scan and Xscan again.
Revision history for this message
|
#22 |
and try (sorry for the error in filenames):
grep -i epson /lib/udev/
Revision history for this message
|
#23 |
Hi Manfred,
Simple scan Xscan and Image scan now work Many thanks Latest output see below. Will they all still work after power down or restart?
William
william@
grep: /lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
/lib/udev/
william@
[sudo] password for william:
william@
Revision history for this message
|
#24 |
Glad to hear that the scanner now is working (at least temporarily).
After a reboot, or after unplugging and re-plugging the scanner it will most probably not work again as it should, because the device by default gets created with too strict access rights.
As far as I know creating an entry in /lib/udev/
Please check the entries for the other Epson scanners in the libsane.rules file, if there is already an entry with the hex codes 04b8 and 085c.
If not, create one similar to the existing ones, must most probably look like:
# Epson SX125
SYSFS{idVendor}
(Editing has to be done with a command like "gksudo gedit ...")
Hopefully that cares for everything.
Revision history for this message
|
#25 |
sorry, the text to enter most probably is wrong,
# Epson SX125
ATTRS{idVendor}
Revision history for this message
|
#26 |
Hi manfred,
I entered "gksudo gedit "on the terminal and got the result below
Is this OK? Please explain.
William
william@
[sudo] password for william:
william@
william@
ATTRS{idVendor}
william@
Revision history for this message
|
#27 |
Sorry, this was a misunderstanding.
you have to do:
gksudo gedit /lib/udev/
and put the these two lines into that document if they do not exist (preferably just below the entries for the other Epson printers/scanners)
# Epson SX125
ATTRS{idVendor}
(These lines are the text that you have to put into the libsane.rules document, not commands to execute.)
Revision history for this message
|
#28 |
Hi Manfred,
Edited the file.
Restarted scanner and simple scan still works!
Many thanks for your help,
William
Revision history for this message
|
#29 |
The crucial point will be if the scanner is still working as it should after the next reboot of the computer.
If you then again get error messages (unable to connect etc.), a workaround should be to do "sudo sane-find-scanner", and to issue "sudo chmod 0666 /dev/bus/usb/<first id>/<second id>" replacing <first id> and <second id> with the two numbers displayed by sane-find-scanner after in the line "at libusb:<first id>:<second id>"
Revision history for this message
|
#30 |
thanks Manfred Hampl your tips helped solving same problem!!
the key in all this is:
installing the iscan data first then the core package
let me sum up this:
1- go to: http://
get and install:
* iscan-data_
* iscan_2.
2-in Terminal:
gksudo gedit /lib/udev/
Add:
# Epson SX125
ATTRS{idVendor}
to the libsane.rules document
3-you have to check which usb the printer is plugged to:
sudo sane-find-scanner
4- now set pemission: say usb is...... libusb:001:002
sudo chmod 0666 /dev/bus/
reboot
Revision history for this message
|
#31 |
Hi Manfred,
Just to confirm the 3 scanner programs are still working as they should
after the reboot of the computer or turning off the scanner.
Many thanks again for your advice,
William.
Revision history for this message
|
#32 |
Happy to hear that finally the scanner is doing what it is supposed to.
If you do not have any further issue related to this question, please mark
that question as solved.
Revision history for this message
|
#33 |
I found this exchange between William and Manfred very helpful indeed in getting my Epson Perfection V200 recognised by Xsane and SimpleScan - my thanks to both. I'd been trying to get the scanner working for some time on my new system.
I followed Manfred's instructions step-by-step until his "Have you changed the permission on the scanner device as shown on page 9 of the manual? Does sane-find-scanner detect the scanner?", when my scanner suddenly came to life! I rebooted and both Xsane and SimplScan can now locate my V200. Hope it continues to work whenever i open my system.
For reference, I use the distro SolusOS Eveline 1.1 on a machine I put together myself, using an Intel Core i3 proc.
Can you help with this problem?
Provide an answer of your own, or ask William Pritchard for more information if necessary.