PDA

View Full Version : Network printing difficulties with CUPS


Corvash
2005-02-02, 07:49 AM CST
I'm trying to print to a printer over the network (HP Officejet G95, it's attached directly onto the network).

The print job will enter the queue, and either completes unusually fast (if added using lpd on the command line) or just sits there in the queue (if added via cups), if I set the loglevel to debug I find the following in /var/log/cups/error_log. Nothing is actually printed.

D [03/Feb/2005:00:05:31 +0930] [Job 1] Closing renderer
D [03/Feb/2005:00:05:31 +0930] [Job 1] KID3 exited with status 3
D [03/Feb/2005:00:05:31 +0930] [Job 1] Renderer exit stat: 3
D [03/Feb/2005:00:05:31 +0930] [Job 1] Renderer process finished
D [03/Feb/2005:00:05:31 +0930] [Job 1] Killing process 3887 (KID3)
D [03/Feb/2005:00:05:31 +0930] [Job 1] Process dying with "Error closing renderer", exit stat: 3
D [03/Feb/2005:00:05:31 +0930] [Job 1] Error closing renderer
E [03/Feb/2005:00:05:31 +0930] PID 3884 stopped with status 3!

Fiddling with choice of print driver produced only one printout (using PCL3), which had the positioning and dimensions of objects mangled (and most objects doubled). Additional attempts failed to replicate this, and it appears to be an unusual fluke.

Flu
2005-02-02, 09:16 AM CST
How did you specify the printer connection in CUPS?

You can use your web browser and go to http://localhost:631 and select manage printers. Under the OfficeJet G95 entry, you should see a line that says something like Device URI: socket://xxx.xxx.xxx.xxx:9100 where "xxx.xxx.xxx.xxx" is your network printer IP. I think most HP's use the JetDirect service, so I would guess that port 9100 should be appropriate for that printer.

If everything looks good, you may want to "Modify Printer" and make sure you have the proper driver specified, or simply try the generic "HP Laserjet" driver and see if that works.

*Edit* Added the info. below:

Additionally, you may want to check out the http://hpinkjet.sourceforge.net/ site, and see if they have a supported Linux driver for the G95 (if you haven't already).

Looks like the G95 uses the HPLIP installation routine: http://hpinkjet.sourceforge.net/install.php
--Flu

Corvash
2005-02-02, 10:25 PM CST
# Printer configuration file for CUPS v1.1.22rc1
# Written by cupsd on Thu 03 Feb 2005 12:01:10 AM CST
<DefaultPrinter OfficeJet>
Info Created by redhat-config-printer 0.6.x
DeviceURI socket://192.168.4.33:9100
Location
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


It looks like the driver you've pointed me to is the HPIJS driver (which is what I'm already using), but I'll see how well building my own works.