cannot disable JPEG compression when scanning (Deskjet 3520 All-in-one)

Bug #1245578 reported by Znerole on 2013-10-28
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Ani Balakrishnan
hplip (Ubuntu)
High
Unassigned
Trusty
High
Unassigned
Utopic
High
Unassigned

Bug Description

I've already filed a "question" (https://answers.launchpad.net/hplip/+question/238002), but I came to the conclusion it's indeed a bug.

I have a Deskjet 3520 All-in-one and no matter what I do, scans always arrive with JPEG artifacts. For example, with hp-scan, when I disable compression, I get the following error message:

"error: Unable to set option compression to value None"

When running XSane, in the advanced settings menu, I get JPEG as only compression option. Manually setting the compression to "none" in the drc file has no positive effect either. In any case, scans arrive with severe JPEG artifacts.

Used hplip version is 3.13.10 on Kubuntu 13.10. I've attached the output of hp-check.

Znerole (lorenz-witte) wrote :
description: updated
Znerole (lorenz-witte) wrote :

Obviously, RAW scanning is completely disabled on purpose. In ledm.c I found the following in function set_scan_mode_side_effects:

   switch (scanMode)
   {
      case CE_K1: /* same as GRAY8 */
      case CE_GRAY8:
      case CE_COLOR8:
      default:
// ps->compressionList[j] = STR_COMPRESSION_NONE;
// ps->compressionMap[j++] = SF_RAW;
         ps->compressionList[j] = STR_COMPRESSION_JPEG;
         ps->compressionMap[j++] = SF_JPEG;
         ps->currentCompression = SF_JPEG;
         ps->option[LEDM_OPTION_JPEG_QUALITY].cap |= SANE_CAP_SOFT_SELECT; /* enable jpeg quality */
         break;
   }

Obviously, anything other than JPEG is disallowed. Enabling these two lines lets me select compression "none" without problems, but I still get the JPEG artifacts.

Znerole (lorenz-witte) wrote :

This seems to be a duplicate to https://bugs.launchpad.net/hplip/+bug/1099322 and https://bugs.launchpad.net/hplip/+bug/1206292.

Actually, I think this issue is pretty bad as it will make me return my hardware.

Znerole (lorenz-witte) wrote :

Btw, if this is SW fixable, I'm willing to help, but I need some pointers what to do.

Maarten Deprez (deprez-maarten) wrote :

Hi, i succeeded to enable raw scanning on my HP Deskjet 4615 with this patch. The solution seems to be pretty generic, but there might be good (as opposed to "good") reasons it is disabled by default. Maybe it gives unexpected results with some hardware. Also, it gets a bit "quick and dirty" in the function that calculates line sizes (i had to disable the "given" values in favour of the "guessed" (and more correct) ones), but at least it works fine for me.

The attachment "hplip-raw-scanning.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Luboš Doležel (lubos-dolezel) wrote :

Maarten's patch wasn't working for me, but I've debugged the code and figured out the remaining issues. A patch is attached.

Luboš Doležel (lubos-dolezel) wrote :

Sorry for spamming, but my previous patch was still guesswork and worked only with a single resolution.

This new patch now uses values from scanner responses and seems to be fully functional. Enjoy.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed

