LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-29-2016, 08:46 AM   #1
gargunkle
Member
 
Registered: Oct 2011
Posts: 31

Rep: Reputation: Disabled
help with printing. (jobs process, but no output)


I'm hoping someone may be able to give me some pointers on this situation...

Setup is:

motherboard: Gigabyte GA-C1037UN
OS: CentOS 7.2 x86_64
printer: Canon ip2820
Window manager: MATE Desktop

This printer is connected to the system by USB. I added the printer through MATE's "print settings" dialog. When I go to print something, it seems to work correctly from the perspective of the OS (it enters the queue and leaves), but nothing ever comes out of the printer.

The printer does print normally if connected to Windows.

CUPS log says things like:

localhost - - [21/Mar/2016:18:40:45 -0400] "POST /printers/Canon-iP2800-series HTTP/1.1" 200 424 Print-Job successful-ok
localhost - - [21/Mar/2016:18:41:17 -0400] "POST /printers/Canon-iP2800-series HTTP/1.1" 200 424 Print-Job successful-ok

Any ideas why nothing is printing?
 
Old 03-29-2016, 10:59 AM   #2
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,621
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by gargunkle View Post
CUPS log says things like:

localhost - - [21/Mar/2016:18:40:45 -0400] "POST /printers/Canon-iP2800-series HTTP/1.1" 200 424 Print-Job successful-ok
localhost - - [21/Mar/2016:18:41:17 -0400] "POST /printers/Canon-iP2800-series HTTP/1.1" 200 424 Print-Job successful-ok

Any ideas why nothing is printing?
Do you make the same experience with each program that you try to print from? This will not solve your problem, but you could try to replace one text-processor against another or try to export a document to PDF prior printing. At least, if one of these attempts succeeds, there is less to be feared from the system-wide printer setup.

I have exactly the same problem with 1 text-processor and documents which contain open-type fonts. Knowing this, I either insist on TrueType-fonts throughout the document or export it to PDF prior printing. Fonts embedded or not, my printer is innocent, as it prints it all.

But if you do not succeed with any other software to print nice documents, then try to find a better printer-driver or check that the printer itself is alright (ink-level, cartridges etc.).
 
1 members found this post helpful.
Old 03-29-2016, 11:23 AM   #3
gargunkle
Member
 
Registered: Oct 2011
Posts: 31

Original Poster
Rep: Reputation: Disabled
I haven't really tried multiple things to print. Any recommendations?

I think mostly what I've been using is just the MATE viewer for PDFs - Atril Document Viewer. I'd also be open to trying to print something from the command line - I suppose that uses the lpr command. Not sure what formats are supported there.

When you have the problem regarding fonts etc., do you have the same symptom with nothing printing at all, or does it print but incorrectly?

Thanks!
 
Old 03-29-2016, 11:31 AM   #4
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
It sounds like a Printer Driver problem, Is this the first time you have tried the printer?
Maybe this will help.

https://www.rpmfind.net/linux/rpm2ht...utenprint-cups
 
Old 03-29-2016, 11:41 AM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,621
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by gargunkle View Post
I haven't really tried multiple things to print. Any recommendations?
You could just try to print from any office application available or the simple editor, which is certainly installed by default. I do not know the MATE desktop and do also not know the programs which come with your distribution.
Quote:
I think mostly what I've been using is just the MATE viewer for PDFs - Atril Document Viewer.
If the problem is observed with Atril, try to install and use a different PDF-viewer, for example Acroread, which is the Linux version of the Adobe® Acrobat Reader.
Quote:
I'd also be open to trying to print something from the command line - I suppose that uses the lpr command. Not sure what formats are supported there.
PDF and text are never a problem.
Quote:
When you have the problem regarding fonts etc., do you have the same symptom with nothing printing at all, or does it print but incorrectly?
All looks like in your own problem description. The job, when initiated from the text-processor, disappears from the queue as if it had been processed alright. But I have developed the routine to print PDF-documents.
 
Old 03-29-2016, 12:02 PM   #6
gargunkle
Member
 
Registered: Oct 2011
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by offgridguy View Post
It sounds like a Printer Driver problem, Is this the first time you have tried the printer?
Maybe this will help.

https://www.rpmfind.net/linux/rpm2ht...utenprint-cups
First time trying the printer (or any printer) on this system at least.

(It does work on a Windows computer)

Looks like I already have this installed, however.

# rpm -qa | grep guten
gutenprint-cups-5.2.9-18.el7.x86_64
gutenprint-5.2.9-18.el7.x86_64
 
Old 03-29-2016, 03:16 PM   #7
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE Tumbleweed, Kernel 4.14*
Posts: 137

Rep: Reputation: 52
Sounds more like a configuration problem. Do you have access to the cups settings page? If so, verify that the printer is set as default and is also active (started) and is accepting jobs. There may be an option to delay printing or print immediately.
 
Old 03-30-2016, 01:30 AM   #8
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Down in the CUPS

This does sound like a driver issue. When the driver's not right, printing sometimes acts like a bit bucket and swallows all output.

Go to http://localhost:631

This should be a CUPS administration page.

Select Printers and see if your printer is there. If not, add it - see below.

select your printer
select maintenance
select print test page

Does that work?

To add a printer:
Select Administration
Select Add Printer
follow the prompts to find and add your printer and configure it
 
Old 03-30-2016, 05:26 AM   #9
dannybpng
Member
 
Registered: Sep 2003
Location: USA
Distribution: Fedora 35
Posts: 79

Rep: Reputation: 22
You could try printing a test page from the CUPS web interface Maintenance/Print Test Page option once you locate or define the printer.
 
Old 03-30-2016, 01:15 PM   #10
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Rep: Reputation: 22
If you look in
Code:
/usr/lib/cups/filter/
there should be a file called
Code:
pstocanonij
If you convert your PDF to postscript:
Code:
pdftops PDFFILE
You should now have a postscript file to work with. This is the same thing that CUPS does.
Now find your PPD file. It may be in
Code:
/etc/cups/ppd/canonip2800.ppd
Now you type
Code:
export PPD=/etc/cups/ppd/canonip2800.ppd
This is crucial. All CUPS filters expect this magic environment variable to be set or they WILL FAIL SILENTLY.

Now you type
Code:
/usr/lib/cups/filter/pstocanonij 1 1 1 1 1 $PSFILE > out.prt
If that works (it will not say anything) you should now have a binary called 'out.prt' sitting in $PWD. The '1 1 1 1 1' are required, but only affect the header of the resulting file, so they can be anything. Technically, they are
[job# user title #copies options] but only the print spooler cares.

You can now type
Code:
cat out.prt > /dev/usb/lp0
and it should print in full glory (assuming your printer is at /dev/usb/lp0).
CUPS just turns this rather simple process into smoke and mirrors, with spooling and all those other features you probably don't need.
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] printing problems cups okular printing jobs debian squeeze epson stylus sx 410 Foxbat1155 Linux - Newbie 4 02-22-2012 02:49 PM
Printing jobs management surwassu Programming 4 06-17-2011 09:43 AM
Clear printing jobs ar1 Linux - General 1 02-08-2005 09:00 PM
Cancel printing jobs Imerion Linux - Software 3 01-12-2005 03:07 PM
print jobs not actually printing....? rose_bud4201 Linux - Software 0 01-23-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration