[sane-devel] Perfection 610: cannot scan in color

2013-01-10 Thread Evil Mr Henry
The -y 297.18 (not --br-y) command works. Thanks for your help.

On 01/08/2013 11:19 PM, Olaf Meeuwissen wrote:
 Evil Mr Henry writes:

 Basically, scanimage -v -d epson2:libusb:003:005 --format png 
 outfile.png works, but scanimage -v --mode color -d
 epson2:libusb:003:005 --format png  outfile.png throws the classic
 invalid argument

 Shouldn't that be --mode Color, with a capital C?

 (It is, in fact, an Epson Perfection 610 USB scanner.)

 This is a new computer; the scanner worked on my old computer in much
 the same setup.

 What version of sane backends and which backend did you use there?

 Running Mint (Ubuntu) 64bit, Sane 1.0.22-7ubuntu1

 The following is the output after setting export SANE_DEBUG_EPSON2=255:

 scanimage -v --mode color -d epson2:libusb:003:005 --format png 
 outfile.png

 I've gone through the log and it's clear from that that this is a bug in
 the epson2 backend.  It fails to take into account the line distance
 when computing the maximum scan area, leading to a maximum that is too
 big.  You can work around the issue by using --br-y 297.18 (i.e. 11.7
 inches).

 Hope this helps,




[sane-devel] Perfection 610: cannot scan in color

2013-01-10 Thread Evil Mr Henry
Also, for anyone else with this problem, this works in XSane when I set 
the scan size to DIN A4 port.

On 01/08/2013 11:19 PM, Olaf Meeuwissen wrote:
 Evil Mr Henry writes:

 Basically, scanimage -v -d epson2:libusb:003:005 --format png 
 outfile.png works, but scanimage -v --mode color -d
 epson2:libusb:003:005 --format png  outfile.png throws the classic
 invalid argument

 Shouldn't that be --mode Color, with a capital C?

 (It is, in fact, an Epson Perfection 610 USB scanner.)

 This is a new computer; the scanner worked on my old computer in much
 the same setup.

 What version of sane backends and which backend did you use there?

 Running Mint (Ubuntu) 64bit, Sane 1.0.22-7ubuntu1

 The following is the output after setting export SANE_DEBUG_EPSON2=255:

 scanimage -v --mode color -d epson2:libusb:003:005 --format png 
 outfile.png

 I've gone through the log and it's clear from that that this is a bug in
 the epson2 backend.  It fails to take into account the line distance
 when computing the maximum scan area, leading to a maximum that is too
 big.  You can work around the issue by using --br-y 297.18 (i.e. 11.7
 inches).

 Hope this helps,




[sane-devel] Perfection 610: cannot scan in color

2013-01-03 Thread Evil Mr Henry
Basically, scanimage -v -d epson2:libusb:003:005 --format png  
outfile.png works, but scanimage -v --mode color -d 
epson2:libusb:003:005 --format png  outfile.png throws the classic 
invalid argument

(It is, in fact, an Epson Perfection 610 USB scanner.)

This is a new computer; the scanner worked on my old computer in much 
the same setup.

Running Mint (Ubuntu) 64bit, Sane 1.0.22-7ubuntu1

The following is the output after setting export SANE_DEBUG_EPSON2=255:

