Jump to content
Compatible Support Forums
Sign in to follow this  
Whiskers

Epson 4180 Photo Scanner, "can not connect" using libusb w/ epkowa backend

Recommended Posts

I've been tryign to get my scanner working for 3 days straight now. I've been using for about 2 months now so I'm pretty good at following documention.

 

As per the documention that I've found around the net, these seem to be the important files.

 

Included in my /etc/sand.d/dll

is "epkowa"

 

In my epkowa.conf

--------------------------

/etc/sand.d/epkowa.conf

 

# epkowa.conf

#

# examples for how to configure the SANE EPSON KOWA Backend

#

# SCSI scanner:

# scsi EPSON

#

# Parallel port scanner:

#pio 0x278

#pio 0x378

#pio 0x3BC

#

# USB scanner - only enable this if you have an EPSON scanner. It could

# otherwise block your non-EPSON scanner from being

# recognized.

#usb /dev/usb/scanner0

usb 0x04b8 0x0118

 

--------------------------------------

I've used this page and followed the instructions

 

EPSON scanner with libusb and hotplugging

 

http://www.freecolormanagement.com/sane/libusb.html

 

Scanner is not known by the backend

 

If you just go the latest and greates scanner from EPSON, chances are that I've not yet added it's product ID to the backend. This means that you have to tell the backend what vendor/product IDs to look for. This is done by usign the standard Sane syntax for libusb support: "usb " - you have to replace the and strings with the data from your scanner. The new Perfection 3200 for example would use this command in epson.conf: "usb 0x4b8 0x11c".

 

Have tried this, however the backend is epkowa , have tried using this with epson.conf, but it ended up showing 2 scanners, , 1 epson, 1 epkowa, , I have had more luck with epkowa (the programs would actually open with epkowa, so i have been using epkowa instead of epson)

 

Getting the permissing right

 

did this

 

epson_scanner 0x0003 0x04b8 0x0118 0x0000 0x0000

0x00 0x00 0x00 0x00 0x00

0x00 0x00000000

 

 

pasted in the script to a text document with the name epson_scanner (as the documentation instructs)

 

 

#!/bin/bash

 

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]

then

chown root "${DEVICE}"

chgrp scanner "${DEVICE}"

chmod 660 "${DEVICE}"

fi

 

Which becomes

 

#!/bin/bash

 

if [ "${ACTION}" = "add" ] && [ -f "${usb 0x04b8 0x0118}" ]

then

chown root "${usb 0x04b8 0x0118}"

chgrp scanner "${usb 0x04b8 0x0118}"

chmod 660 "${usb 0x04b8 0x0118}"

fi

 

next did

 

This script assumes that your computer knows about a group named "scanner", add this to the file /etc/group, give it a unique group id (the number after the password entry). It looks like this:

 

scanner:x:102:root,khk

 

 

I did this, 102 was taken so i gave it 108

 

scanner:x:108:root,khk:

 

Documenttation forgot the : <---------- i added this to mine after notices that everything iin the /etc/group file ended with :

 

Normal user can do iscan or xsane or ximagescan, however each program produces errors relating too, "cannot connect to the device"

 

I have even tried it as root, still no work, everythign seems right as far as permissions

 

 

My device is detected though in sane-find-scanner

 

found USB scanner (vendor=0x04b8 [EPSON], product=0x0118 [EPSON Scanner]) at libusb:003:002

 

As well as scanimage -- list

 

finds my scanner epkowa:libusb:003:002

 

I have read all sort of docuention on this, the freecolour site, as well as the SANE site.

 

What am I doing wrong, missing, etc?

Share this post


Link to post
Quote:
/etc/sand.d/epkowa.conf

# epkowa.conf
#
# examples for how to configure the SANE EPSON KOWA Backend
#
# SCSI scanner:
# scsi EPSON
#
# Parallel port scanner:
#pio 0x278
#pio 0x378
#pio 0x3BC
#
# USB scanner - only enable this if you have an EPSON scanner. It could
# otherwise block your non-EPSON scanner from being
# recognized.
#usb /dev/usb/scanner0
usb 0x04b8 0x0118


What happens if you uncomment;

usb /dev/usb/scanner0

Share this post


Link to post

khk is a user name? I wasnt aware of that, I will replace the khk with my user name. I don't understand the script but i know enough that its not malicios in nature. I will fix the script then reply again with the results.

Share this post


Link to post

[rob@Oneniisama rob]$ id -a

uid=501(rob) gid=501(rob) groups=501(rob)

 

 

[root@Oneniisama rob]# id -a

uid=0(root) gid=0(root) groups=0(root),108(scanner)

Share this post


Link to post

ok I have removed the : from the etc/groups file now, mebbe that was wrong to put it in, i check back and some other lines dont end in :

 

scanner :108:root,rob

 

as such the id -a has changed

 

[rob@Oneniisama rob]$ id -a

uid=501(rob) gid=501(rob) groups=501(rob),108(scanner)

 

[root@Oneniisama rob]# id -a

uid=0(root) gid=0(root) groups=0(root),108(scanner)

 

I still however get the cannot connect to scanner error.

 

Are libusb and epkowa supposed to work together or are they one or the other type of things?

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×