69

I've just upgraded to Ubuntu 17.04, using the GNOME desktop. Suddenly, I've started seeing 'printer added' notifications as OSD popups - approximately every 2 minutes! It's really distracting.

Anyone have any idea how I can either stop them at source, or at the very least filter them out from the OSD notifications?

pomsky
  • 68,507

5 Answers5

54

The problem that you're identifying appears identical to my case, which is, that upon OS restart, the system goes through an auto-discovery/auto-install process, and then politely notifies the user via a notification window (the OSD, or on-screen display). Yet then--periodically--this process seems to repeat itself for some as yet unknown reason.

Seems to me that somewhere in the new 17.04 driverless printer driver discovery logic, something is broken. The best I can tell is that the colord daemon is failing on a missing ICC file for the printer in question, which causes CUPS to want to "reinstall" the printer driver, and hence the repeating "printer installed" OSD message. Perhaps as a clue, when installing a "non-driverless" printer driver, the corresponding ICC is installed correctly.

In my own case, I've solved the problem by preventing CUPS from initiating this auto-everything process entirely. In this way, I install my printer(s) once, and never see a "printer added" OSD messages again.

The solution:

  • Edit /etc/cups/cups-browsed.conf, changing the BrowseRemoteProtocols CUPS dnssd line to BrowseRemoteProtocols none

  • Restart CUPS from Terminal service cups restart

Note that this assumes your printer(s) are on a LAN and not directly connected to your machine. If your printer is local (physically attached), you may want to edit BrowseProtocols instead (untested).

A restart of the CUPS service or machine reboot should resolve the "printer added" issue. Note that you'll need to manually add your printer(s), as the auto-discovery feature has now been disabled.

CUPS Reference: https://www.systutorials.com/docs/linux/man/5-cups-browsed.conf/

Rich

richbl
  • 2,303
  • that sounds pretty plausible. My printer is indeed on the network. I'm not in the office today, but I'll try your suggestion next time I am. Thanks! – Ian Dickinson Jun 02 '17 at 12:47
  • So that does definitely stop the OSD notifications, thanks @richbl. I do wonder if we should be reporting the root problem to a bug list somewhere, but I'm not actually sure where that somewhere should be! – Ian Dickinson Jun 09 '17 at 09:03
  • 23
    For me the configuration file was /etc/cups/cups-browsed.conf – gitaarik Jul 28 '17 at 15:49
  • 3
    I do not care if the underlying process repeats. I just want to avoid seeing the OSD messages. Can those be disabled? – Thorbjørn Ravn Andersen Nov 02 '17 at 10:25
  • 1
    Does not work in 17.10. I still get the notifications, and printer gets added, as a duplicate to a previously installed printer. – Chad Wright Nov 06 '17 at 17:29
  • 1
    This stops remote printers from being installed. I just want the notification to stop. – Philip Rego Nov 01 '20 at 22:45
25

Follow these steps:

  1. Go to Settings
  2. Click Notifications on the Sidebar
  3. Click Printers under Applications
  4. Turn Off the Notification Toggle
Wangwe
  • 351
22

So I thought I had found a solution (via FedoraForums actually):

# Finding the schemas of interest:
$ gsettings list-schemas | grep -i notif

Listing the values to target:

$ gsettings list-recursively org.gnome.settings-daemon.plugins.print-notifications

Changing the value:

$ gsettings set org.gnome.settings-daemon.plugins.print-notifications active false

Source http://www.fedoraforum.org/forum/showthread.php?t=297053

Unfortunately, despite a brief pause, I'm still getting OSD notifications.

10

You need to stop dns-sd from constantly scanning in cups configuration:

Ubuntu 20.04:

edit /etc/cups/cups-browsed.conf and

change:

BrowseRemoteProtocols dnssd cups 

to:

BrowseRemoteProtocols cups

Restart:

sudo systemctl restart cups
jim smith
  • 750
0

I had the same problem with regular annoying printer added notifications. In my case, the root cause appeared to be the same as identified by richbl; missing colour profiles. I installed the missing colour profiles and the problem went away:

sudo apt update
sudo apt install icc-profiles
sudo systemctl restart cups
Fred
  • 91
  • 1
    Didn't work for me on Ubuntu 20.04 - I just got another random "Printer added" notification. – dw1 Sep 20 '20 at 07:01