Re: Problems Printing with Firefox

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Phillips
Date:  
To: Main PLUG discussion list
Subject: Re: Problems Printing with Firefox
On Sun, Mar 18, 2012 at 12:53 PM, Lisa Kachold <>wrote:

> Hi Mark
>
> On Sun, Mar 18, 2012 at 11:51 AM, Mark Phillips <
> > wrote:
>
>>
>>
>> On Sun, Mar 18, 2012 at 10:01 AM, Lisa Kachold <>wrote:
>>
>>> Hi Mark
>>>
>>> On Sun, Mar 18, 2012 at 7:49 AM, Mark Phillips <
>>> > wrote:
>>>
>>>> I have Firefox 11.0 installed, as well as Google Chrome 17.0.963.65,
>>>> Opera, and of course, Epiphany on my Debian testing machine. I use cups for
>>>> printing over the network to my hp printer. Chrome, Opera, Epiphany all
>>>> recognize all the installed printers on my network, but Firefox does not
>>>> see any of them. I don't even have the print to file option that most posts
>>>> on the subject talk about. When I look in firefox's about:config at all the
>>>> print* settings, the printer is there, but it does not show up in the print
>>>> dialog and I cannot print from firefox.
>>>> Anyone else have this problem, and know how to solve it?
>>>>
>>>> Thanks,
>>>>
>>>> Mark
>>>>
>>>
>>> Reference: http://wiki.debian.org/SystemPrinting
>>>
>>> A) Have you logged into Cups to see if there is an error?
>>>
>>
>>> http://localhost:631
>>>
>>> WHAT IS THE ERROR message in the logs?
>>>
>>
>> Yes, I have looked at the cups error logs as well as the admin portal.
>> There are no errors from firefox, since it never sees any of the printers.
>> All other applications (browsers, libreoffice, etc.) print without errors.
>>
>>>
>>> B) What does system-config-printer say?
>>> http://cyberelk.net/tim/software/system-config-printer/
>>>
>>> Is it not postscript? See D - below related to firefox and postscript
>>>
>>
>> Just curious - why would I use system-config-printer when I have the cups
>> web interface? According to the system-config-printer info on debian.org- "In
>> terms of features, it (i.e. system-config-printer) aims to be as complete
>> as the CUPS web administration tool, while being integrated to the desktop."
>>
>>
>>>
>>> C) If this is a "permissions issue", you might have to add the Firefox
>>> invoking user to the group file:
>>>
>>> sudo usermod -a -G lpadmin tom
>>>
>>> firefox is running under user mark, and I am in the lpadmin group
>>
>>>
>>> D) Are you using a postscript printer? Do you have kprinter installed?
>>>
>>
>> I use gnome, not kde, so no kprinter. gtklp runs and finds all the
>> printers.
>>
>> Also, why would the type of printer make a difference? If cups can print
>> to that printer, why would firefox care, unless firefox doesn't use cups?
>>
>>>
>>> Firefox:
>>> 1. First, if you haven't done so, you need to print to PostScript in
>>> order for the needed entry in prefs.js to be populated. This will be done
>>> automatically the first time you print. Open any web page and go to:
>>>
>>> File --> Print --> choose PostScript/default (it should be the default
>>> if you haven't installed any printers yet) --> click "Print"
>>>
>>
>> The problem is that there are no printers int he File --> Print dialog,
>> so nothing to print to.
>>
>>>
>>> Once you have done this and it prints, it'll add the PostScript entry
>>> you need to edit.
>>>
>>> 2. In the URL bar, type
>>>
>>> about:config to open the config page.
>>>
>>> 3. In the "Filter" bar, type
>>>
>>> print.printer_PostScript/default.print_command
>>> This should filter everything out but that line.
>>>
>>> 4. Right-click on the line, click on "Modify", and change the entry to
>>> say
>>>
>>> kprinter then click OK. This will make Firefox print to kprinter any
>>> time you select the "PostScript/default" printer.
>>>
>>> 5. Right-click anywhere in the white space, then click on "New -->
>>> Boolean" to add a new Boolean entry. Type
>>>
>>> print.always_print_silent
>>>
>>> and set its value to "true". This will force Firefox to print to the
>>> default printer without prompting you. If "PostScript/default" is the only
>>> printer you have and there are no local / network printers, it works great
>>> and you can stop here. But if you installed a printer through CUPS, it
>>> complicates things as Firefox will want to use that as a default and all
>>> your prints will go there without prompting you! So even if you don't have
>>> a local printer, it's a good idea to add the following line in case you add
>>> one later.
>>>
>>> 6. Once again, right-click and choose "New --> Boolean". Type
>>>
>>> print.postscript.cups.enabled
>>> and set its value to "false". That will disable CUPS printing in
>>> Firefox, and it will default to the "PostScript/default" printer. And since
>>> you've changed the output of that to kprinter, you'll see a "processing"
>>> dialog for a split second when you print, after which kprinter will open
>>> up. There you can choose all your printers, including PDF, PostScript, and
>>> any CUPS installed printers :) .
>>>
>>
> Did you verify the GTK?
>
> Did you check for the gtkrc file?
>


