cups not respecting printing options

Bug #1002699 reported by Maxxer
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
foomatic-filters (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
High
Unassigned

Bug Description

Since the upgrade to Ubuntu 12 precise I cannot change my print settings anymore.
We have a Xerox 6121MFP printers, which up to 11.10 worked great with 6115MFP drivers (6121 were not present until the latest release).

I tried creating the printer, both from Gnome and from Cups web interface, then tried again with 6115 drivers. In all cases documents are always printed with the default settings.
So, if upon printer installation I set single-sided printing and monochrome, later on I cannot print in duplex mode or in color mode. I tried setting up the printer in duplex mode as default settings, then I wasn't able anymore to print in single sided.

Installed cups version 1.5.2-9ubuntu1

[Impact] Option settings are not respected for all printers with foo2zjs drivers ("Foomatic/foo2...") and with Foomatic-based PostScript drivers ("Foomatic/Postscript"). For users of other Foomatic-based drivers ("Foomatic/...") often one option setting gets dropped.

[Test Case] To reproduce without having the appropriate printer (foo2zjs must be installed):

cupsctl FileDevice=yes
cupsctl LogLevel=debug
lpadmin -p test -E -v file:/tmp/printout -m foo2zjs:0/ppd/foo2zjs/Xerox-Phaser_6115MFP.ppd
lpoptions -p test -l
lp -d test -o Duplex=DuplexNoTumble -o ColorMode=ICM ~/.bashrc

"lpoptions -p test -l" shows that ColorMode is Monochrome and Duplex is None (default settings). With the current package the "lp" command produces a monochrome printout without duplex. You can see it in the error_log. Look at the lines with "[Job <job number>]" in it. The job with the current (buggy) package has, after the "File: <STDIN>" line, lines with "Option: ColorMode=Monochrome" and "Option: Duplex=None", the job with the proposed (fixed) package has "Option: ColorMode=ICM" and "Option: Duplex=DuplexNoTumble" instead, so the command-line supplied options are obeyed with the new package.

[Regression Potential] The two fixes in the C code are trivial fixes, regressions cannot be caused by them.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you follow the instructions of the sections "CUPS error_log" and "Capturing print job data" on https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

I tried printing a color page from LibreOffice

Revision history for this message
Maxxer (lorenzo-milesi) wrote :
Changed in cups (Ubuntu):
status: Incomplete → New
Revision history for this message
richard laurenson (frrichardlaurenson) wrote :

WORKAROUND and a clue?? to problem
This has happened to me also

Changes in application print dialogue have no effect. Except for page range and number of copies. No duplex no colour/gray no Document server. (Ricoh mpc4500)

 I Intalled System-config-printer I Change Settings press APPLY and can go back to Application and print according to these settings.

My Only working Reference is to LM12 = ubuntu 11.10, but that had Mate installed so the Gnome2 routines might have been in play.

I have tried ubuntu 12.04 LM13 Pinguyos12.04
Last worked properly in LM12 which is 11.10 base.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Maxxer, if you change the default settings with system-config-printer and after that send another print job, are your changes respected then?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Maxxer, According to your error_log you have printed with the following settings:

ColorMode=ICM
Duplex=None
InputSlot=Auto
PageSize=A4

Are these the settings which you have actually selected in LibreOffice? Are these the settings with which the job got finally printed?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Are your option settings respected if you print from the command line, for example

lpr -o Duplex=DuplexNoTumble ColorMode=ICM file.pdf

What happens if you choose "Export to PDF" in the "File" menu of LibeOffice and print the saved PDF file with evince afterwards?

Changed in cups (Ubuntu):
status: Confirmed → Incomplete
affects: cups (Ubuntu) → foomatic-filters (Ubuntu)
Changed in foomatic-filters (Ubuntu):
importance: Medium → High
status: Incomplete → Triaged
Changed in foomatic-filters (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
milestone: none → precise-updates
milestone: precise-updates → ubuntu-12.04.1
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Released foomatic-filters 4.0.16 upstream with this bug fixed.

Changed in foomatic-filters (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package foomatic-filters - 4.0.16-0ubuntu1

---------------
foomatic-filters (4.0.16-0ubuntu1) quantal; urgency=low

  * New upstream release
     - Fixes LP: #1002699.
     - Fixed off-by-one bug which has cut off the last character of the
       option string for CUPS (5th command line argument) and so made the
       last option setting not being applied.
     - Fixed wrong access to command line option list which prevented the
       command line options being passed on to the pdftops CUPS filter
       when incoming PDF is converted to PostScript.
 -- Till Kamppeter <email address hidden> Mon, 18 Jun 2012 21:37:03 +0200

Changed in foomatic-filters (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Uploaded a fixed package for Precise into -proposed. As soon as it gets approved please install it and test it. We will need your test result to make the package an official update for Precise. We will announce the availability of the package and give installation instructions in a later comment here.

For the SRU team: A debdiff is attached. Upstream version 4.0.16 differs from 4.0.15 only by two one-line fixes in the code.

To reproduce without having the appropriate printer (foo2zjs must be installed):

cupsctl FileDevice=yes
cupsctl LogLevel=debug
lpadmin -p test -E -v file:/tmp/printout -m foo2zjs:0/ppd/foo2zjs/Xerox-Phaser_6115MFP.ppd
lpoptions -p test -l
lp -d test -o Duplex=DuplexNoTumble -o ColorMode=ICM ~/.bashrc

"lpoptions -p test -l" shows that ColorMode is Monochrome and Duplex is None (default settings). With the current package the "lp" command produces a monochrome printout without duplex. You can see it in the error_log. Look at the lines with "[Job <job number>]" in it. The job with the current (buggy) package has, after the "File: <STDIN>" line, lines with "Option: ColorMode=Monochrome" and "Option: Duplex=None", the job with the proposed (fixed) package has "Option: ColorMode=ICM" and "Option: Duplex=DuplexNoTumble" instead, so the command-line supplied options are obeyed with the new package.

Changed in foomatic-filters (Ubuntu Precise):
status: Triaged → Fix Committed
description: updated
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

I rebuilt the package myself using your patch and now the printer respects the settings. Thanks!
If you want/need I will re-test it once the package gets published on -proposed.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Maxxer, great. Thank you for doing this test. Please stay tuned for the package appearing in -proposed and re-test with that package. This is required to make it an official update.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Maxxer, or anyone else affected,

Accepted foomatic-filters into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/foomatic-filters/4.0.16-0ubuntu0.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 change the bug tag from verification-needed to verification-done. If it does not, 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
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

I installed foomatic-filters from
https://launchpad.net/ubuntu/+source/foomatic-filters/4.0.16-0ubuntu0.1/+build/3595743
https://launchpadlibrarian.net/108149542/foomatic-filters_4.0.16-0ubuntu0.1_amd64.deb
and I confirm I can now print in color mode on my Xerox 6121MFP.

Thanks again Till!

tags: added: verification-done
removed: verification-needed
Revision history for this message
rmcd (rmcd1024) wrote :

The new foomatic-filters also fixes the problem with the Ricoh PXL driver in https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1004725.

Revision history for this message
richard laurenson (frrichardlaurenson) wrote :

Indeed, Till Kamppeter (till-kamppeter) You Rock..
Have installed https://launchpad.net/ubuntu/precise/i386/foomatic-filters/4.0.16-0ubuntu0.1 for my i686 version of 12.04
Confirming
PRINT ROUTINE IS WORKING
Thank you.
So this also fixes https://bugs.launchpad.net/ubuntu/+bug/1005578

Richard

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package foomatic-filters - 4.0.16-0ubuntu0.1

---------------
foomatic-filters (4.0.16-0ubuntu0.1) precise-proposed; urgency=low

  * New upstream release
     - Fixes LP: #1002699.
     - Fixed off-by-one bug which has cut off the last character of the
       option string for CUPS (5th command line argument) and so made the
       last option setting not being applied.
     - Fixed wrong access to command line option list which prevented the
       command line options being passed on to the pdftops CUPS filter
       when incoming PDF is converted to PostScript.
 -- Till Kamppeter <email address hidden> Mon, 18 Jun 2012 21:37:03 +0200

Changed in foomatic-filters (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
cltien (cltien) wrote :

I have the same problem with HP Color Laserjet 2550L -- it is connected to the Synology DS-209 NAS which served as print server and works with Windows 7/XP well with color printout. However, it only prints in grey in Edubuntu 12.04 LTS.

The foomatic-filter is 4.0.16-0ubuntu0.2 and cups version is 1.5.3-0ubuntu6. The printer once can print in color but it lost this ability after version updated.

Please check my error_log generated when I printed the test page.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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