This looks like the typical Linux USB problem, try using a sane-backends git snapshot. http://www.sane-project.org/snapshots/
allan On Tue, Apr 5, 2016 at 7:58 AM, Thorben Schröder <i...@thorbenschroeder.de> wrote: > Hey! I've a question regarding the epsonds backend. I'm trying to get my > scanner working with the latest 1.0.25 release of sane-backends. I got it to > a point where it now finds the scanner once when using > > scanimage -L > > but after that it doesn't find the scanner ever again until I unplug and > plug it back again (USB). > > Here is the debugging output of the scanimage -L command I've used > (https://gist.github.com/walski/7117f69c9e70b1733c6b14c928050ada): > > # First Run: > >> sudo SANE_DEBUG_EPSONDS=128 scanimage -L >> [sanei_debug] Setting debug level of epsonds to 128. >> [epsonds] sane_epsonds_init: sane-backends 1.0.25 >> [epsonds] epsonds backend, version 1.0.35 >> [epsonds] ** sane_epsonds_get_devices >> [epsonds] probe_devices >> [epsonds] attach_one_config: len = 15, line = usb 0x4b8 0x150 >> [epsonds] user configured device >> [epsonds] attach_one_usb: dev = libusb:001:006 >> [epsonds] attach: devname = libusb:001:006, type = 1 >> [epsonds] device_detect >> [epsonds] open_scanner: libusb:001:006 >> [epsonds] opened correctly >> [epsonds] eds_lock >> [epsonds] eds_control: size = 2 >> [epsonds] eds_send: size = 2 >> [epsonds] eds_send: FS X >> [epsonds] eds_recv: size = 1, buf = 0x7eacc1ff >> [epsonds] = gathering device information >> [epsonds] esci2_cmd: INFOx0000000 len 12, payload len: 0 >> [epsonds] eds_send: size = 12 >> [epsonds] eds_recv: size = 64, buf = 0x7eacc1b0 >> [epsonds] info_cb: nrd / NONE / 4 >> [epsonds] eds_recv: size = 256, buf = 0x1e69ce8 >> [epsonds] info_cb: ADF / TYPEFEED / 8 >> [epsonds] ADF: sheet feed type >> [epsonds] info_cb: ADF / DPLX1SCN / 8 >> [epsonds] ADF: duplex single pass >> [epsonds] info_cb: ADF / FORDPF1N / 8 >> [epsonds] ADF: order is 1 to N >> [epsonds] info_cb: ADF / ALGNCNTR / 8 >> [epsonds] ADF: center aligned >> [epsonds] info_cb: ADF / AREAi0000850i0001400 / 20 >> [epsonds] ADF: area 850x1400 @ 100dpi >> [epsonds] info_cb: ADF / AMINi0000200i0000205 / 20 >> [epsonds] ADF: min 200x205 @ 100dpi >> [epsonds] info_cb: ADF / AMAXi0000850i0003600 / 20 >> [epsonds] ADF: max 850x3600 @ 100dpi >> [epsonds] eds_set_adf_area: 0.000000,0.000000 215.899994,914.399994 100 >> [mm] >> [epsonds] info_cb: ADF / RESOi0000600 / 12 >> [epsonds] ADF: basic resolution is 600 dpi >> [epsonds] info_cb: ADF / RCVR / 4 >> [epsonds] ADF: auto recovery >> [epsonds] info_cb: ADF / OVSNd000d039 / 12 >> [epsonds] ADF: overscan 0x39 @ 100dpi >> [epsonds] info_cb: IMX / x000FFFFx000FFFF / 16 >> [epsonds] info_cb: PRD / h008DS-560 / 12 >> [epsonds] product: DS-560 >> [epsonds] info_cb: VER / h010IPL 1.00ADF 1.05 / 20 >> [epsonds] version: IPL 1.00ADF 1.05 >> [epsonds] info_cb: DSZ / i0001536 / 8 >> [epsonds] info_cb: DLS / / 0 >> [epsonds] info_cb: S/N / h00AU6NZ019428 / 14 >> [epsonds] serial: U6NZ019428 >> [epsonds] esci2_cmd: CAPAx0000000 len 12, payload len: 0 >> [epsonds] eds_send: size = 12 >> [epsonds] eds_recv: size = 64, buf = 0x7eacc1c0 >> [epsonds] capa_cb: nrd / NONE / 4 >> [epsonds] eds_recv: size = 228, buf = 0x1e69ce8 >> [epsonds] capa_cb: ADF / DPLX / 4 >> [epsonds] ADF: duplex >> [epsonds] capa_cb: ADF / DFL1DFL2 / 8 >> [epsonds] ADF: double feed detection (high sensitivity) >> [epsonds] capa_cb: ADF / EJCT / 4 >> [epsonds] ADF: paper eject >> [epsonds] capa_cb: ADF / OVSN / 4 >> [epsonds] ADF: overscan >> [epsonds] capa_cb: COL / LISTC024M001M008R001R008G001G008B001B008 / 40 >> [epsonds] capa_cb: FMT / LISTJPG / 8 >> [epsonds] capa_cb: JPG / RANGd001d100 / 12 >> [epsonds] capa_cb: THR / RANGd000d255 / 12 >> [epsonds] capa_cb: GMM / LISTUG10UG18 / 12 >> [epsonds] capa_cb: GMT / LISTRED GRN BLU MONO / 20 >> [epsonds] capa_cb: CMX / LISTUNITUM08 / 12 >> [epsonds] capa_cb: RSM / LISTi0000300i0000600 / 20 >> [epsonds] eds_add_resolution: add (dpi): 300 >> [epsonds] eds_add_resolution: add (dpi): 600 >> [epsonds] capa_cb: RSS / LISTi0000300i000060 / 19 >> [epsonds] esci2_cmd: RESAx0000000 len 12, payload len: 0 >> [epsonds] eds_send: size = 12 >> [epsonds] eds_recv: size = 64, buf = 0x7eacc1c0 >> [epsonds] resa_cb: nrd / NONE / 4 >> [epsonds] resa_cb: par / OK / 4 >> [epsonds] eds_recv: size = 1184, buf = 0x1e69ce8 >> [epsonds] resa_cb: ADF / / 0 >> [epsonds] resa_cb: COL / M001 / 4 >> [epsonds] resa_cb: FMT / JPG / 4 >> [epsonds] resa_cb: JPG / d090 / 4 >> [epsonds] resa_cb: THR / d128 / 4 >> [epsonds] resa_cb: GMM / UG10 / 4 >> [epsonds] resa_cb: $%& / >> '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????BLU >> h100 / 225 >> [epsonds] resa_cb: $%& / >> '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????MONOh100 >> / 225 >> [epsonds] resa_cb: $%& / >> '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? >> / 217 >> [epsonds] resa_cb: CMX / UNIT / 4 >> [epsonds] resa_cb: BSZ / i0065536 / 8 >> [epsonds] resa_cb: PAG / d000 / 4 >> [epsonds] resa_cb: RSM / d300 / 4 >> [epsonds] resa_cb: RSS / d300 / 4 >> [epsonds] resa_cb: ACQ / i0000000i0000000i0002550i000420 / 31 >> [epsonds] eds_add_depth: add (bpp): 1 >> [epsonds] eds_add_depth: add (bpp): 8 >> [epsonds] eds_dev_post_init >> [epsonds] scanner model: DS-560 >> [epsonds] close_scanner: fd = 0 >> [epsonds] unlocking scanner >> [epsonds] esci2_fin >> [epsonds] esci2_cmd: FIN x0000000 len 12, payload len: 0 >> [epsonds] eds_send: size = 12 >> [epsonds] eds_recv: size = 64, buf = 0x7eacc1c8 >> [epsonds] close_scanner: ZZZ >> [epsonds] sane_epsonds_get_devices - results: >> [epsonds] 0 (1): DS-560 >> device `epsonds:libusb:001:006' is a Epson DS-560 ESC/I-2 >> [epsonds] ** sane_epsonds_exit > > > > # Subsequent runs > >> sudo SANE_DEBUG_EPSONDS=128 scanimage -L >> [sanei_debug] Setting debug level of epsonds to 128. >> [epsonds] sane_epsonds_init: sane-backends 1.0.25 >> [epsonds] epsonds backend, version 1.0.35 >> [epsonds] ** sane_epsonds_get_devices >> [epsonds] probe_devices >> [epsonds] attach_one_config: len = 15, line = usb 0x4b8 0x150 >> [epsonds] user configured device >> [epsonds] attach_one_usb: dev = libusb:001:006 >> [epsonds] attach: devname = libusb:001:006, type = 1 >> [epsonds] device_detect >> [epsonds] open_scanner: libusb:001:006 >> [epsonds] opened correctly >> [epsonds] eds_lock >> [epsonds] eds_control: size = 2 >> [epsonds] eds_send: size = 2 >> [epsonds] eds_send: FS X >> [epsonds] eds_recv: size = 1, buf = 0x7ec591ff >> [epsonds] eds_recv: expected = 1, got = 0, canceling: 0 >> [epsonds] eds_txrx: rx err, Error during device I/O >> [epsonds] eds_control: failed, Error during device I/O >> [epsonds] failed >> [epsonds] close_scanner: fd = 0 >> [epsonds] close_scanner: ZZZ >> [epsonds] sane_epsonds_get_devices - results: >> >> No scanners were identified. If you were expecting something different, >> check that the scanner is plugged in, turned on and detected by the >> sane-find-scanner tool (if appropriate). Please read the documentation >> which came with this software (README, FAQ, manpages). >> [epsonds] ** sane_epsonds_exit > > > > The problem seems to appear somewhere around line 17 of the second run when > it seems to send some command to the scanner but receives an unexpected > result :/ > > Any idea on how to proceed to make this work again? > > Thanks so much, > > Thorben > > -- > sane-devel mailing list: sane-devel@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-requ...@lists.alioth.debian.org -- "well, I stand up next to a mountain- and I chop it down with the edge of my hand" -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org