Duplicate printer - How to prevent autodetection?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
stoffl
Level 2
Level 2
Posts: 59
Joined: Sun Sep 21, 2014 5:48 am

Duplicate printer - How to prevent autodetection?

Post by stoffl »

I use Mint 19 and have a Brother DCP-J562DW connected via WiFi to my local network. I've installed the manufacturer's proprietary driver which works fine and enables to check ink status and the like. I've set this as my standard printer.

The problem is, that the same printer is obviously also autodetected by mint. It adds the same printer again (but without extended features like ink status). So now I have the same printer twice:
printer_settings.png
I already tried to delete the detected printer but to no avail: It's detected again and again.

Is there a way to get rid of the duplicate?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Duplicate printer - How to prevent autodetection?

Post by cogier »

I am suffering with this issue. I have just been to a friend's house and the problem is replicated there as well. Both machines are running Mint 19.0.

I have 2 printers but not 2 of the same type! If I delete this 'phantom' printer the system recreates it in seconds.
Printers - localhost_008.png
User avatar
AndyMH
Level 21
Level 21
Posts: 13748
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Duplicate printer - How to prevent autodetection?

Post by AndyMH »

I take no credit for this, I asked the same question a couple of years ago:
I've never gone out of my way to disable it but these "discovered" printers are due to a service called cups-browsed. The difference between Mint 17 and 18 is systemd.If you stop the cups-browsed service systemd will think you are kidding so it restarts it. What you might want to try is disabling the service instead:

Code: Select all

sudo systemctl mask cups-browsed
Then reboot. A "mask" will prevent the service from being started
This worked for me (it only has to be done once), the other suggestion was:
Should that not fix things unmask it:

Code: Select all

sudo systemctl unmask cups-browsed
Followed by a:

Code: Select all

sudo systemctl start cups-browsed
EDIT - and here is the original post viewtopic.php?f=51&t=242427&p=1296046&h ... r#p1296046 - thanks altair4!
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
stoffl
Level 2
Level 2
Posts: 59
Joined: Sun Sep 21, 2014 5:48 am

Re: Duplicate printer - How to prevent autodetection?

Post by stoffl »

@AndyMH Thanks for that hint. But that means, that auto detection is then disabled completely, right? So if I should get a new printer it will not be detected anymore? I'm sure I'll not remember what I did to disable that service so I will probably rather live with the duplicate printers.

It's still weird, though. I'm surprised, that there's no better fix for this.
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: Duplicate printer - How to prevent autodetection?

Post by lsemmens »

I'm not certain if this will be of any assistance but My HP CM1312 MFC only appears once. Are you using the HPLIP drivers? That could be your issue. Install them and see if that fixes it.
Fully mint Household
Out of my mind - please leave a message
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Duplicate printer - How to prevent autodetection?

Post by cogier »

Thanks for the replies guys, we are all on islands just vastly different sizes.

I am not over worried about this so I don't think I will stop the 'service'.

The question about HPLIP was a good one as I always install the HPLIP GUI as it make installation of a network printer a breeze. Interestingly the printer only appears once in HPLIP but twice in Printers!
HPLIP.png
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Duplicate printer - How to prevent autodetection?

Post by brian_p »

A bit old but ........
It's still weird, though. I'm surprised, that there's no better fix for this.
Reading the cups-browsed.conf manual on filtering could be instructive.
--
Brian.
ClixTrix

Re: Duplicate printer - How to prevent autodetection?

Post by ClixTrix »

Is the phantom using IPP for protocol?

https://askubuntu.com/questions/345083/ ... stallation
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Duplicate printer - How to prevent autodetection?

Post by brian_p »

Yes.
--
Brian.
ClixTrix

Re: Duplicate printer - How to prevent autodetection?

Post by ClixTrix »

brian_p wrote: Thu Jan 17, 2019 4:39 pmYes.
Is the "other" duplicate installed DirectJet or LPD/LPR? I'm guessing yes.

Could try turning off IPP at the Printer in it's setups. I'd look at it from web console using browser to the IP address of the printer. It might be an obvious setting. It might be in activation of HP Web Services.

Could try suggestions on link I posted.

Could live with a duplicate....at least the why is known.

Edit: Opps one more. Could just use it IPP. That works too and drop the other.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Duplicate printer - How to prevent autodetection?

Post by brian_p »

stoffl is managing printers with two methods at the same time:

1. With automatic discovery using cups-browsed and IPP.
2. With manual setup.

Choose one method to avoid duplicate enumeration in system-config-printer.
--
Brian.
SweD
Level 2
Level 2
Posts: 59
Joined: Mon Jan 21, 2019 9:48 am

Re: Duplicate printer - How to prevent autodetection?

Post by SweD »

For Tessa there also the "View/Discovered Printers" check-box which is ticked by default.
I just found it myself, and unticked it, never thought to look there before, and don't know if it's always been there.

Regards,
/Dennis
stoffl
Level 2
Level 2
Posts: 59
Joined: Sun Sep 21, 2014 5:48 am

Re: Duplicate printer - How to prevent autodetection?

Post by stoffl »

@SweD Interesting. I just tried unchecking but the printer is still there. Does it make a difference for you? Do you maybe have to reboot to have an effect?
SweD
Level 2
Level 2
Posts: 59
Joined: Mon Jan 21, 2019 9:48 am

Re: Duplicate printer - How to prevent autodetection?

Post by SweD »

I honestly don't know if it makes a difference or not, I presumed as much. I currently don't have any duplicates, I had manually removed them since last reboot, which is quite some time ago. Just found the entry in the menu and thought I'd share. :)

Regards,
/Dennis
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Duplicate printer - How to prevent autodetection?

Post by brian_p »

Code: Select all

man cups-browsed.conf
really is a good read.

Uncomment
  • CreateIPPPrinterQueues LocalOnly
and restart the service.
--
Brian.
TTG35forT
Level 1
Level 1
Posts: 18
Joined: Wed Feb 27, 2019 1:39 pm

Re: Duplicate printer - How to prevent autodetection?

Post by TTG35forT »

The following worked for me in Linux Mint 20, which is based on Ubuntu 20.4:

sudo nano /etc/avahi/avahi-daemon.conf

In that file:

change “use-ip4=yes” to “use-ip4=no”

change “use-ip6=yes” to “use-ip6=no”

Now, only printers that I added manually show up in the "Printers" control panel (Printers-localhost), the HPLIP Toolbox and LibreOffice.
Locked

Return to “Printers & Scanners”