To the HPLIP developers at HP: This seems to be an upstream bug, can you apply the suggested patch (comment #8) to the upstream code? Thanks.

Changed in hplip (Ubuntu):
status: Confirmed → Triaged
Changed in hplip:
status: New → Confirmed

Applied the patch to the HPLIP package in Vivid. Thank you very much for the patch.

Changed in hplip (Ubuntu):
status: Triaged → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.15.2-0ubuntu3

---------------
hplip (3.15.2-0ubuntu3) vivid; urgency=low

  * debian/patches/hpscan-deskjet-3520-aio-allow-non-jpeg-scanning.patch:
    Allow non-JPEG scanning on the HP DeskJet 3520 All-in-One and similar
    devices. Thanks to Lubos Dolezel for the patch (LP: #1245578).
 -- Till Kamppeter <email address hidden> Mon, 2 Mar 2015 17:48:00 +0100

Changed in hplip (Ubuntu):
status: Fix Committed → Fix Released
Changed in hplip:
assignee: nobody → Ani Balakrishnan (anib)
Anders Østerholt (diebels) wrote :
Micah Gersten (micahg) on 2015-06-23
Changed in hplip (Ubuntu Trusty):
status: New → In Progress
assignee: nobody → Micah Gersten (micahg)
Changed in hplip (Ubuntu Utopic):
status: New → In Progress
assignee: nobody → Micah Gersten (micahg)
Changed in hplip (Ubuntu Trusty):
importance: Undecided → High
Changed in hplip (Ubuntu Utopic):
importance: Undecided → High
Micah Gersten (micahg) on 2015-06-23
Changed in hplip (Ubuntu Trusty):
status: In Progress → Fix Committed
assignee: Micah Gersten (micahg) → nobody
Micah Gersten (micahg) wrote :

SRU packages uploaded to trusty and utopic with patch from vivid

Changed in hplip (Ubuntu Utopic):
assignee: Micah Gersten (micahg) → nobody
status: In Progress → Fix Committed

Hello Znerole, or anyone else affected,

Accepted hplip into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.3-0ubuntu3.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Chris J Arges (arges) wrote :

Could someone fill in the SRU template in this bug please? Thanks

Chris J Arges (arges) wrote :

Hello Znerole, or anyone else affected,

Accepted hplip into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.6-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

elfantin (mikspace-ubuntu) wrote :

Didn't work for me with HP Officejet Pro 8610; I'm on Mint 17.1 Rebecca (based on 14.04).
I had hplip 3.15.4. I upgraded (hp-upgrade) to 3.15.6. No improvement on the jpeg front. So uninstalled it (hp-uninstall), installed hplip from standard repos. Still no improvement.
So I activated trusty-proposed and installed:
sudo apt-get install hplip/trusty-proposed
sudo apt-get install printer-driver-postscript-hp/trusty-proposed
sudo apt-get install hplip-gui/trusty-proposed

Now xsane wouldn't see the scanner at all.

I tried some hp- commands (hp-setup , hp-doctor , hp-scan , hp-uninstall) but they give errors (such as ImportError: /usr/lib/python2.7/dist-packages/hpmudext.so: undefined symbol: hpmud_make_par_uri).

I've now removed the packages from -proposed and put back 3.15.6 (with ongoing jpeg problem).

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1479555 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and tag 1479555 "bot-stop-nagging". Thanks!

tags: added: verification-failed
tags: added: bot-stop-nagging
removed: verification-failed
tags: removed: bot-stop-nagging

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1480032 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and tag 1480032 "bot-stop-nagging". Thanks!

tags: added: verification-failed
tags: added: bot-stop-nagging
removed: verification-failed
tags: added: verification-failed

Removed "verification-failed" tag as it was added without any comment.

Please check the bots whether they behave correctly.

tags: removed: verification-failed
Micah Gersten (micahg) wrote :

Utopic is now EOL and will no longer receive updates

Changed in hplip (Ubuntu Utopic):
status: Fix Committed → Won't Fix
Micah Gersten (micahg) wrote :

New version uploaded to trusty-proposed after security update

Hello Znerole, or anyone else affected,

Accepted hplip into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/hplip/3.14.3-0ubuntu3.5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1506230 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and add the tag "bot-stop-nagging" to bug 1506230 (not this bug). Thanks!

tags: added: verification-failed
tags: removed: verification-failed
Changed in hplip (Ubuntu):
importance: Undecided → Critical
importance: Critical → High
tags: added: saucy
removed: artifacts bot-stop-nagging jpeg

As a part of the Stable Release Updates quality process a search for Launchpad bug reports using the version of hplip from trusty-proposed was performed and bug 1511110 was found. Please investigate this bug report to ensure that a regression will not be created by this SRU. In the event that this is not a regression remove the "verification-failed" tag from this bug report and add the tag "bot-stop-nagging" to bug 1511110 (not this bug). Thanks!

tags: added: verification-failed

The version of hplip in the proposed pocket of Trusty that was purported to fix this bug report has been removed because the bugs that were to be fixed by the upload were not verified in a timely (105 days) fashion.

Changed in hplip (Ubuntu Trusty):
status: Fix Committed → Won't Fix
tags: removed: verification-needed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments