The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Scanning - specifically the EPSON XP-212

Joined: 04 Jan 2014, 03:19
Posts: 34
I bought this EPSON XP-212 printer/scanner with the idea to power it off an inverter.

It works fine as a printer (including over wifi) but as a scanner I had to download driver from the EPSON web site, use teh USB connection, then Simple Scan didnt find it. I downloaded xsane instead, and that worked if I ran it as root

sudo xsane &

So I went to the Ubuntu forum https://help.ubuntu.com/community/Setti ... ermissions

and tried one of the solutions that was listed as dangerous:adding this to
/etc/udev/rules.d/40-scanner-permissions.rule

# usb scanner
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE:="0666"
SUBSYSTEM=="usb_device",MODE:="0666"

Well it works over USB. Is this ok as a solution or should I try to do something with groups and permissions? Also it still doesn't work over wifi as a scanner.

A little more detail on my blog http://billlions.blogspot.co.uk/2014/08 ... er-on.html


Top
   
 
 Post subject: Re: Scanning - specifically the EPSON XP-212
Site Admin

Joined: 20 Mar 2012, 13:32
Posts: 116
Have you tried the other (non-shotgun) solution suggested in the Ubuntu doc page you linkked to (i.e. editing /lib/udev/rules.d/40-libsane.rules)? Not sure if this would fix the wifi problem but seems easy enough to give it a try. You can get the required vendor and product id by connecting your (powered on) scanner to a usb port and then typing
Code:
dmesg | tail
into a terminal.

For me (using a different Epson scanner) this will produce:
Code:
[  607.200746] usb 2-1.2: new high-speed USB device number 5 using ehci-pci
[  607.299512] usb 2-1.2: New USB device found, idVendor=04b8, idProduct=0848
[  607.299524] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  607.299531] usb 2-1.2: Product: USB2.0 MFP(Hi-Speed)
[  607.299536] usb 2-1.2: Manufacturer: EPSON
[  607.299541] usb 2-1.2: SerialNumber: 4B504A593032303035
[  607.307670] usblp 2-1.2:1.1: usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0848
The second line shows the two ids.

Otherwise it seems you'd be OK with the permissions override approach on a single user system.


Top
   
 
 Post subject: Re: Scanning - specifically the EPSON XP-212

Joined: 04 Jan 2014, 03:19
Posts: 34
Markus wrote:
Have you tried the other (non-shotgun) solution suggested in the Ubuntu doc page you linkked to (i.e. editing /lib/udev/rules.d/40-libsane.rules)? Not sure if this would fix the wifi problem but seems easy enough to give it a try. You can get the required vendor and product id by connecting your (powered on) scanner to a ....


Yes, it didn't work. I was confused though that there did n't already seem to be a scanner or saned groups, I created them but I thought there must be another step so sane knows about that group?


Top
   
 
 Post subject: Re: Scanning - specifically the EPSON XP-212
Site Admin

Joined: 20 Mar 2012, 13:32
Posts: 116
I probably only have what the Germans call "dangerous half-knowledge" but here is what I think (just ignore if this is all old news to you - you may be way ahead of me on this...):
    * In Unix more or less everything is treated as a file - including your scanner.
    * You need read permission for the file that represents your scanner. The owner of that file will likely be 'root' but you can get read access by being/becomiing a member of the group associated with this file.

To find out which file represents you scanner plug it into a USB port and run
Code:
ls -l /dev/usb
. For me that yields one enrty that looks like this:
Code:
crw-rw---- 1 root lp 180, 0 Sep  1 08:35 lp0
So in this case I need to belong to group 'lp' to have read access to the scanner.

So if you add your user to whatever your system shows as the group with read access for the scanner's device file the whole thing *should* work?


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Search for:

Credits © 2010 - 2024