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.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Duplicate printer - How to prevent autodetection?
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:
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?
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:
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Duplicate printer - How to prevent autodetection?
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.
I have 2 printers but not 2 of the same type! If I delete this 'phantom' printer the system recreates it in seconds.
Re: Duplicate printer - How to prevent autodetection?
I take no credit for this, I asked the same question a couple of years ago:
This worked for me (it only has to be done once), the other suggestion was: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:Then reboot. A "mask" will prevent the service from being startedCode: Select all
sudo systemctl mask cups-browsed
EDIT - and here is the original post viewtopic.php?f=51&t=242427&p=1296046&h ... r#p1296046 - thanks altair4!Should that not fix things unmask it:Followed by a:Code: Select all
sudo systemctl unmask cups-browsed
Code: Select all
sudo systemctl start cups-browsed
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Re: Duplicate printer - How to prevent autodetection?
@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.
It's still weird, though. I'm surprised, that there's no better fix for this.
Re: Duplicate printer - How to prevent autodetection?
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
Out of my mind - please leave a message
Re: Duplicate printer - How to prevent autodetection?
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!
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!
Re: Duplicate printer - How to prevent autodetection?
A bit old but ........
Reading the cups-browsed.conf manual on filtering could be instructive.It's still weird, though. I'm surprised, that there's no better fix for this.
--
Brian.
Brian.
Re: Duplicate printer - How to prevent autodetection?
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.
Re: Duplicate printer - How to prevent autodetection?
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.
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.
Brian.
Re: Duplicate printer - How to prevent autodetection?
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
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
Re: Duplicate printer - How to prevent autodetection?
@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?
Re: Duplicate printer - How to prevent autodetection?
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
Regards,
/Dennis
Re: Duplicate printer - How to prevent autodetection?
Code: Select all
man cups-browsed.conf
Uncomment
- CreateIPPPrinterQueues LocalOnly
--
Brian.
Brian.
Re: Duplicate printer - How to prevent autodetection?
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.
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.