scanimage -v --mode color -d epson2:libusb:003:005 --format png  
outfile.png
[sanei_debug] Setting debug level of epson2 to 255.
[epson2] sane_epson2_init: sane-backends 1.0.22
[epson2] epson2 backend, version 1.0.124
[epson2] sane_epson2_open: name = libusb:003:005
[epson2] e2_dev_init
[epson2] open_scanner: libusb:003:005
[epson2] scanner opened
[epson2] found valid Epson scanner: 0x4b8/0x103 (vendorID/productID)
[epson2] e2_set_model: model is 'generic'
[epson2] esci_reset
[epson2] e2_cmd_simple: size = 2
[epson2] e2_send: size = 2, reply = 1
[epson2] e2_send: ESC @
[epson2] buf[0] 1b .
[epson2] buf[1] 40 @
[epson2] e2_send: cmd count, r = 0, w = 1
[epson2] e2_recv: size = 1, buf = 0x7fffd8a8144f
[epson2] e2_recv: cmd count, r = 1, w = 1
[epson2] buf[0] 06 .
[epson2] e2_discover_capabilities
[epson2] esci_request_identity
[epson2] e2_cmd_info_block, params len = 2, reply len = 0, buf = 
0x7fffd8a813d8
[epson2] e2_send: size = 2, reply = 0
[epson2] e2_send: ESC I
[epson2] buf[0] 1b .
[epson2] buf[1] 49 I
[epson2] e2_send: cmd count, r = 1, w = 2
[epson2] e2_recv: size = 4, buf = 0x7fffd8a81300
[epson2] e2_recv: cmd count, r = 2, w = 2
[epson2] buf[0] 02 .
[epson2] buf[1] 00 .
[epson2] buf[2] 13 .
[epson2] buf[3] 00 .
[epson2] e2_recv_info_block: payload length: 19
[epson2] e2_recv: size = 19, buf = 0x1ca1fc0
[epson2] e2_recv: cmd count, r = 3, w = 2
[epson2] buf[0] 44 D
[epson2] buf[1] 31 1
[epson2] buf[2] 52 R
[epson2] buf[3] 4b K
[epson2] buf[4] 00 .
[epson2] buf[5] 52 R
[epson2] buf[6] 96 .
[epson2] buf[7] 00 .
[epson2] buf[8] 52 R
[epson2] buf[9] 2c ,
[epson2] buf[10] 01 .
[epson2] buf[11] 52 R
[epson2] buf[12] 58 X
[epson2] buf[13] 02 .
[epson2] buf[14] 41 A
[epson2] buf[15] ec .
[epson2] buf[16] 13 .
[epson2] buf[17] 7c |
[epson2] buf[18] 1b .
[epson2] e2_set_cmd_level: D1
[epson2] e2_add_resolution: add (dpi): 75
[epson2] e2_add_resolution: add (dpi): 150
[epson2] e2_add_resolution: add (dpi): 300
[epson2] e2_add_resolution: add (dpi): 600
[epson2] maximum scan area: 5100x7036
[epson2] e2_set_fbf_area: 0.00,0.00 215.84,297.857330 600 [mm]
[epson2] esci_request_status
[epson2] e2_send: size = 2, reply = 4
[epson2] e2_send: ESC F
[epson2] buf[0] 1b .
[epson2] buf[1] 46 F
[epson2] e2_send: cmd count, r = 3, w = 3
[epson2] e2_recv: size = 4, buf = 0x7fffd8a81340
[epson2] e2_recv: cmd count, r = 4, w = 3
[epson2] buf[0] 02 .
[epson2] buf[1] 00 .
[epson2] buf[2] 00 .
[epson2] buf[3] 00 .
[epson2] status: 00
[epson2]  ready
[epson2]  no option equipment installed
[epson2]  does NOT support extended commands
[epson2] detection with request_extended_status
[epson2] esci_request_extended_status
[epson2] e2_cmd_info_block, params len = 2, reply len = 42, buf = 
0x7fffd8a81380
[epson2] e2_send: size = 2, reply = 46
[epson2] e2_send: ESC f
[epson2] buf[0] 1b .
[epson2] buf[1] 66 f
[epson2] e2_send: cmd count, r = 4, w = 4
[epson2] e2_recv: size = 4, buf = 0x7fffd8a812e0
[epson2] e2_recv: cmd count, r = 5, w = 4
[epson2] buf[0] 02 .
[epson2] buf[1] 00 .
[epson2] buf[2] 2a *
[epson2] buf[3] 00 .
[epson2] e2_recv_info_block: payload length: 42
[epson2] e2_recv: size = 42, buf = 0x1ca2000
[epson2] e2_recv: cmd count, r = 6, w = 4
[epson2] buf[0] 01 .
[epson2] buf[1] 00 .
[epson2] buf[2] 00 .
[epson2] buf[3] 00 .
[epson2] buf[4] 00 .
[epson2] buf[5] 00 .
[epson2] buf[6] 00 .
[epson2] buf[7] 00 .
[epson2] buf[8] 00 .
[epson2] buf[9] 00 .
[epson2] buf[10] 00 .
[epson2] buf[11] 00 .
[epson2] buf[12] 00 .
[epson2] buf[13] 00 .
[epson2] buf[14] 00 .
[epson2] buf[15] 00 .
[epson2] buf[16] 00 .
[epson2] buf[17] 00 .
[epson2] buf[18] 00 .
[epson2] buf[19] 00 .
[epson2] buf[20] 00 .
[epson2] buf[21] 00 .
[epson2] buf[22] 00 .
[epson2] buf[23] 00 .
[epson2] buf[24] 00 .
[epson2] buf[25] 00 .
[epson2] buf[26] 50 P
[epson2] buf[27] 65 e
[epson2] buf[28] 72 r
[epson2] buf[29] 66 f
[epson2] buf[30] 65 e
[epson2] buf[31] 63 c
[epson2] buf[32] 74 t
[epson2] buf[33] 69 i
[epson2] buf[34] 6f o
[epson2] buf[35] 6e n
[epson2] buf[36] 36 6
[epson2] buf[37] 31 1
[epson2] buf[38] 30 0
[epson2] buf[39] 20
[epson2] buf[40] 20
[epson2] buf[41] 20
[epson2] main = 01, ADF = 00, TPU = 00, main 2 = 00
[epson2] e2_set_model: model is 'Perfection610'
[epson2] push button detected
[epson2] no command available to detect capabilities
[epson2] esci_request_identity2
[epson2] e2_cmd_info_block, params len = 2, reply len = 0, buf = 
0x7fffd8a813d8
[epson2] e2_send: size = 2, reply = 0
[epson2] e2_send: ESC i
[epson2] buf[0] 1b .
[epson2] buf[1] 69 i
[epson2] e2_send: cmd