Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

How can I stop firefox from auto discovering printers on fedora?

  • 6 risposte
  • 2 hanno questo problema
  • 61 visualizzazioni
  • Ultima risposta di beckolamuffin

more options

On Linux Fedora (19 & 20 at least, likely others) Firefox automatically finds network attached printers, completely independently of CUPS. The printer it finds for me is legitimate, but it doesn't install drivers to make it work correctly. If this printer is used, it will print out gibberish; sometimes PDF control language, other times total junk. It won't render the page right, and wastes tons of paper.

Thanks!

On Linux Fedora (19 & 20 at least, likely others) Firefox automatically finds network attached printers, completely independently of CUPS. The printer it finds for me is legitimate, but it doesn't install drivers to make it work correctly. If this printer is used, it will print out gibberish; sometimes PDF control language, other times total junk. It won't render the page right, and wastes tons of paper. Thanks!

Soluzione scelta

Thanks.

I have found that avahi-daemon is the culprit. I just did a fresh install of Fedora 20. I did not set up any printers, yet the "bad" printer showed up in the printer list in Firefox. After I stopped avahi-daemon and avahi-daemon.socket, the printer went away.

I also noticed with my Fedora 19 installation, the bad printer went away if I put my computer on a different subnet.

So next step is to figure out how to configure avahi to not behave this way when it is running.

I appreciate your help.

    • Post Script **

I looked at what documentation I could find on avahi, but there didn't seem to be any sort of setting to ignore a particular host. However, after some probing, I found the right setting on my Lexmark E260DN to change. Under TCP/IP settings, there is a check box for 'mDNS.' The default is on. Once I turned it off, that solved the problem, allowing me to safely re-enable avahi on my computer. I had looked for something like this earlier, but missed it, as I was looking for such things as 'bonjour', 'zeroconf', 'SD-DNS', or something similar.

Leggere questa risposta nel contesto 👍 1

Tutte le risposte (6)

more options

Hi beckolamuffin,

Thank you for posting your question. So, you would like to know why printers are found automatically and the drivers are not automatically installed and you would like to stop firefox from auto-discovering printers.

Questions:

Troubleshooting Firefox

more options

Hi Guigs2:

Thanks for your reply and clarifying questions. Here are my answers:

  • Does this also occur in other applications?

Yes and no. Originally I thought only in Firefox this showed up, but just tried a few more programs. The "bad" printer does not show up in Google Chrome or in Libre Office. But it does show up in gedit.

  • Does the configuration tool help?

No. The "bad" printer doesn't show up in the fedora print configuration function (settings->printers-> etc). CUPS and lpstat are totally unaware of the bad printer.

  • Do the tips in fix printing problems in Firefox help?

No. The bad printer doesn't show up anywhere in the about:config settings, and neither resetting printer settings nor editing the prefs.js file make a difference.

  • Does print preview work OK?

Yes

  • Are the CUPS server overriding preferences set in firefox?

I don't think so. CUPS isn't aware of the bad printer. client.conf is empty. I don't see anything that indicates this is happening.

I am attaching a screen shot of what my printer list looks like in firefox (and gedit). The highlighted printer at the bottom is the good printer. The one above it is the bad printer.

Thanks again!

Erik

more options

Ok I looked for the driver for this printer, but you said they do not install correctly. I also found this Linux forum http://www.openprinting.org/printer/L.../Lexmark-E260dn but it was not listed in the driver listhttp://www.openprinting.org/drivers

I also found this printer works in LibreOffice but https://bugs.freedesktop.org/show_bug.cgi?id=33791 again not helpful.

The ppd file for your printer is below:

https://www.openprinting.org/ppd-o-matic.php?driver=Postscript&pr...

Manually adding the printer if it does not detect after the post script: Reference for technical instructions and example below: http://kb.mozillazine.org/PostScript_Module

(in about:config and prefs.js) and not a separate file.

To add a preference, you can use about:config or you can manually edit the prefs.js text file. Note that prefs.js is updated when Firefox shuts down, so you should close Firefox before editing it. Mine has this line:

user_pref("print_printer", "PDFCreator");

more options

guigs2:

Thanks for your help on this. I think the problem is not with Firefox, since gedit also has the problem, but with a lower level. Either with gnome or dns-sd. I can install the correct printer drivers for my Lexmark, and get things to print correctly on the right printer entry. The problem is that if one accidentally uses the wrong printer entry, things don't work well, paper is wasted, and the printer can jam when trying to fix it. This is a small problem with a single-user system, but when wife and kids also use it, it is a bigger problem.

I have determined that the basic issue is that when the wrong printer entry is selected, the one that CUPS and the Gnome printer manager aren't aware of, the computer sends a raw PDF stream to the printer, and it can't interpret it. It tries to print as plain text, and a PDF stream usually has non-printing binary stuff in it. So this doesn't work. The printer expects to see one of the following:

  • Postscript
  • HP PCL
  • Plain ASCII text

A PDF stream is none of these.

I will change focus and see if there is a way to get DNS-SD (AVAHI?) to ignore the printer.

Thanks again!

more options

Not a problem, though I am not sure DNS-SD, try starting a new thread. Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently.

Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you.

Thank you.

more options

Soluzione scelta

Thanks.

I have found that avahi-daemon is the culprit. I just did a fresh install of Fedora 20. I did not set up any printers, yet the "bad" printer showed up in the printer list in Firefox. After I stopped avahi-daemon and avahi-daemon.socket, the printer went away.

I also noticed with my Fedora 19 installation, the bad printer went away if I put my computer on a different subnet.

So next step is to figure out how to configure avahi to not behave this way when it is running.

I appreciate your help.

    • Post Script **

I looked at what documentation I could find on avahi, but there didn't seem to be any sort of setting to ignore a particular host. However, after some probing, I found the right setting on my Lexmark E260DN to change. Under TCP/IP settings, there is a check box for 'mDNS.' The default is on. Once I turned it off, that solved the problem, allowing me to safely re-enable avahi on my computer. I had looked for something like this earlier, but missed it, as I was looking for such things as 'bonjour', 'zeroconf', 'SD-DNS', or something similar.

Modificato da beckolamuffin il