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
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.)
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
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
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