I have a lot of gtkrc files -
locate gtkrc
/etc/gimp/2.0/gtkrc
/home/mark/.gimp-2.6/gtkrc
/home/mark/Desktop/buffalo_nas/new_firmware/filesystem/usr/share/vim/vim72/syntax/gtkrc.vim
/usr/lib/vmware/libconf/etc/gtk-2.0/Clearlooks.gtkrc
/usr/lib/vmware/libconf/etc/gtk-2.0/gtkrc
/usr/lib/vmware-installer/2.0/lib/libconf/etc/gtk-2.0/Clearlooks.gtkrc
/usr/lib/vmware-installer/2.0/lib/libconf/etc/gtk-2.0/gtkrc
/usr/share/eog/gtkrc
/usr/share/gimp/2.0/themes/Default/gtkrc
/usr/share/gimp/2.0/themes/Small/gtkrc
/usr/share/gtksourceview-3.0/language-specs/gtkrc.lang
/usr/share/themes/Adwaita/gtk-2.0/gtkrc
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc
/usr/share/themes/Crux/gtk-2.0/gtkrc
/usr/share/themes/Default/gtk-2.0-key/gtkrc
/usr/share/themes/Emacs/gtk-2.0-key/gtkrc
/usr/share/themes/HighContrast/gtk-2.0/gtkrc
/usr/share/themes/HighContrastInverse/gtk-2.0/gtkrc
/usr/share/themes/Industrial/gtk-2.0/gtkrc
/usr/share/themes/LowContrast/gtk-2.0/gtkrc
/usr/share/themes/Mist/gtk-2.0/gtkrc
/usr/share/themes/Raleigh/gtk-2.0/gtkrc
/usr/share/themes/Redmond/gtk-2.0/gtkrc
/usr/share/themes/ThinIce/gtk-2.0/gtkrc
/usr/share/vim/vim73/syntax/gtkrc.vim


