SANE driver returns empty list of valid scan resolutions for LaserJet M1522nf MFP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
After updating to hplip-3.12.2 running hp-scan results in
Using device hpaio:/
Opening connection to device...
warning: Invalid resolution. Using closest valid resolution of 300 dpi
warning: Valid resolutions are dpi.
Traceback (most recent call last):
File "/usr/bin/hp-scan", line 636, in <module>
res = valid_res[0]
IndexError: list index out of range
For full traceback see
https:/
Seems that the SANE driver returns empty list of valid resolutions for the
printer. If I compare 3.12.2 with 3.11.12 I see that
previously there were some resolutions hard-wired in the code.
diff -r hplip-3.
516,525c517
< i=1;
< session-
< session-
< session-
< session-
< session-
< session-
< //session-
< session-
< soapht_
SANE_ACTION_
---
> soapht_
SANE_ACTION_
It's possible that the problem (SANE returning empty list of scan resolutions for the printer)
had always been there but the above mentioned change uncovered it.
For the original report from Sam Tuke see
https:/
Hi,
Go to your hplip extracted folder (e.g. ~/Downloads/ hplip-3. 12.2). Please replace this file in your extracted folder ~/Downloads/ hplip-3. 12.2/scan/ sane.
Run the followings :
$ cd ~/Downloads/ hplip-3. 12.2
$ make
$ sudo make install
Close hp-systray if running. Then run 'hp-scan' or 'xsane' to do scanning. Let me know if you are facing any issue.