PDA

View Full Version : HPLIP printing issues *** SOLVED ***


chevy
03-21-2007, 04:43 AM
*** SOLVED ***
This issue has been resolved. The solution is in the fourth message in this thread. [click here to view] (http://forums.pcbsd.org/viewtopic.php?t=8124#52035)
The original post follows.
**************

*** UPDATED ***
OK, I've just discovered that I can print from Konqueror viewing a web site or PDF, but I can not and have not been able to do a test print from the KDE Printers Control Module or from hp-toolbox. WTF??

All the other outputs are otherwise the same, even on a successful print.

*** END UPDATE ***

*** UPDATE #2 ***

OK, so I'm able to print from Firefox as well, but not from OpenOffice.org ... I'm baffled.

*** END UPDATE #2 ***

Please help guys,

I've picked up an OfficeJet 5610 and can't print on it. I have it attached via USB to a P4-2.66GHz running PC-BSD 1.3.3_1 (FreeBSD 6.1 p15)

So far I have: seen it attached to ulpt0: and tried to print using hpijs and gutenprint with no success. I recompiled my kernel and removed ulpt support and it is now being detected as a ugen device, as recommended by HPLIP. I installed hplip from ports updating all dependencies. hp-setup and hp-toolbox both detect the printer and allow me to configure it but no printing. I also notice I get "permission denied" during startup when loading hpssd, but have no clue as to why. I start it manually as root and it seems to work fine.

I've modified my devfs.rules to allow access to ugen* and added hpiod_enable="YES" and hpssd_enable="YES" to etc.conf, and copied hp.conf.sample to hp.conf

hp-check returns a load of missing depedencies that I swore I saw portinstall fetch and build. I hope you can help me, and quickly. We're running these PC-BSDs in a live development environment and I can't return this printer now that the ink has already been installed and we've run a few faxes through it.

Here are the messages I have been able to gather:

1) Relevant dmesg output
ugen0: HP Officejet 5600 series, rev 2.00/1.00, addr 2

2) Relevant /var/log/messages output
Mar 21 14:51:29 cmarmago01 Officejet_5600_series?serial=CN6AQDE2MW04B2: no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/models.dat: api/model.c 393
Mar 21 14:51:29 cmarmago01 Officejet_5600_series?serial=CN6AQDE2MW04B2: no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/unreleased/unreleased.dat: api/model.c 404
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.1
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.2
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.3
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.4
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.7
Mar 21 14:51:29 cmarmago01 kernel: All threads purged from ugen0.8
Mar 21 14:51:29 cmarmago01 hpijs: no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/models.dat: api/model.c 393
Mar 21 14:51:29 cmarmago01 hpijs: no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/unreleased/unreleased.dat: api/model.c 404

3) hp-check output
# hp-check

HP Linux Imaging and Printing System (ver. 1.7.1)
Dependency/Version Check Utility ver. 5.2

Copyright (c) 2003-6 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


---------------
| SYSTEM INFO |
---------------

Basic system information:
FreeBSD cmarmago01 6.1-RELEASE-p15 FreeBSD 6.1-RELEASE-p15 #0: Tue Mar 20 13:00:28 ICT 2007 root@cmarmago01:/usr/obj/usr/src/sys/PCBSDv1.3a i386

Detected distro (/etc/issue):
unknown 0.0

Detected distro (lsb_release):
error: lsb_release not found.

Currently installed HPLIP version...
HPLIP 1.7.1 currently installed in '/usr/local/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf

[hpiod]
# port=0 (dynamic IP port)
port=2208
[hpssd]
# port=0 (dynamic IP port)
port=2207
[dirs]
run=/var/run

[hplip]
version=1.7.1
jdprobe=0

[dirs]
home=/usr/local/share/hplip
run=/var/run
ppd=/usr/local/share/ppd/HP
doc=/usr/local/share/doc/hplip-1.7.1

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=1
pp-build=0
gui-build=1
scanner-build=1
fax-build=1
installinitd=
chkconfig=
internal-tag=1.7.1.5
home=/usr/local/share/hplip
ppd=/usr/local/share/ppd


HPLIP running?
Yes, HPLIP is running (OK).

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.4.4 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.5.2 installed

----------------
| DEPENDENCIES |
----------------


Checking for dependency libcrypto - OpenSSL cryptographic library...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency SANE - Scanning library...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency libjpeg - JPEG library...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency libpthread - POSIX threads library...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency make - GNU make utility to maintain groups of programs...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency python-devel - Python development files...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency Reportlab - PDF library for Python...
error: Not found!
This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.

Checking for dependency PyQt - Qt interface for Python...
OK, found.

Checking for dependency cups-devel- Common Unix Printing System development files...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency ppdev - Parallel port support kernel module....
error: Not found!
This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.

Checking for dependency libusb - USB library...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency scanimage - Shell scanning program...
OK, found.

