KDE doesn't recognize default printer and adds second listing for printer.

I just installed the drivers for a Canon MF642 laser multifunction. I have two printers and set the Canon as default and to use letter size paper. It shows up properly in the Yast2 Printer app and the web interface to CUPS. In both places there is a driver for this printer listed as default and letter size, and a driver for my other printer. In the KDE printer app, the two printers show up correctly as well. However, in the printer dialog in apps like Kmail or libreoffice, the second printer shows up as default rather than the Canon, and there are two entries for the Canon: Canon MF642C-643C-644C-UFR II which is the correct driver and MF642C-643C-644C. The UFR II entry has letter as the default paper size, and the second entry has A4. To print I have to select the UFR II entry (the second without UFR II doesn’t actually print), but the printer thinks it needs A4 paper rather than letter which is set in the proper driver. I tried uninstalling everything and reinstalling and rebooting, but the phantom printer is still there in KDE apps. I reiterate, it does not appear in any of the configuration apps (including KDE’s) nor in the CUPS configuration. How do I get rid of it and get only the single, correct driver.

I appreciate any help.

For better clarification, please show us the output from

lpstat -t

and perhaps

egrep -i "name|model|filter" /etc/cups/ppd/*

Also…

sudo systemctl status cups-browsed
avahi-browse --terminate _ipp._tcp

Thank you, Deano. To clarify one thing: I’m interested in the MF642C. There should be only one entry and it should be a default. The Pixma MP470 actually has two driver instatiations with different settings. Here are the outputs you requested in both posts.

lpstat:

scheduler is running 
system default destination: MP470-TurboPrint 
device for Canon-MF642C-643C-644C-UFR-II: socket://10.2.1.100 
device for MP470-Photo: tpu://Canon/MP470_series/SN=A352BF 
device for MP470-TurboPrint: tpu://Canon/MP470_series/SN=A352BF 
Canon-MF642C-643C-644C-UFR-II accepting requests since Fri 04 Mar 2022 12:52:48 PM PST 
MP470-Photo accepting requests since Wed 05 Apr 2017 03:08:22 PM PDT 
MP470-TurboPrint accepting requests since Wed 05 Apr 2017 03:07:23 PM PDT 
printer Canon-MF642C-643C-644C-UFR-II is idle.  enabled since Fri 04 Mar 2022 12:52:48 PM PST 
printer MP470-Photo is idle.  enabled since Wed 05 Apr 2017 03:08:22 PM PDT 
printer MP470-TurboPrint is idle.  enabled since Wed 05 Apr 2017 03:07:23 PM PDT

/etc/cups/ppd:

/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*PCFile**Name**: "CNM642ZS.PPD"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*cups**Model**Number: 8073
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*cups**Filter**: "application/vnd.cups-raster 0 rastertoufr2"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:***ModelName**: "Canon MF642C/643C/644C UFR II"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*ShortNick**Name**: "MF642C/643C/644C"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*Nick**Name**: "Canon MF642C/643C/644C UFR II"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*%CNGPLPLIB**NAME**R: "uictlufr2r"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*%CNGPLPLIB**NAME**RVER: "1.0.0"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CNOEFLib**Name**: "ufr2**filter**r"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CNPrinter**Name**: "Canon MF642C/643C/644C UFR II"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CNGenericDat**Name**: "Canon Generic Plus BDL CL3"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CN**Model**Method: "1213858060"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CN**Model**Method2: "78"
/etc/cups/ppd/Canon-MF642C-643C-644C-UFR-II.ppd:*CNUFR2**Model**Method: "100708352"
/etc/cups/ppd/MP470-Photo.ppd:*% PPD file **name**: /tmp/tp31131_1.tmp
/etc/cups/ppd/MP470-Photo.ppd:*PCFile**Name**:    "TP123456.PPD"
/etc/cups/ppd/MP470-Photo.ppd:***ModelName**:      "Canon-PIXMA-MP470 TurboPrint"
/etc/cups/ppd/MP470-Photo.ppd:*ShortNick**Name**: "Canon_PIXMA_MP470"
/etc/cups/ppd/MP470-Photo.ppd:*Nick**Name**:      "Canon_PIXMA_MP470 TurboPrint"
/etc/cups/ppd/MP470-Photo.ppd:*cups**Model**Number:       2
/etc/cups/ppd/MP470-Photo.ppd:*cups**Filter**:    "application/vnd.cups-postscript 0 pstoturboprint"
/etc/cups/ppd/MP470-Photo.ppd:*cups**Filter**:    "application/vnd.cups-pdf 10 pstoturboprint"
/etc/cups/ppd/MP470-Photo.ppd:*cups**Filter**:    "application/vnd.cups-command 10 commandtoturboprint"
/etc/cups/ppd/MP470-Photo.ppd:*OpenUI *Color**Model**/Color**Model**: PickOne
/etc/cups/ppd/MP470-Photo.ppd:*OrderDependency: 9 AnySetup *Color**Model**
/etc/cups/ppd/MP470-Photo.ppd:*DefaultColor**Model**: RGB
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** Black/Grayscale Fast: "<</zedoColor**Model**(Black)>>pop <</cupsColorSpace 3/cupsColorOrder 0/cupsBitsPerColor 1 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** Gray/Grayscale: "<</zedoColor**Model**(Gray)>>pop <</cupsColorSpace 0/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** GrayPhoto/Gray Photo: "<</zedoColor**Model**(GrayPhoto)>>pop <</cupsColorSpace 0/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** RGB/Color (RGB): "<</zedoColor**Model**(RGB)>>pop <</cupsColorSpace 1/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** CMYKproof/CMYK Proof: "<</zedoColor**Model**(CMYKproof)>>pop <</cupsColorSpace 6/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*Color**Model** CMYKproof2/CMYK Proof (Mix Black): "<</zedoColor**Model**(CMYKproof2)>>pop <</cupsColorSpace 6/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-Photo.ppd:*CloseUI: *Color**Model**
/etc/cups/ppd/MP470-TurboPrint.ppd:*% PPD file **name**: /tmp/tp31131_0.tmp
/etc/cups/ppd/MP470-TurboPrint.ppd:*PCFile**Name**:    "TP123456.PPD"
/etc/cups/ppd/MP470-TurboPrint.ppd:***ModelName**:      "Canon-PIXMA-MP470 TurboPrint"
/etc/cups/ppd/MP470-TurboPrint.ppd:*ShortNick**Name**: "Canon_PIXMA_MP470"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Nick**Name**:      "Canon_PIXMA_MP470 TurboPrint"
/etc/cups/ppd/MP470-TurboPrint.ppd:*cups**Model**Number:       2
/etc/cups/ppd/MP470-TurboPrint.ppd:*cups**Filter**:    "application/vnd.cups-postscript 0 pstoturboprint"
/etc/cups/ppd/MP470-TurboPrint.ppd:*cups**Filter**:    "application/vnd.cups-pdf 10 pstoturboprint"
/etc/cups/ppd/MP470-TurboPrint.ppd:*cups**Filter**:    "application/vnd.cups-command 10 commandtoturboprint"
/etc/cups/ppd/MP470-TurboPrint.ppd:*OpenUI *Color**Model**/Color**Model**: PickOne
/etc/cups/ppd/MP470-TurboPrint.ppd:*OrderDependency: 9 AnySetup *Color**Model**
/etc/cups/ppd/MP470-TurboPrint.ppd:*DefaultColor**Model**: RGB
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** Black/Grayscale Fast: "<</zedoColor**Model**(Black)>>pop <</cupsColorSpace 3/cupsColorOrder 0/cupsBitsPerColor 1 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** Gray/Grayscale: "<</zedoColor**Model**(Gray)>>pop <</cupsColorSpace 0/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** GrayPhoto/Gray Photo: "<</zedoColor**Model**(GrayPhoto)>>pop <</cupsColorSpace 0/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** RGB/Color (RGB): "<</zedoColor**Model**(RGB)>>pop <</cupsColorSpace 1/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** CMYKproof/CMYK Proof: "<</zedoColor**Model**(CMYKproof)>>pop <</cupsColorSpace 6/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*Color**Model** CMYKproof2/CMYK Proof (Mix Black): "<</zedoColor**Model**(CMYKproof2)>>pop <</cupsColorSpace 6/cupsColorOrder 0/cupsBitsPerColor 8 {} settransfer>>setpagedevice"
/etc/cups/ppd/MP470-TurboPrint.ppd:*CloseUI: *Color**Model**

