Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[howto] - Epson Stylus CX3200/3600 Scanners
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Apr 26, 2005 8:01 pm    Post subject: [howto] - Epson Stylus CX3200/3600 Scanners Reply with quote

EDITED 25-nov-2005: Beware that this method does not work for some weird reason with the 2.6.14.x releases of the kernel. I saw the other day (before updating the kernel) a thread somewhere where people talked about usblp conflicting with the scanner in this same device. Maybe this is the same issue, maybe it is not. While I investigate a bit further, if anyone is having problems just use a 2.6.12.x release of the kernel. All should work ok with that branch.

EDITED again 04-dic-2005: seems that the bug was in sane backends. Sane-backends-1.0.16-r4 has been patched to avoid this odd behaviour, so now there is no problem with the 2.6.14 series of the kernel.


I bought an Epson CX3650 combo device and have been playing this evening with it. I took me a little work to make it fully work the scanner (the printer works out of the box with gimp-print drivers).

Note for mods:
Anyone, as always feel free to move this topic to any other place it fits better than this... I really don't know if this is the right place. :roll:


I put this here for future refference and in case anyone find the same problem. There are many topics out there, but I did not find one that fully worked for me, so I put my solution here.

Begin...

I'm assuming a 2.6 kernel and kooka installed. Anyway this should work the same with xsane, since both of them are based on sane-backends and libusb. These two packages should be installed along with hotplug, they are dependencies (direct dependencies) for xsane and kooka, so there should be no trouble at all. :wink:

After this preliminary test you must make sure that your usb support is working, the best way to do this is to try first the printer, and I will not put that info here, since there are zillions of topics about that, for more info www.linuxprinting.org

I your printer is working, then the scanner is also, and the only issues here are about permissions, sane-backends and hotplug. Three categories only. If your printer is not working look elsewhere.

We do lsusb, and we see:
Code:

[ i92guboj ]=[ 6thpink ]=[ bg : 0 ]=--    gimp-2.0.4    --=[ 04/26/05 21:25:08 ]
[ ~ ]-[127]: su -c 'lsusb'
Password:
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 04b8:080e Seiko Epson Corp.
Bus 001 Device 001: ID 0000:0000


That's our little friend.

From now on make sure that hotplug is running, you can check with 'rc-update show' and do '/etc/init.d/hotplug start' if not. You may also want to make sure that it will run in future sessions by doing 'rc-update add hotplug default', or whatever your default runlevel' name is.

Well, now let's see if the permissions are right... Surely they are not.

Code:

[ i92guboj ]=[ 6thpink ]=[ bg : 0 ]=--    gimp-2.0.4    --=[ 04/26/05 21:25:16 ]
[ ~ ]-[0]: ls -l /proc/bus/usb/001
total 0
-rw-r--r--  1 root root    43 abr 26 21:11 001
-rw-r-----  1 root root    73 abr 26 21:12 002


Of course you have to be sure that 001 is the right port, if not look with ls into 002, 003, etc...

Well, seeing this we can say that surely, the root user can see the scanner from kooka or xsane. Try as root, if you see the scanner then we found our problem.

Now we need to modify some files from hotplug, libusb and sane configurations.

First we'll see the id and verdor numbers for our scanner:

Code:

[ i92guboj ]=[ 6thpink ]=[ bg : 0 ]=--    gimp-2.0.4    --=[ 04/26/05 21:28:12 ]
[ ~ ]-[0]: sane-find-scanner

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

found USB scanner (vendor=0x04b8 [EPSON], product=0x080e [USB MFP]) at libusb:001:003


We take note and now edit the relevant files, as root user, of course.

/etc/sane.d/epson.conf:
Code:

# SCSI scanner:
#scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner:
# There are two different methods of configuring a USB scanner: libusb and the $
# For any system with libusb support (which is pretty much any recent Linux dis$
# following line is sufficient. This however assumes that the connected scanner$
# accurate, it's device ID) is known to the backend.
usb
# For libusb support for unknown scanners use the following command
# usb <product ID> <device ID>
# e.g.:
usb 0x04b8 0x080e
# And for the scanner module, use the following configuration:
usb /dev/usbscanner0
usb /dev/usb/scanner0


We comment all the lines related to parallel port and scsi scanners, and, as the instructions on the file tells to us, we write down the numbers we saw in the previous step. We also need to uncomment the relevant lines, although I don't know if really there all are needed :wink:

/etc/hotplug/usb/libsane.usermap
Code:

# Sample entry (replace 0xVVVV and 0xPPPP with vendor ID and product ID respect.......
libusbscanner 0x0003 0x04b8 0x080e 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x........


Seeking the instructions in the beginning of the file we change the second and third numbers on that line to outs. In the example are mine, the rest of the numbers on that line remains untouched.

/etc/hotplug/usb/libusbscanner
Code:

if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
  chown root:scanner "$DEVICE"
  chmod 0660 "$DEVICE"
fi


I had not to change this file, but, if you find a different permissions settings in that code change them to '066'.