Checking for dependency libnetsnmp-devel - SNMP networking library development files...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency LSB - Linux Standard Base support...
error: Not found!
error: This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency xsane - Graphical scanner frontend for SANE...
error: Not found!
This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.

Checking for dependency cups - Common Unix Printing System...
OK, found.

Checking for dependency Python 2.3 or greater - Required for fax functionality...
OK, found.


----------------------
| INSTALLED PRINTERS |
----------------------


Officejet_5600
--------------
Device URI: hp:/usb/Officejet_5600_series?serial=CN6AQDE2MW04B2
Installed in HPLIP? Yes

Officejet_5600_fax
------------------
Device URI: hpfax:/usb/Officejet_5600_series?serial=CN6AQDE2MW04B2
Installed in HPLIP? Yes


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in /etc/sane.d/dll.conf'...
Traceback (most recent call last):
File "/usr/local/bin/hp-check", line 369, in ?
f = file('/etc/sane.d/dll.conf', 'r')
IOError: [Errno 2] No such file or directory: '/etc/sane.d/dll.conf'

dracheflieger
03-21-2007, 12:44 PM
Have you run spadmin in oo yet? http://forums.pcbsd.org/viewtopic.php?t=4416&highlight=openoffice+print

chevy
03-22-2007, 02:00 AM
Yes, I have run spadmin, both as a standard user and as root. I am unable to test print from OOo spadmin, KDE's printer control module, hp-setup, or hp-toolbox, neither as root or a standard user. I am able to print from Konqueror, KATE, KEdit, KWrite and Firefox. I notice these apps bring up a KDE print dialog and "launch" KJobViewer. I suspect that I'd be able to print from Quanta+ as wel, since I believe it uses KATE for test editing.

In KJobViewer and KDE Control Module, jobs started from OOo, hp-toolbox, etc, appear identical to other jobs. The printer status reads as processing for about 5 seconds in the Information and Job views. After that, the Information tab shows the printer as Idle while the Job view shows the job still in the queue with an error. The jobs that DO print show up also, but after "processing" remove themselves from the queue, as is proper. The errant jobs in the queue do not prevent other jobs from printing.

For now, I can export to PDF from OOo and then print from Konqueror but that's a real pain.

chevy
03-22-2007, 07:05 AM
Solved the problem. Forgive the narrative, but I have to explain how I found the solution.

OK, so I found that some PDF files print when viewed in KPDF and some don't. So I went into the cups configuration page (http://localhost:631) and looked at the logs and found that on the jobs that were failing, foomatic-rip was exiting with status 3. I set loglevel to debug and this caught my interest:


D [22/Mar/2007:13:46:09 +0700] [Job 83] no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/models.dat: api/model.c 393
D [22/Mar/2007:13:46:09 +0700] [Job 83] no Officejet_5600_series attributes found in /usr/local/share/hplip/data/models/unreleased/unreleased.dat: api/model.c 404
D [22/Mar/2007:13:46:09 +0700] [Job 83] Error: /invalidfont in findfont
D [22/Mar/2007:13:46:09 +0700] [Job 83] Operand stack:
D [22/Mar/2007:13:46:09 +0700] [Job 83] F14_0 1 1 --nostringval-- Helvetica Font Helvetica 802892 Helvetica --nostringval-- Courier NimbusMonL-Regu (NimbusMonL-Regu) NimbusMonL-Regu (NimbusMonL-Regu) NimbusMonL-Regu


The /invalid font error does not appear in jobs printing successfully. Did a search for this problem and found it to be a ghostscript issue. So I tried to portupgrade ghostscript-gnu and found a stale gsfonts dependency. Then I followed portupgrade's recommendation and did a pkgdb -F. It installed gsfonts and now I am able to test print from KDE, hp-toolbox, and OOo, and print from any application (so far) at will.

<SOLUTION>
Issue: Dependencies missing from ghostview/cups/hplip.
Indications: Only a few documents or types of documents will print, cups error log shows foomatic-rip exiting with status 3, detailed cups error log reveals invalid font error.
Resolution: Install/reinstall/update/upgrade ghostview and gsfonts.

# sudo portupgrade ghostview-gnu

If this returns an error looking like:

Stale dependency: ghostscript-gnu-7.07_15 --> gsfonts-8.11_2 -- manually run 'pkgdb -F' to fix, or specify -O to force.

fix the package dependencies and type 'y' when ghostscript's stale dependency shows up. Actually, recommend typing 'a' for all, though this can take a while.

# sudo pkgdb -F
---> Checking the package registry database
Stale dependency: ghostscript-gnu-7.07_15 -> gsfonts-8.11_2 (print/gsfonts):
Install stale dependency? ([y]es/[n]o/[a]ll) [yes] a


</SOLUTION>

dracheflieger
03-22-2007, 01:16 PM
Thank you for your resolution post. It's post like these that help out our community.