Henrik Lundberg <hen...@chamalulu.com> writes: > Hello,
Hi, > I am trying to get an Epson Perfection 1640SU to work under Debian Etch. > I'm using udev and the device file shows up as it should, and the epson > and epkowa backends detects the scanner: That's what I use as my primary development environment but I haven't used the 1640 in ages. > $ scanimage -L > device `epson:libusb:002:002' is a Epson Perfection1640 flatbed scanner > device `epkowa:libusb:002:002' is a Epson Perfection 1640 flatbed > scanner > > However, when trying a default scan it fails: > > $ SANE_DEBUG_EPSON=128 scanimage -d epson 2> testscan.err > P4 > # SANE data follows > 424 585 Have you tried with the epkowa backend? Did that work? > testscan.err is attached. > In the error output i see a couple of lines reading '[epson] option: > fatal error'. Hmm, right from the beginning the scanner indicates a fatal error. This keeps going on during all of the setup of the scanner. Then when you start getting ready for a scan it disappears (status 12) only to reappear when the backend initiates the scan (status b2, which also indicates there's no more image data to be expected). > [epson] Found valid EPSON scanner: 0x4b8/0x10a (vendorID/productID) > [epson] reset() > [epson] send buf, size = 2 > [epson] buf[0] 1b . > [epson] buf[1] 40 @ > [epson] receive buf, expected = 1, got = 1 > [epson] buf[0] 06 . > [epson] get_identity_information() > [epson] send buf, size = 2 > [epson] buf[0] 1b . > [epson] buf[1] 49 I > [epson] receive buf, expected = 4, got = 4 > [epson] buf[0] 02 . > [epson] buf[1] 92 . > [epson] buf[2] 6a j > [epson] buf[3] 00 . > [epson] code 02 > [epson] status 92 <--- fatal error flag is set > [epson] count 106 > {snip} > [epson] SANE_START: Color: 0 > [epson] SANE_START: Resolution (x, y): (50, 50) > [epson] SANE_START: Scan area(pixels) (x0, y0), (x1, y1): (0, 0), (424, 585) > [epson] SANE_START: Data format: 1 > [epson] SANE_START: Halftone: 0 > [epson] SANE_START: Brightness: 0 > [epson] SANE_START: Gamma: 1 > [epson] SANE_START: Zoom (x, y): (100, 100) > [epson] SANE_START: Color correction: 128 > [epson] SANE_START: Sharpness control: 0 > [epson] SANE_START: Scanning mode: 0 > [epson] SANE_START: Mirroring: 0 > [epson] SANE_START: Auto area segmentation: 1 > [epson] SANE_START: Threshold: 128 > [epson] SANE_START: Line counter: 255 > [epson] SANE_START: Option unit control: 0 > [epson] SANE_START: Film type: 0 > [epson] send buf, size = 2 > [epson] buf[0] 1b . > [epson] buf[1] 47 G > [epson] sane_get_parameters() > [epson] Returning saved params structure > [epson] Restoring parameters from saved parameters > [epson] Preview = 0 > [epson] Resolution = 50 > [epson] get para 0x51dc80 0x51e750 tlx 0.000000 tly 0.000000 brx 215.899994 > bry 297.179993 [mm] > [epson] params.format = 0 > [epson] params.last_frame = 1 > [epson] params.bytes_per_line = 53 > [epson] params.pixels_per_line = 424 > [epson] params.lines = 585 > [epson] params.depth = 1 > [epson] sane_read: begin > [epson] sane_read: begin scan1 > [epson] receive buf, expected = 6, got = 6 > [epson] buf[0] 02 . > [epson] buf[1] b2 . > [epson] buf[2] 00 . > [epson] buf[3] 00 . > [epson] buf[4] 00 . > [epson] buf[5] 00 . > [epson] fatal error - Status = b2 > Packages libsane and sane-utils are of version 1.0.18-3 and scanimage -V > reports 1.0.18 as well. > > I hope that you may have an idea of what's wrong. Unfortunately, I don't. However, the fact that the backend gets a fatal error immediately after it has re-initialised the device might indicate there is something wrong with the device. Maybe the lock is on? Does it work on that other OS (assuming you have access so you can check)? Hope this helps, -- Olaf Meeuwissen EPSON AVASYS Corporation, SE1 FSF Associate Member #1962 sign up at http://member.fsf.org/ GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90 Penguin's lib! -- I hack, therefore I am -- LPIC-2