Printer first has status pending, then prints a blank page

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 hp:/usb/HP_LaserJet_P3010_Series?serial=XXXX in 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 my.pdf in 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:

Printer in "pending" mode only, not printing

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:

CUPS. Printer "pending" mode

... 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:

The network printer will only print blank pages and will not stop. What should I do?

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:

https://www.linuxquestions.org/questions/linux-hardware-18/hp-laserjet-1102p-printing-blank-pages-4175548673/

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):

lpr my.pdf

... 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?


Solution 1:

I have faced a similar problem sometimes back. I was on a network and my printer was printing only blank sheets. Later I found out that one of the network clients was using the same IP address as that of the printer and so there was a conflict of IP addresses. It took a long time to find out this issue but finally its resolved now.