>
> You didn't give us your exact distro (there are many debian testing
> versions) so I could not be sure this was not the Firefox gtk bug:
>
>>
>>> E. If you have an older version of debian (known gtk bug issues) you
>>> might try (verify) this:
>>>
>>> 1. From the terminal change into the gtk-2.0 directory...
>>> cd /etc/gtk-2.0 [if you have a different version,check for the gtkrc
>>> file as in 2.]
>>>
>>> 2. Use sudo and a text editor (my editor of choice is "vi") to create
>>> the gtkrc file in the /etc/gtk-2.0 directory...
>>> sudo vi gtkrc
>>>
>>> 3. Add the following to your newly-created gtkrc file...
>>> gtk-print-backends="lpr,file"
>>>
>>> 4. Exit the text editor and save your newly-created gtkrc file.
>>>
>>> 5. Re-start your computer to incorporate the changes. [Not sure why
>>> they suggest this step, but it's in all the posts...]
>>>
>>> 6. Re-open firefox and you should be able to print to "lpr" from it!
>>>
>>
>
> Set the default printer:
>
> lpoptions -d printer-name
>
> The ‘d’ option sets the default printer.
>
> If your shell is bash (which is the most common), you’d use the syntax in
> your *~/.bashrc* file:
>
> export PRINTER=printer-name
>
>
>> I can print from the command line with lpr with no problem. If I go to
>> about:config in firefox, my printer is there with all its different
>> options. But the line print.printer_list is empty. The print.print_command
>> has lpr ${MOZ_PRINTER_NAME:+-P"$MOZ_PRINTER_NAME"}, so I know it is trying
>> to use lpr (same as the print.postscrip.print_command). But lpr works from
>> the command line.
>>
>> It seems to be that firefox is not finding the list of printers from
>> wherever it is supposed to find them, and so it cannot print.
>>
>
> Right....let's reset the printer:
>
> As a first step, reset the selected printer in your Firefox preferences:
>
>    1. Type *about:config <http://kb.mozillazine.org/About:config>* in the
>    Location Bar and press Enter. A list of preferences will appear.
>    2. Find the preference *print.print_printer* (Note: this preference is
>    missing in Firefox profiles where you've never used the printer.)
>    3. Right-click (context-click) that preference and select *Reset*.
>    (Some users may need to reset all the *print.printer* preferences for
>    a particular printer, if resetting this one master preference doesn't solve
>    the problem.)
>    4. Restart Firefox and see if the problem is resolved.

>
> about:config does not have a print.print_printer entry. I tried adding a

print.print_printer entry, and then reset it, but it is just an empty
string. There are no instructions on how to manually add the
printer.....the red text was not very helpful. (I don't mean you are not
helpful, just I ran across this info earlier in one of my many google
searches on this problem, and found the red text somewhat humorous and not
very helpful).

> Note: If you get the warning dialog, "Printing failed when starting the
> document" and if the *print.print_printer* preference has no printer
> shown, either you don't have a printer selected, or Firefox doesn't know it
> is installed on your system.
>
>
> Follow this instruction to reset by double clicking on print.print_printer
> and setting your default:
> http://www.linuxquestions.org/questions/linux-newbie-8/firefox-not-seeing-cups-printers-869422/
>


My default printer is already installed, since I can print from the command
line using lpr. When I run lpoptions, I get
auth-info-required=none collate=false ColorModel=RGB copies=1
device-uri=hp:/net/Officejet_Pro_L7600?ip=192.168.25.102 Duplex=None
finishings=3 InputSlot=Auto job-hold-until=no-hold job-priority=50
job-sheets=none,none marker-change-time=0 MediaType=Automatic number-up=1
number-up-layout=btlr OptionDuplex=False OutputMode=Normal
outputorder=normal PageSize=Letter position=center printer-commands=none
printer-info=Officejet_Pro_L7600 printer-is-accepting-jobs=true
printer-is-shared=true printer-location=office printer-make-and-model='HP
Officejet Pro l7600, hpcups 3.11.12' printer-state=3
printer-state-change-time=1332096319 printer-state-reasons=none
printer-type=167948
printer-uri-supported=ipp://localhost:631/printers/Officejet_Pro_L7600
wrap=false


> [edit<http://kb.mozillazine.org/index.php?title=Problems_printing_web_pages&action=edit&section=2>
> ]
> Does not print to paper at all:
>
> If you are having a problem with Firefox not printing to paper at all, and
> you don't receive a warning dialog:
>
>    - Press {Ctrl + P} on the keyboard and make sure that you don't have
>    Print to file selected under Printer > Comment:
>    - Make sure that your correct printer is selected at Printer > Name:.

>
> See full link: http://kb.mozillazine.org/Problems_printing_web_pages
>
>>
>>>
>>> Respond with logs and test output with exact versions please?
>>>
>>
> What is:
> # uname -a
>

Linux orca 3.1.0-1-amd64 #1 SMP Tue Jan 10 05:01:58 UTC 2012 x86_64
GNU/Linux

>
> Do you have a 64bit distro?
>

Yes

> If so, Firefox cannot use the 64bit GTK (another bug); just install the 32
> bit.
>

It is installed - /usr/lib32/libgtk2.0-0

>
>
>>
>> Exact versions of what? In my original post I had:
>>
>> "Firefox 11.0 installed, as well as Google Chrome 17.0.963.65, Opera, and
>> of course, Epiphany on my Debian testing"
>>
> Missing the uname -a kernel version, (relevant to known bugs, libraries
> and fixes).
>


My apologies; I normally put that in to my posts.

>
> But just manually adding or resetting your Firefox printer (if everything
> else is normal) (after upgrade) should fix it.
>


I guess I expect it to find all the printers, and not make me add them
manually, like every other program. I would add it manually, if I knew how!
I have tried various combinations of Officejet_Pro_L7600 (see the lpoptions
output above), and then resetting firefox, but it never shows up in the
printing dialog. I have also tried the option of using gtklp instead of lpr
in the print.print_command option, but no luck there either.

>
>> Thanks for the suggestions!
>>
>> Mark
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>
>
>
> --
> (503) 754-4452 Android
> (623) 239-3392 Skype
> (623) 688-3392 Google Voice
> **
> it-clowns.com
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss