[12.3] cups not printing properly

I have a Lexmark C510 installed via yast in OS 12.3 (yes, I will update, but this will take a few days)

without changing anything in the configuration suddenly printing is no longer working.

when trying to print with lpr from the command line, I get “lpr: Error - no default destination available.”
when trying to print a text file (with the printer specified) I get "lpr: Unsupported document-format “text/plain”
when trying to print a pdf file (what so far worked without problems) I get "lpr: Unsupported document-format “application/pdf”
printing a postscript file (with printer specified) works from the command line.

when trying to print from within libreoffice, the following is written to the console:
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::save: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints

I can print a document from within okular, but it’s printed in color although the setting is greyscale.

the yast setup tells me that the printer is set as default.
with yast I deleted the printer and installed it again - no difference. I tried different filters without difference. (but I have the impression, that with earlier installs there where more filters)
restarted cups - no difference
rebooted - no difference

I’d be glad for any help on how to repair that.


when a print was successful there is allways an additional page printed that ontains nothing more than “p://poppler:freedesktop.org)” on the top.

… I forgot to mention that printing the testpage from the yast installation is successful (with the above mentioned poppler-page)

It might be useful to know which driver you’re using. Check the .ppd file in /etc/cups/ppd/, and examine the ‘*cupsFilter:’ entry. (A quick search shows the is foomatic open-source driver and a Lexmark proprietary driver is available for this model.)

What is reported by the following?

ls -l /usr/share/cups/mime/

grep -i filter /etc/cups/ppd/c510.ppd
gave no result with the current configuration

no I changed to a different C510 driver and it gives:
*% “foomatic-rip” backend filter script of Foomatic 4.0.0 or newer. This
*cupsFilter: “application/vnd.cups-postscript 100 foomatic-rip”
*cupsFilter: “application/vnd.cups-pdf 0 foomatic-rip”

I found the following ppds for C510 on my system:
/usr/share/cups/model/downloaded/Lexmark-C510.Postscript-Lexmark.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510b.Postscript.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510.Postscript-Lexmark.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510.Postscript.ppd.gz

neither of them worked

-rw-r–r-- 1 root root 218 21. Nov 11:27 cupsfilters.convs
-r–r–r-- 1 root root 1874 10. Nov 10:41 mime.convs
-r–r–r-- 1 root root 6462 10. Nov 10:41 mime.types

Okay, that probably suggests the manufacturer-supplied postscript driver, (so no filter needed). It is the preferred driver according to

http://www.openprinting.org/printer/Lexmark/Lexmark-C510
http://www.openprinting.org/driver/Postscript-Lexmark

I changed to a different C510 driver and it gives:
*% “foomatic-rip” backend filter script of Foomatic 4.0.0 or newer. This
*cupsFilter: “application/vnd.cups-postscript 100 foomatic-rip”
*cupsFilter: “application/vnd.cups-pdf 0 foomatic-rip”

That’s the generic postscript driver. (Usually just lacking in a few printer-specific features/options.)

I found the following ppds for C510 on my system:
/usr/share/cups/model/downloaded/Lexmark-C510.Postscript-Lexmark.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510b.Postscript.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510.Postscript-Lexmark.ppd.gz
/usr/share/cups/model/OpenPrintingPPDs/postscript/Lexmark-C510.Postscript.ppd.gz

neither of them worked

Okay, not clear to me what the problem is yet.

The only thing that I could turn up regarding this related to LibreOffice

http://askubuntu.com/questions/408178/why-does-the-printer-print-an-extra-page-containing-p-poppler-freedesktop-org

I noted that your mime.convs file was much smaller than mine, but I am running openSUSE 13.1. For reference, I get

-r--r--r-- 1 root root 4162 Apr 11  2014 mime.convs

It did make me wonder if the necessary mime types were missing. Again (for reference), I have

cat mime.convs|grep application/pdf
application/pdf                 application/vnd.cups-postscript 66      pdftops
dean@linux-bbgi:/usr/share/cups/mime> cat mime.convs|grep text/plain
text/plain                      application/postscript          33      texttops

Anyway, maybe when you upgrade to openSUSE 13.x, these problems will go away.

some filters had been missing in /usr/lib/cups/filter/
installing the package cups.filters solved the problem.
strange that that package had disappeared!

furthermore: the printer has native pdf-support and shouldn’t accordingly need a filter for that??

when printing text/plain, there still is this annoying additional page with poopler/freedesktop…


concerning the problem that there is now default printer:
~/.cups/lpoptions contained the wrong queue name