systemctl:

cups-browsed.service - Make remote CUPS printers available locally
     Loaded: loaded (/usr/lib/systemd/system/cups-browsed.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

avahi:

+   eth0 IPv4 Canon MF642C/643C/644C                        Internet Printer     local

Thanks again!

You can make that default with

sudo lpadmin -d Canon-MF642C-643C-644C-UFR-II

systemctl:

cups-browsed.service - Make remote CUPS printers available locally
     Loaded: loaded (/usr/lib/systemd/system/cups-browsed.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

avahi:

+   eth0 IPv4 Canon MF642C/643C/644C                        Internet Printer     local

Thanks again!

The output you’ve shared at least shows cups-browsed is not the culprit, but as you can see Avahi is discovering the Canon MF642C printer and this is why the ‘phantom’ printer is enumerated.

With respect to the KDE paper size issue, this reddit thread may be of interest to you…
https://www.reddit.com/r/kde/comments/owlebm/trying_to_tell_kde_that_my_default_paper_size_is/

Altering the PPD file did solve the A4 problem. How do I get rid of the phantom printer?

Again, thanks. This has been a help.

Yes, it’s only a workaround, but good to know this is ok for you. If you’re not using mDNS/DNS-SD, and you have an active firewall on the openSUSE host, consider just blocking incoming ‘mdns’ multicasting.

This may also be of interest to you…
https://askubuntu.com/questions/345083/how-do-i-disable-automatic-remote-printer-installation/1281732#1281732