Last step...
Add all the relevant users to the 'scanner' groub and restart hotplug (don't know if needed, but it does not hurt) with '/etc/init.d/hotplug restart'.
Shut off the device, now if you repeat the 'ls' you will get one less device.

Code:

[ i92guboj ]=[ 6thpink ]=[ bg : 0 ]=--    gimp-2.0.4    --=[ 04/26/05 21:25:16 ]
[ ~ ]-[0]: ls -l /proc/bus/usb/001
total 0
-rw-r--r--  1 root root    43 abr 26 21:11 001


Now turn on and if you did well you will see:

Code:

[ i92guboj ]=[ 6thpink ]=[ bg : 0 ]=--    gimp-2.0.4    --=[ 04/26/05 21:25:16 ]
[ ~ ]-[0]: ls -l /proc/bus/usb/001
total 0
-rw-r--r--  1 root root    43 abr 26 21:11 001
-rw-rw----  1 root scanner 73 abr 26 21:12 003


A new device has been plugged and now the permissions are OK and the group is scanner. All the user in that groub should now be able to use that device correctlly from any sane based program, like kooka or xsane.

Suggestions, corrections, kicks and beers are all wellcome. 8)

[edit]: Few minutes after, some typos fixed. :roll:


Last edited by i92guboj on Sun Dec 04, 2005 9:46 pm; edited 2 times in total
Back to top
View user's profile Send private message
^jimmy^
n00b
n00b


Joined: 11 Jul 2004
Posts: 51
Location: Erlangen, Germany

PostPosted: Tue Jul 12, 2005 11:29 am    Post subject: I just copied your howto to gentoo-wiki.com Reply with quote

Hi,

I copied your howto to gentoo-wiki.com so that others can find it easier.

I read your howto and I bought an EPSON CX3650.

The printer works perfectly well, and now the scanner works also perfectly well. I had a problem when I connected the CX3650 over a NEC USB HUB, the printer was working perfectly but the scanner was not being detected, by sane-find-scanner, at all. Then after trying everything else, it just occured to me that maybe the HUB was making the troubles. So I connected it directly. After this, the scanner was detected and works perfectly well!

Thanks a lot for this HOWTO, I'm so happy now with my EPSON CX3650 running completely on Linux, I don't need Windows any more, for absoloutly nothing.

Not even for scanning!

Jimmy
Back to top
View user's profile Send private message
nunopedrosilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2004
Posts: 132
Location: Corroios, Portugal

PostPosted: Sun Nov 20, 2005 12:44 am    Post subject: Reply with quote

I get this error:

Quote:

shortnet nuno # sane-find-scanner

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

found USB scanner (vendor=0x04b8 [EPSON], product=0x0802 [USB MFP]) at libusb:003:007
# 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.


if i do this with a normal user:

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

# No USB scanners found. If you expected something different, make sure that
# you have loaded a driver for your USB host controller and have installed a
# kernel scanner module.

# 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.


and if i run xsane it can't find any scanner...

here's my proc/bus....
Quote:
shortnet nuno # ls -l /proc/bus/usb/003
total 0
-rw-rw---- 1 root root 43 Nov 20 00:27 001
-rw-rw---- 1 root scanner 73 Nov 20 00:40 007
shortnet nuno # sane-find-scanner


here's my dmesg:

Quote:

usb 3-1: new full speed USB device using uhci_hcd and address 7
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 7 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0802
usb 3-1: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1



any help is welcome!

thanks
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Nov 20, 2005 1:45 am    Post subject: Reply with quote

It has been long since I wrote this :lol:
Code:
shortnet nuno # ls -l /proc/bus/usb/003
total 0
-rw-rw---- 1 root root 43 Nov 20 00:27 001
-rw-rw---- 1 root scanner 73 Nov 20 00:40 007
shortnet nuno # sane-find-scanner

This means that the rw permissions are set only for the users in group "scanners". Are you sure your user is included into this group? You can check your user's group info with the command "groups".

Alternatively you can make it available to all users, in the step where you change the file libusbscanner (look above). Just change the line that says:
Code:

  chown root:scanner "$DEVICE"

to
Code:

  chown root:users "$DEVICE"

or any other group that you like better. ;)

Btw, does xsane detect your scanner as root? sane-find-scanner seems to perfectly idenfy it, and the hotplug scripts set if fine, so there should be no problem in the configuration. I think that it is a user problem. ;)
Back to top
View user's profile Send private message
Fmangeant
n00b
n00b


Joined: 13 Apr 2002
Posts: 30
Location: France

PostPosted: Tue Dec 20, 2005 8:28 am    Post subject: Reply with quote

Hi

thanks for this nice howto, it works perfectly with a CX3650 and kooka on a 2.6.14.2 vanilla kernel.

Since sane-backends 1.0.17, a lot of Epson scanners have been added :
Code:
$ grep "# Epson Corp.|Stylus CX" /etc/hotplug/usb/libsane.usermap
# Epson Corp.|Stylus CX5200
# Epson Corp.|Stylus CX3200
# Epson Corp.|Stylus CX6400
# Epson Corp.|Stylus CX5400
# Epson Corp.|Stylus CX4500/CX4600
# Epson Corp.|Stylus CX3500/CX3600/CX3650 (PX-A550)
# Epson Corp.|Stylus CX6600
# Epson Corp.|Stylus CX4200

_________________
Shuttle SB51G - P4B 2.4 GHz - 1 Go DDR400 - 160 Go Hitachi - NEC 3520 - nVidia FX5200
Back to top
View user's profile Send private message
Fyllemisstaget
n00b
n00b


Joined: 03 Sep 2005
Posts: 28

PostPosted: Thu Nov 02, 2006 8:04 pm    Post subject: Reply with quote

My printer doesn't work out of the box =(
I have a Epson STylus CX3200... when I try to print from Openoffice nothing happends
Back to top
View user's profile Send private message
Fyllemisstaget
n00b
n00b


Joined: 03 Sep 2005
Posts: 28

PostPosted: Thu Nov 02, 2006 10:56 pm    Post subject: Reply with quote

Sorry..It did work :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum