Kyocera's color laser printer PPD files broken

Bug #442451 reported by Johannes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
foomatic-db (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: cups

Release: 9.10 with latest updates from the fourth of october
cups:
  Installiert: 1.4.1-4
  Kandidat: 1.4.1-4
  Versions-Tabelle:
 *** 1.4.1-4 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

No matter wether I try to print via lp or from an application or the testpage in the cups
device, the result is always the same: 4 lines looking like a postscript header or something:
HUE3,0;@PJL ENTER LANGUAGE=POSTSCRIPT
                                                                               %!PS-Adobe-3.0
                                                                                                         %%LanguageLevel: 2
                                                                                                                                            %%Documen
Thats all. Aligned exactly like this.
Happens since upgrading to karmic.
I purged cups and reinstalled it, but it didn't help. Next I've downgraded cups via version pinning but
nothing changed... So perhaps the problem lies in libcups which I couldn't downgrade that easily... (or somewhere else)
The printer is connected through the network and is a kyocera fs-5100dn. No errors in the error log (loglevel is debug).

ProblemType: Bug
Architecture: i386
Date: Sun Oct 4 19:31:54 2009
DistroRelease: Ubuntu 9.10
Lpstat: device for FS-C5100DN: lpd://192.168.0.100/PASSTHRU
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: ASUSTeK Computer INC. A7N8X
NonfreeKernelModules: nvidia
Package: cups 1.4.1-4
Papersize: a4
PpdFiles: FS-C5100DN: Kyocera FS-C5100DN (KPDL)
ProcCmdLine: root=UUID=a8ba4faf-d9fc-4177-af7b-f8728bc85e11 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=de_DE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: cups
Uname: Linux 2.6.31-11-generic i686
dmi.bios.date: 11/25/2002
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: ASUS A7N8X ACPI BIOS Rev 1020 Beta 002
dmi.board.name: A7N8X
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: REV 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufactture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvrASUSA7N8XACPIBIOSRev1020Beta002:bd11/25/2002:svnASUSTeKComputerINC.:pnA7N8X:pvrREV1.xx:rvnASUSTeKComputerINC.:rnA7N8X:rvrREV1.xx:cvnChassisManufactture:ct3:cvrChassisVersion:
dmi.product.name: A7N8X
dmi.product.version: REV 1.xx
dmi.sys.vendor: ASUSTeK Computer INC.

Related branches

Revision history for this message
Johannes (hummlbach) wrote :
Revision history for this message
Johannes (hummlbach) wrote :

sorry: not device... meant cups frontend

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

Can you please attach the PPD file (/etc/cups/ppd/FS-C5100DN.ppd)?

Can you also create an error_log of one of your print job which produces the mentioned, wrong result? Please proceed as described in the "CUPS error_log" section of https://wiki.ubuntu.com/DebuggingPrintingProblems

Thanks.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Johannes (hummlbach) wrote :
Revision history for this message
Johannes (hummlbach) wrote :
Revision history for this message
Johannes (hummlbach) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Johannes, have you set KPDL emulation under Print Settings of the operation panel of your printer?

Revision history for this message
Johannes (hummlbach) wrote :

It was set to auto... Now that I've switched it on, the result looks like this:

Error Name: /undefined

Offending Command: HUE3,0;@PJL

Operand Stack:

(In the menu i've seen, that the printer also understands PCL 6 - perhaps I may use this as a workaround.)

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

Problem is this "HUE3,0;" in the beginning, we must find out from where this comes.

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

The PJL/JCL options defined in the PPD are inserted into the PostScript output for a PostScript printer by the pstops CUPS filter (called from cpdftocps). So I run this command line on Jaunty and Karmic:

cat /usr/share/system-config-printer/testpage-a4.ps | PPD=FS-C5100DN.ppd /usr/lib/cups/filter/pstops 1 1 1 1 "" > x

Jaunty:

ESC%-12345X@PJL
@PJL JOB NAME = "1" DISPLAY = "1 1 1"
@PJL RDYMSG DISPLAY = "1 1 1"
@PJL SET KTRAPPING=2
!R!CRES;SCRN0;RGBL0,0;RGBL1,0;RGBL2,0;HUE0,0;HUE1,0;HUE2,0;HUE3,0;HUE4,0;HUE5,0;HUE6,0;LGHT0,0;LGHT1,0;SATU0;EXIT;ESC%-12345X@PJL ENTER LANGUAGE=POSTSCRIPT
%!PS-Adobe-3.0
%%Title: PPR Test Page
%%DocumentNeededResources: font Helvetica
%%For: (1)
...

Karmic:

ESC%-12345X@PJL
@PJL JOB NAME = "1" DISPLAY = "1 1 1"
!R!CRES;SCRN0;@PJL SET KTRAPPING=2
RGBL2,0;RGBL0,0;RGBL1,0;HUE0,0;HUE6,0;HUE5,0;HUE1,0;HUE2,0;LGHT1,0;LGHT0,0;HUE4,0;SATU0;EXIT;ESC%-12345XHUE3,0;@PJL ENTER LANGUAGE=POSTSCRIPT
%!PS-Adobe-3.0
%%Title: PPR Test Page
%%DocumentNeededResources: font Helvetica
%%For: (1)
...

Here one sees that the header is put together in a wronmg order.

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

Problem is in the CUPS library, same happens if one tries the above with the pdftopdf filter applied to a PDF file.

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

Can you apply the patch to your PPD file:

cd /etc/cups/ppd/
sudo /etc/init.d/cups stop
patch -p0 < FS-C5100DN.ppd.patch
sudo /etc/init.d/cups start

Can you print now?

Revision history for this message
Johannes (hummlbach) wrote :

Yes it works. In the meanwhile I've printed with a generic PCL6 driver but it's much more convenient with the original PPD.
Thank you very much!
Is this PPD that special? Won't this happen with other printers too?

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

This PPD is really special, and probably most other PPDs for PostScript printers made by Kyocera (KPDL printers). The bug is in the PPD. All Kyocera PPDs need to be fixed as shown in the patch.

Changed in cups (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
affects: cups (Ubuntu) → foomatic-db (Ubuntu)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fixed upstream in foomatic-db BZR revision 995.

Note that CUPS is not the culprit, as the problem, are here options in the PPD file whose code gets inserted in the wrong order. To assure the right order there are the *OrderDependency: lines in the PPD and the code is inserting in ascending order of the numbers. The problem of the Kyocera PPDs is that options which require a determined order have equal numbers in their *OrderDependency: lines, which gives no determined order according to the Adobe specs for PPDs. I have corrected the numbers in the mentioned upstream fix.

Changed in foomatic-db (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package foomatic-db - 20090825-0ubuntu4

---------------
foomatic-db (20090825-0ubuntu4) karmic; urgency=low

  * debian/patches/kyocera-ppd-jcl-fix.patch: Corrected OrderDependency
    numbers for the JCL options so that the JCL code is definitely inserted
    in the correct order (LP: #442451).

 -- Till Kamppeter <email address hidden> Fri, 09 Oct 2009 00:53:23 +0200

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

I have also informed Kyocera about the problem so that they fix the PPDs on their site, too, and issue correct PPDs for future models.

summary: - no matter what and how is printed: just four lines are printed - looks
- like postscript header
+ Kyocera's color laser printer PPD files broken
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.