[sane-devel] sane + ubuntu 14.04 + Epson perfection 3170

Guillaume Courtois guigui at gugux.net
Sat Nov 15 11:44:36 UTC 2014


Hi Pierre,

Seems like we know each other :-) It's a small world after all !

Did you try the GIT version to see if it corrects your problem ? Feel 
free to send me a mail (in French of course) if you need help on that.

Bye.

Le 13/11/2014 00:43, Pierre LINDENBAUM a écrit :
> Hi sane-devels,
> 
> 
> 
> I hope it's the right place to ask my question (it's cross-posted
> here:
> http://askubuntu.com/questions/548639/14-04-running-a-epson-scanner-perfection-3170
> & http://ubuntuforums.org/showthread.php?t=2252458 )
> 
> I used to scan with an Epson perfection 3170 + sane +iscan on linux 
> 12.*
> 
> 
> Since I've switched to ubuntu 14.04 , it doesn't work anymore.
> 
> Here are a few outputs (sometimes I need to run as root to make things 
> work)
> 
> $ sudo sane-find-scanner  | grep -i epson
> found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON
> Scanner]) at libusb:002:003
> 
> 
> ## BTW there is a strange binary char after Epson:
> 
> $ sudo scanimage -L
> device `epson:libusb:002:003' is a Epson �   flatbed scanner
> 
> 
> $ tail /etc/sane.d/epson.conf
> usb 0x04b8 0x0116
> 
> 
> $ sudo sane-find-scanner  | grep -i epson
> found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON
> Scanner]) at libusb:002:003
> 
> head /etc/udev/rules.d/50-libsane-extras.rules
> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="04b8",
> SYSFS{idProduct}=="0116", MODE="0666", GROUP="scanner"
> 
> 
> $ groups lindenb
> lindenb : lindenb adm dialout cdrom plugdev lpadmin admin saned
> sambashare scanner
> 
> 
> $ ls -la /dev/bus/usb/002/
> total 0
> drwxr-xr-x 2 root root       80 Nov 12 20:46 .
> drwxr-xr-x 9 root root      180 Nov 12 20:46 ..
> crw-rw-r-- 1 root root 189, 128 Nov 13 00:02 001
> crw-rw-rw- 1 root root 189, 129 Nov 13 00:18 002
> 
> 
> iscan: (could not send command to scanner)
> 
> sudo iscan: (could not send command to scanner)
> 
> and here is the iscan trace:
> 
> SANE_DEBUG_EPSON=255  iscan
> [sanei_debug] Setting debug level of epson to 255.
> [epson] sane_init: sane-backends 1.0.23
> [epson] sane_init, ># epson.conf<
> [epson] sane_init, >#<
> [epson] sane_init, ># here are some examples for how to configure the
> EPSON backend<
> [epson] sane_init, >#<
> [epson] sane_init, ># SCSI scanner:<
> [epson] sane_init, >scsi EPSON<
> [epson] sane_init, ># for the GT-6500:<
> [epson] sane_init, >scsi "EPSON SC"<
> [epson] sane_init, >#<
> [epson] sane_init, ># Parallel port scanner:<
> [epson] sane_init, >#pio 0x278<
> [epson] sane_init, >#pio 0x378<
> [epson] sane_init, >#pio 0x3BC<
> [epson] sane_init, >#<
> [epson] sane_init, ># USB scanner:<
> [epson] sane_init, ># There are two different methods of configuring a
> USB scanner: libusb and the kernel module<
> [epson] sane_init, ># For any system with libusb support (which is
> pretty much any recent Linux distribution) the<
> [epson] sane_init, ># following line is sufficient. This however
> assumes that the connected scanner (or to be more<
> [epson] sane_init, ># accurate, it's device ID) is known to the 
> backend.<
> [epson] sane_init, >usb<
> [epson] attach_one_usb()
> [epson] SANE Epson Backend v0.2.47 - 2006-08-21
> [epson] attach(, 3)
> [epson] attach: opening
> [epson] sane_init, ># For libusb support for unknown scanners use the
> following command<
> [epson] sane_init, ># usb <product ID> <device ID><
> [epson] sane_init, ># e.g.:<
> [epson] sane_init, ># usb 0x4b8 0x110<
> [epson] sane_init, ># And for the scanner module, use the following
> configuration:<
> [epson] sane_init, >#usb /dev/usbscanner0<
> [epson] sane_init, >#usb /dev/usb/scanner0<
> [epson] sane_init, >usb 0x04b8 0x0116<
> [epson] attach_one_usb(libusb:002:002)
> [epson] SANE Epson Backend v0.2.47 - 2006-08-21
> [epson] attach(libusb:002:002, 3)
> [epson] attach: opening libusb:002:002
> [epson] Found valid EPSON scanner: 0x4b8/0x116 (vendorID/productID)
> [epson] reset()
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 40 @
> [epson] w_cmd_count = 1
> [epson] r_cmd_count = 0
> [epson] w_cmd_count = 1
> [epson] r_cmd_count = 1
> [epson] receive buf, expected = 1, got = 1
> [epson] buf[0] 15 .
> [epson] get_identity_information()
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 49 I
> [epson] w_cmd_count = 2
> [epson] r_cmd_count = 1
> [epson] w_cmd_count = 2
> [epson] r_cmd_count = 2
> [epson] receive buf, expected = 4, got = 1
> [epson] buf[0] 15 .
> [epson] code   15
> [epson] type     0x01
> [epson] level    0x00
> [epson] no option equipment installed
> [epson] Unknown type  or level , using B3
> [epson] fbf tlx 0.000000 tly 0.000000 brx 0.000000 bry 0.000000 [mm]
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 44 D
> [epson] w_cmd_count = 3
> [epson] r_cmd_count = 2
> [epson] w_cmd_count = 3
> [epson] r_cmd_count = 3
> [epson] receive buf, expected = 1, got = 1
> [epson] buf[0] 15 .
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 44 D
> [epson] w_cmd_count = 4
> [epson] r_cmd_count = 3
> [epson] w_cmd_count = 4
> [epson] r_cmd_count = 4
> [epson] receive buf, expected = 1, got = 1
> [epson] buf[0] 15 .
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 44 D
> [epson] w_cmd_count = 5
> [epson] r_cmd_count = 4
> [epson] w_cmd_count = 5
> [epson] r_cmd_count = 5
> [epson] receive buf, expected = 1, got = 1
> [epson] buf[0] 15 .
> [epson] Max. supported color depth = 8
> [epson] request_focus_position()
> [epson] Disabling 'Set Focus' support
> [epson] send buf, size = 2
> [epson] buf[0] 1b .
> [epson] buf[1] 66 f
> [epson] w_cmd_count = 6
> [epson] r_cmd_count = 5
> [epson] w_cmd_count = 6
> [epson] r_cmd_count = 6
> [epson] receive buf, expected = 4, got = 1
> [epson] buf[0] 15 .
> [epson] code   15
> [epson] scanner model:
> [epson] close_scanner(fd = 0)
> [epson] w_cmd_count = 6
> [epson] r_cmd_count = 6
> [epson] w_cmd_count = 6
> [epson] r_cmd_count = 6
> [epson] sane_get_devices()
> (end)
> 
> with some other DEBUG FLAGS the trace ends with :
> 
> 
> (...)
> [sanei_usb] sanei_usb_init: found 1 devices
> [sanei_usb] sanei_usb_init: device 00 is libusb:002:002
> [dll] init: backend `ls5000' is version 1.0.0
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b0, product=0x4002
> [dll] load: searching backend `hpaio' in
> `/usr/lib/i386-linux-gnu/sane:/usr/lib/sane'
> [dll] load: trying to load 
> `/usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1'
> [dll] load: couldn't open
> `/usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1' (No such file or
> directory)
> [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
> [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
> [dll] init: initializing backend `hpaio'
> [dll] init: backend `hpaio' is version 1.0.0
> [dll] sane_get_devices: found 1 devices
> 
> 
> any idea how to run my scanner under ubuntu 14.04 ?
> 
> thanks,
> 
> Pierre



More information about the sane-devel mailing list