HowTo: HP j6400 in Fedora 9

Asked by Andrea

Hi,

I have a HP j6400 in Fedora 9.
The problem is that F9 comes with hplip 2.8.2, while this printer has been added in 2.8.4
What I have done is to take the source rpm of hplip-2.8.7 from Fedora 10 and recompile it.
Everything is ok, and I update 2.8.2 to 2.8.7.
For some reason cups cannot see the printer as a j6400 but tries to use the driver for j5700.

What I have done is to take the PPD from hplip-2.8.7 and use it while adding a printer.
Now the problem is the following

"Filter "foomatic-rip-hplip" for printer "Officejet_J6400_2" not available: No such file or directory"

I have noticed that foomatic-rip-hplip is not enabled in the rpm in Fedora.

I am a bit lost with foomatic/cups/hplip.
Could anybody help me out?

Thanks

Andrea

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Please run hp-check -t and post the output.

Thanks!

Aaron

Revision history for this message
Andrea (mariofutire86) said :
#2

Here it is. Quick explanation of the setup:

Officejet_J6400 has been installed via hplip using the (recommended by hplip) driver for the j5700
Officejet_J6400_2: I have manually used the ppd for the j6140 that I found into the source tarball of hplip.

If I look into /etc/cups/ppd/ , I find 2 ppd.
The first (for Officejet_J6400) internally says it belongs to j5700.
The second (for Officejet_J6400_2) is the one I took from hplip and it actually says it is for the j6140.

I just wonder why it is using "apparently" the wrong ppd.

Cheers

Andrea

====================================================
HP Linux Imaging and Printing System (ver. 2.8.7)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper
dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

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

Basic system information:
Linux thinkpad 2.6.26.3-29.fc9.i686 #1 SMP Wed Sep 3 03:42:27 EDT 2008 i686 i686 i386 GNU/Linux

Distribution:
fedora 9

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

Checking Python version...
OK, version 2.5.1 installed

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

Checking SIP version...
OK, Version 4.7.6 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.3.7

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

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

Checking for dependency: cups-ddk - CUPS driver development kit...
To install this dependency, execute this command:
su -c "yum -y -d 10 -e 1 install cupsddk cupsddk-drivers cupsddk-devel"

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

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

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

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

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

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
OK, found.

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

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

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

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

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

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

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=2.8.7

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.8.7
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.7.3
restricted-build=no

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

Officejet_J6400
---------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/net/Officejet_J6400_series?ip=192.168.4.11
PPD: /etc/cups/ppd/Officejet_J6400.ppd
PPD Description: HP OfficeJet J5700 Foomatic/hpijs (recommended)
Printer Paused: printer Officejet_J6400 disabled since Tue 16 Sep 2008 21:29:25 BST -
Communication status: Good

Officejet_J6400_2
-----------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/net/Officejet_J6400_series?ip=192.168.4.11
PPD: /etc/cups/ppd/Officejet_J6400_2.ppd
PPD Description: HP Officejet j6400 series Foomatic/hpijs, hpijs 2.8.7.3
Printer Filter "foomatic-rip-hplip" for printer "Officejet_J6400_2" not available: No such file or directory
Communication status: Good

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

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/net/Officejet_J6400_series?ip=192.168.4.11' is a Hewlett-Packard Officejet_J6400_series all-in-one

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

-----------
| SUMMARY |
-----------

Summary of needed commands to run to satisfy missing dependencies:
su -c "yum -y -d 10 -e 1 install cupsddk cupsddk-drivers cupsddk-devel"

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Delete all the printer queues, run su -c "hp-setup -g" to configure the printer and post the entire log.

Thanks!

Aaron

Revision history for this message
Andrea (mariofutire86) said :
#4
Revision history for this message
Andrea (mariofutire86) said :
#5

Basically my printer is properly found as j6400 but then it is using the ppd of the j5700.
Does it matter? Is it a problem?

What I don't understand is

hplip source tarball contains many ppds but the rpm only a few of them.
I am not sure I understand how it works though.

foomatic does not seem to support this printer yet. but as I said the intreaction cups/foomatic/hplip is still not clear to me.

BTW, the printer prints, but I wonder whether it is using subotimal settings.

Andrea

Revision history for this message
Andrea (mariofutire86) said :
#6

I've found an answer to the initial problem (i.e. foomatic-rip-hplip).

From http://hplip.sourceforge.net/tech_docs/tarball_install.html

I think my case is

2. Static PPD install with no foomatic-rip-hplip and HPIJS PPDs must be modified
Intended for distros that have the latest foomatic-rip. The user must manually change the *cupsFilter line from foomatic-rip-hpijs to foomatic-rip for all HPIJS PPDs before "make install".

So I did

1) copied the ppd for j6400 from the tarball to /usr/share/ppd
2) renamed the filter

So now it works.

I guess the whole issue is that foomatic does not yet know about this printer and Fedora does not take the ppds from hplip (but from foomatic).

Am I right or I got it all messed up?

Revision history for this message
Andrea (mariofutire86) said :
#7

And I took the fax.ppd from hplip, copied into /usr/share/ppd and then I could manually tell hp-setup about it.

Everything looks ok now.
Still need to manage to print duplex.

Andrea

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#8

For duplex printing run: hp-toolbox, click print settings and change the double sided printing option.

Thanks for your support of HPLIP!

Aaron

Can you help with this problem?

Provide an answer of your own, or ask Andrea for more information if necessary.

To post a message you must log in.