4

I know that I've encountered an answer to this question before, but I can't seem to figure out the right search terms to find the answer anywhere.

I have an Epson WF4630 at my office and an Epson 845 printer at home. Both are on wired networks.

Every time I log into any Ubuntu system or VM (12.04, 14.04, 14.10) on the local network, and most times I insert or remove a USB device (flash drive, webcam, fpga board... anything) my network printer 'spools'—it sounds like clearing the paper path and then moving and re-homing the print head.

Wireshark confirms stuff happens: every time I plug or unplug a usb device, i see BJNP and MDNS traffic broadcast, and then a TCP connection to the printer.

So the question is: what causes that to happen, and how can I disable it?

  • 1
    Can you post the relevant captured packets to paste.ubuntu.com? – Fabby Apr 12 '15 at 22:50
  • I have been experiencing this with an Epson WF-7525 when inserting or removing USB devices from my Ubuntu 15.10 machine. It also occurs when booting my machine or resuming it from standby. For posterity, I had asked the question on Super User, which now points back here. – Paul Lammertsma Jan 20 '16 at 11:10
5

I had a similar problem with an Epson network printer. To find out what was causing it, I used netstat to monitor the network connections while inserting a USB device:

sudo netstat -t -u -a -p -c

One connection appeared a few moments after the device was inserted: a UDP connection by colord-sane. This binary is part of colord, a "system service to manage device colour profiles".

Unfortunately, disabling this service (at least on 15.04) is more difficult than it would seem. colord is not started directly by the init system systemd. Instead, dbus starts colord, or is asked to start colord by some other service (at least not the printer service cupsd). One way to prevent this is by renaming the relevant service file:

cd /usr/share/dbus-1/system-services/
sudo mv org.freedesktop.ColorManager.service org.freedesktop.ColorManager.service.disabled

I don't know what side-effects this action might have. Another possibility is to uninstall colord completely, using

sudo apt-get remove colord

As I don't really need colour profile functionality on my Ubuntu device, I didn't investigate what exactly colord does to "activate" the printer, or how to teach it not to do so.

  • Thanks so much, this was very insightful! colord was also the culprit for me, and I decided to bite the bullet and remove it from my machine as well. – Paul Lammertsma Jan 20 '16 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.