Love gscan2pd, been using it for years. I think I edited a file some years back. Recently, rather than doing a dist. upgrade, I completely blew away my machine and loaded Ubuntu Mate LTS. So everything was worfking until now.
Using Ubuntu Mate 16.04 with latest gscan2pdf v1.7.2 with HP Scanjet 5550c. Flatbed scan is fine, but selecting (ADF) causes either the X coordinate or Y coordinate to exceed the maximum value. X-Sane can scan using the ADF option. I blew away the .gscan2pdf file in my home folder prior to the libsane-Perl scan in case old values were messing it up.
Exceeds is mis-spelled in the error message, by the way.
Attached find scans I did with both libsane-Perl and scanadf.
Thanks for a great project!
It looks to me as though this is at least partly a problem with the backend. When ADF is selected, the height is defaulting to an invalid height. The "exceedes" is the error message created by the backend, which gscan2pdf is simply passing on.
Please try the following:
If you only have one device, you can remove the --device-name option. Otherwise you might have to adjust the USB ID.
Repeating the above with debugging turned on might give more information:
The problem when setting the frontend to libsane-perl seems to be that you are trying to scan US_LEGAL, which the scanner does not support (by 0.4mm - gscan2pdf accepts this, using a tolerance of 1mm). Please edit your US_LEGAL paper size to be 355mm high and try the libsane-perl frontend again.
Assuming the above libsane-perl workaround is successful, I'll add some code to make sure that the scan area is not exceeded.
Thanks for the quick response -- you ROCK!
Sorry for the n00b question, but where do I edit my US_LEGAL paper size?
After I posted, I did take a look at your source, didn'r realize this app was so small given the amount of usefulness you provide! It's been year's since I've done any Perl programming, but at least the find on my editor works! I searched for the error and didn't find it; so I figured it was the backend. I just didn't see a way to edit my post.
You called it:
herb@mako:~$ scanimage --device-name='hp5590:libusb:002:023' --source='ADF' -x 216 --resolution='200' -y 279 --batch
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
[hp5590] Top X (0) + pixels X (1700) exceedes max X 1699
scanimage: sane_start: Invalid argument
The SANE debug info: (But I'm not sure what I'm looking for. This line about 17th from the bottom is obviously the same error as above, but I don't notice anything else of value.
scanimage: sane_start: Invalid argument
herb@mako:~$ SANE_DEBUG_HP5590=50 scanimage --device-name='hp5590:libusb:002:023' --source='ADF' -x 216 --resolution='200' -y 279 --batch
[sanei_debug] Setting debug level of hp5590 to 50.
[hp5590] SANE backed for HP ScanJet 4500C/4570C/5500C/5550C/5590/7650 1.0.7
[hp5590] (c) Ilia Sotnikov hostcc@gmail.com
[hp5590] attach_usb_device: Opening USB device
[hp5590] attach_usb_device: USB device opened
[hp5590] hp5590_init_scanner
[hp5590] hp5590_cmd: USB-in-USB: command : 0012
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0012, last command: 0012, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] HP4500C/5550C flags (0x02)
[hp5590] HP4500C/5550C flags: ADF yes, TMA no, LCD no
[hp5590] HP4500C/5550C firmware version: 0.054
[hp5590] HP4500C/5550C max resolution X: 2400 DPI
[hp5590] HP4500C/5550C max resolution Y: 2400 DPI
[hp5590] HP4500C/5550C max pixels X: 20400
[hp5590] HP4500C/5550C max pixels Y: 28128
[hp5590] HP4500C/5550C max size X: 8.500 inches
[hp5590] HP4500C/5550C max size Y: 11.720 inches
[hp5590] HP4500C/5550C normal motor param: 100, max motor param: 1000
[hp5590] hp5590_get_status
[hp5590] hp5590_init_scanner: scanner status OK
[hp5590] attach_usb_device: found HP4500C/5550C scanner at 'libusb:002:023'
[hp5590] attach_usb_device: Reading max scan count
[hp5590] hp5590_read_max_scan_count
[hp5590] Reading max scan count
[hp5590] hp5590_read_eeprom
[hp5590] Reading EEPROM: addr 0010, size 3
[hp5590] hp5590_cmd: USB-in-USB: command : 00f2
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f2, last command: 00f2, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_cmd: USB-in-USB: command : 0bf0
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f0, last command: 00f0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Max scan count 921347
[hp5590] attach_usb_device: Max Scanning count 921347
[hp5590] attach_usb_device: Reading scan count
[hp5590] hp5590_read_scan_count
[hp5590] Reading scan count
[hp5590] hp5590_read_eeprom
[hp5590] Reading EEPROM: addr 0000, size 4
[hp5590] hp5590_cmd: USB-in-USB: command : 00f2
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f2, last command: 00f2, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_cmd: USB-in-USB: command : 0bf0
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f0, last command: 00f0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Scan count 11908
[hp5590] attach_usb_device: Scanning count 11908
[hp5590] hp5590_read_part_number
[hp5590] hp5590_read_eeprom
[hp5590] Reading EEPROM: addr 001a, size 10
[hp5590] hp5590_cmd: USB-in-USB: command : 00f2
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f2, last command: 00f2, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_cmd: USB-in-USB: command : 0bf0
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00f0, last command: 00f0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Part number: 'N3CQS722C1'
[hp5590] hp5590_stop_scan
[hp5590] hp5590_cmd: USB-in-USB: command : 011b
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 001b, last command: 001b, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] sane_hp5590_open: device name: libusb:002:023
[hp5590] sane_hp5590_get_option_descriptor, option: 0
[hp5590] sane_hp5590_control_option: get total number of options - 11
[hp5590] sane_hp5590_get_option_descriptor, option: 0
[hp5590] sane_hp5590_control_option: get total number of options - 11
[hp5590] sane_hp5590_get_option_descriptor, option: 1
[hp5590] sane_hp5590_get_option_descriptor, option: 2
[hp5590] sane_hp5590_get_option_descriptor, option: 3
[hp5590] sane_hp5590_get_option_descriptor, option: 4
[hp5590] sane_hp5590_get_option_descriptor, option: 5
[hp5590] sane_hp5590_get_option_descriptor, option: 6
[hp5590] sane_hp5590_get_option_descriptor, option: 7
[hp5590] sane_hp5590_get_option_descriptor, option: 8
[hp5590] sane_hp5590_get_option_descriptor, option: 9
[hp5590] sane_hp5590_get_option_descriptor, option: 10
[hp5590] sane_hp5590_control_option: get option 'br-x' value
[hp5590] sane_hp5590_control_option: get option 'tl-x' value
[hp5590] sane_hp5590_control_option: get option 'br-y' value
[hp5590] sane_hp5590_control_option: get option 'tl-y' value
[hp5590] sane_hp5590_get_option_descriptor, option: 6
[hp5590] sane_hp5590_get_option_descriptor, option: 6
[hp5590] sane_hp5590_get_option_descriptor, option: 0
[hp5590] sane_hp5590_control_option: get total number of options - 11
[hp5590] sane_hp5590_get_option_descriptor, option: 1
[hp5590] sane_hp5590_get_option_descriptor, option: 2
[hp5590] sane_hp5590_get_option_descriptor, option: 3
[hp5590] sane_hp5590_get_option_descriptor, option: 4
[hp5590] sane_hp5590_get_option_descriptor, option: 5
[hp5590] sane_hp5590_get_option_descriptor, option: 6
[hp5590] sane_hp5590_get_option_descriptor, option: 7
[hp5590] sane_hp5590_get_option_descriptor, option: 8
[hp5590] sane_hp5590_get_option_descriptor, option: 9
[hp5590] sane_hp5590_get_option_descriptor, option: 10
[hp5590] sane_hp5590_control_option: get option 'br-x' value
[hp5590] sane_hp5590_control_option: get option 'tl-x' value
[hp5590] sane_hp5590_control_option: get option 'br-y' value
[hp5590] sane_hp5590_control_option: get option 'tl-y' value
[hp5590] sane_hp5590_get_option_descriptor, option: 7
[hp5590] sane_hp5590_get_option_descriptor, option: 7
[hp5590] sane_hp5590_control_option: get option 'tl-x' value
[hp5590] sane_hp5590_get_option_descriptor, option: 3
[hp5590] sane_hp5590_control_option: get option 'tl-y' value
[hp5590] sane_hp5590_get_option_descriptor, option: 4
Scanning -1 pages, incrementing by 1, numbering from 1
Scanning page 1
[hp5590] sane_hp5590_start
[hp5590] sane_hp5590_cancel
[hp5590] hp5590_low_free_bulk_read_state
[hp5590] hp5590_stop_scan
[hp5590] hp5590_cmd: USB-in-USB: command : 011b
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 001b, last command: 001b, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Init scanner
[hp5590] hp5590_init_scanner
[hp5590] hp5590_cmd: USB-in-USB: command : 0012
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0012, last command: 0012, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_get_status
[hp5590] hp5590_init_scanner: scanner status OK
[hp5590] hp5590_power_status
[hp5590] hp5590_cmd: USB-in-USB: command : 0024
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0024, last command: 0024, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Power status: on (02)
[hp5590] Wakeup
[hp5590] hp5590_select_source_and_wakeup
[hp5590] hp5590_turnon_lamp
[hp5590] hp5590_turnon_lamp: setting turnoff time
[hp5590] hp5590_cmd: USB-in-USB: command : 00c0
[hp5590] hp5590_control_msg: USB-in-USB: core data: yes
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00c0, last command: 00c0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Scan source: 3
[hp5590] hp5590_cmd: USB-in-USB: command : 00d6
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 02d6, last command: 00d6, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_set_scan_params
[hp5590] hp5590_lock_unlock_scanner
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0200, last command: 0000, core status: 0002
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] Waiting for scanner...
[hp5590] hp5590_read_error_code
[hp5590] hp5590_cmd: USB-in-USB: command : 0003
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_read_error_code: adf_flags: 0001
[hp5590] hp5590_read_error_code: unk1 : 000b
[hp5590] hp5590_read_error_code: unk2 : 0080
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0000, last command: 0000, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] calc_base_dpi
[hp5590] Set base DPI: 300
[hp5590] hp5590_set_base_dpi
[hp5590] hp5590_cmd: USB-in-USB: command : 0015
[hp5590] hp5590_control_msg: USB-in-USB: core data: yes
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0015, last command: 0015, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_set_color_map
[hp5590] hp5590_cmd: USB-in-USB: command : 0240
[hp5590] hp5590_control_msg: USB-in-USB: core data: yes
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0040, last command: 0040, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_set_scan_area
[hp5590] Scan params. source : 0x0014
[hp5590] DPI: 200
[hp5590] calc_base_dpi
[hp5590] Base DPI: 300
[hp5590] calc_scanner_dpi
[hp5590] Scanner DPI: 200
[hp5590] DPI X: 0x00c8
[hp5590] DPI Y: 0x00c8
[hp5590] hp5590_calc_pixel_bits
[hp5590] calc_scanner_dpi
[hp5590] Pixel bits: 1
[hp5590] Top X: 0, top Y: 0, size X: 1700, size Y: 2196
[hp5590] Scanner top X: 0, top Y: 0, size X: 2550, size Y: 3294
[hp5590] Top X (0) + pixels X (1700) exceedes max X 1699
[hp5590] hp5590_lock_unlock_scanner
[hp5590] hp5590_cmd: USB-in-USB: command : 0000
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0000, last command: 0000, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_reset_scan_head
[hp5590] hp5590_turnon_lamp
[hp5590] hp5590_turnon_lamp: turning lamp off
[hp5590] hp5590_cmd: USB-in-USB: command : 00c0
[hp5590] hp5590_control_msg: USB-in-USB: core data: yes
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00c0, last command: 00c0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_turnon_lamp
[hp5590] hp5590_turnon_lamp: turning lamp on
[hp5590] hp5590_cmd: USB-in-USB: command : 00c0
[hp5590] hp5590_control_msg: USB-in-USB: core data: yes
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 00c0, last command: 00c0, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_init_scanner
[hp5590] hp5590_cmd: USB-in-USB: command : 0012
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 0012, last command: 0012, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] hp5590_get_status
[hp5590] hp5590_init_scanner: scanner status OK
scanimage: sane_start: Invalid argument
[hp5590] sane_hp5590_cancel
[hp5590] hp5590_low_free_bulk_read_state
[hp5590] hp5590_stop_scan
[hp5590] hp5590_cmd: USB-in-USB: command : 011b
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_control_msg: USB-in-USB: getting response
[hp5590] hp5590_control_msg: USB-in-USB: got correct response
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification requested
[hp5590] hp5590_control_msg: USB-in-USB: core data: no
[hp5590] hp5590_control_msg: USB-in-USB: sending control msg
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verification 001b, last command: 001b, core status: 0000
[hp5590] hp5590_verify_last_cmd: USB-in-USB: command verified successfully
[hp5590] sane_hp5590_close
[hp5590] sane_hp5590_exit
You also pointed out something I noticed later playing around with xsane -- I had it set to Legal. I went ahead and logged with debug another session with gscan2pdf with the US Letter setting. ** This also causes an error so while I'm editing I'll also have to set the Letter value. What value do you suggest?**
Thanks again for your help.
If you change "Paper size" to "Edit", then a dialog pops up with which you can edit/add/remove the paper sizes.
I'm surprised, however, that US_LETTER didn't work with the ADF. Please create a dummy page size - maybe 10x10 and increase it until it doesn't work.
Please report the problems with scanimage and your backend to the SANE mailing list at https://lists.alioth.debian.org/mailman/listinfo/sane-devel. If you include the above two scanimage calls and their output, then you should get some response.