scan.py assumes printer has 'Flatbed' source. Printer only has 'Auto' and 'ADF'

Bug #1280438 reported by comtek_it
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

scan.py from hplip-3.14.1 sets our HP 2840 to ADF mode, even when ADF is not specified.

This seems to be due to the line:

   if 'Flatbed' not in source_option and 'ADF' in source_option:

Reverting to:

   if len(source_option) == 1 and 'ADF' in source_option:

fixes it (although of course we get an error 'error: Unable to set option source to value Flatbed' when doing non-ADF scans.

The printers in question only have "Auto" and "ADF" in source_option.

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

Please do the following steps.

- Open /usr/share/hplip/data/models/models.dat file in root mode.
- Search for [hp_color_laserjet_2840] section. Change scan-src=1 to scan-src=3.
- Save the file.
- Now run hp-scan or xsane.

Please inform us your result.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Same story with a 3390, scan-src=3 didn't help.

hp-scan[17290]: debug: Supported source Options: ['Auto', 'ADF'] size=2
hp-scan[17290]: debug: Device has only ADF support

comtek_it's patch looks reasonable to me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.