Here is the thing: I've been using the same laptop, with the same HP LaserJet P3010 Series, with the same OS (Ubuntu 14.04, 32 or 64 bit, MATE desktop) for over a year, and the same Device URI
system-config-printer, and I had no problems whatsoever.
Something changed in the past few months, which broke the printing process somewhat - but I really cannot tell what, because I meet this problem only when I have to print, which is about once a month.
So this is what I experience now - I connect printer via USB, and turn it on; everything looks good on printer, and
system-config-printer status (Printer State) does not complain (sometimes it is "Idle", sometimes "Idle - ready to print", sometimes blank - but that is how it was when it was working too).
Then, I open
evince, and try to print. No page comes out; when I right-click on the printer icon in
system-config-printer and choose "View print queue), I get the document listed, but with status "Pending", which doesn't change for minutes. I've seen this:
Under Settings>Printers>Policies "Enabled" was not selected
... but I cannot find "Settings" on my OS anywhere (there is System/Preferences and System/Administration); but that answer is also for Ubuntu 13. Then I found this:
... restarting CUPS with the command "sudo service cups restart". ...
... and indeed, after
sudo service cups restart, the document gets sent to the printer, disappears from the queue - but the printer prints blank page! I found this as a possible explanation for the problem:
Looks like you-re sending postscript directly to the printer, which may not understand it, that's why it spits blank pages.
So, I make a test from the
system-config-printer properties of the printer, and print a test page - it prints fine. Printing again from
evince either gets stuck at "Pending", or prints a blank page. Then I found advice like on:
Can you print a single page PDF successfully via the lpr command?
lpr -P <printer_name> /path/to/sample.pdf
And so I tried
lpr (without the
-P argument, since this is the only active printer on my system at the time, and it is set as default):
... and now it works - the print is fine!?
I guess this problem is somewhat similar to PDF viewer prints blank pages ... But what could have been the problem that changed the otherwise working procedure to this?
Also, since this is an HP printer, in some posts that I read, they recommend some HP utilities, and it turns out (just noticed today), I do have System/Preferences/HPLIP Toolbox (I guess, it is
/usr/bin/hp-toolbox); were some settings changed here, or on the CUPS level, or elsewhere? How would I troubleshoot this problem?