hplip won't work with HP CP1217 printer in Fedora 16

Bug #891360 reported by David Charlton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Fix Committed
Undecided
goutam kodu

Bug Description

HI,

I have just done a clean install of FC16. I have a HP CP 1217 connected to the box via a direct USB connection. I install it as a printer but keep getting ....../hpcups failed as a status when I print a test page.

I have researched on Google extensively. I have run hp-plugin and installed that from a recommended site but to no avail.

I had this working under FC15 which was upgraded from previous FC versions but cant remember how.

Having turned on Cups debug logging (debug2) I found this for a test page print

D [16/Nov/2011:09:00:11 +0000] [Job 37] Error: This module is designed to work with HP Printers only
D [16/Nov/2011:09:00:11 +0000] [Job 37] STATE: +hplip.plugin-error
d [16/Nov/2011:09:00:11 +0000] cupsdSetPrinterReasons(p=0x7f3ea536c6e0(Hewlett-Packard-HP-Color-LaserJet-CP1217),s="+hplip.plugin-error"
D [16/Nov/2011:09:00:11 +0000] [Job 37] prnt/hpcups/HPCupsFilter.cpp 418: m_Job initialization failed with error = 48

It would seem that hplip does not recognise the CP1217 as an HP printer???

So I have now tried hp-setup and this cannot see the printer when plugged into a usb port on the front of the computer - strangely though the print manager sees it and tries to install and if I monitor udev I can see the bus responding. lsusb also sees the printer.

Finally I have done a complete reinstall of FC16 but still get the hpcups fail message - have not yet checked the logs with debugging turn in to see if the same failure message appears in Cups error_log

Have looked at current hplip source and it seems to support the product ID being reported by lsusb 4717 and am now rather stumped!

Regards

Davi

Changed in hplip:
assignee: nobody → Sarbeswar Meher (sarbeswar-meher)
status: New → Fix Committed
Revision history for this message
David Charlton (uhdoch065) wrote :

Have now tried with debug2 cups logging and don't see the line about module being designed to work with HP Printers only (searched for "design" - nothing). However still get the hplip.plugin error and code 48 - see error log below.

The "design" line occurred while trying various things and after (I think) I had manually installed the plugin direct from the sourceforge site.

I am now running with a completely clean install from fedora (16) to get this error log and of course no hp-setup detection of the printer.

--------------------------------

D [17/Nov/2011:07:56:31 +0000] [Job 4] Read 91 bytes of print data...
D [17/Nov/2011:07:56:31 +0000] [Job 4] STATE: -media-empty-warning
d [17/Nov/2011:07:56:31 +0000] cupsdSetPrinterReasons(p=0x7f6ad3eb1d80(HP-Color-LaserJet-CP1217),s="-media-empty-warning"
D [17/Nov/2011:07:56:31 +0000] [Job 4] STATE: -offline-report
d [17/Nov/2011:07:56:31 +0000] cupsdSetPrinterReasons(p=0x7f6ad3eb1d80(HP-Color-LaserJet-CP1217),s="-offline-report"
I [17/Nov/2011:07:56:31 +0000] [Job 4] Printer is now connected.
D [17/Nov/2011:07:56:31 +0000] [Job 4] Set job-printer-state-message to "Printer is now connected.", current level=INFO
D [17/Nov/2011:07:56:31 +0000] [Job 4] Wrote 91 bytes of print data...
D [17/Nov/2011:07:56:31 +0000] [Job 4] STATE: +hplip.plugin-error
d [17/Nov/2011:07:56:31 +0000] cupsdSetPrinterReasons(p=0x7f6ad3eb1d80(HP-Color-LaserJet-CP1217),s="+hplip.plugin-error"
d [17/Nov/2011:07:56:31 +0000] cupsdAddEvent(event=job-progress, dest=0x7f6ad3eb1d80(HP-Color-LaserJet-CP1217), job=0x7f6ad3ea87b0(4), text="%s", ...)
D [17/Nov/2011:07:56:31 +0000] Discarding unused job-progress event...
d [17/Nov/2011:07:56:31 +0000] cupsdAddEvent(event=printer-state-changed, dest=0x7f6ad3eb1d80(HP-Color-LaserJet-CP1217), job=(nil)(0), text="Printer "%s" state changed.", ...)
d [17/Nov/2011:07:56:31 +0000] cupsd_send_notification(sub=0x7f6ad3f37010(8), event=0x7f6ad3f4d700(printer-state-changed))
D [17/Nov/2011:07:56:31 +0000] cupsdMarkDirty(-----S)
D [17/Nov/2011:07:56:31 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [17/Nov/2011:07:56:31 +0000] [Job 4] prnt/hpcups/HPCupsFilter.cpp 418: m_Job initialization failed with error = 48
D [17/Nov/2011:07:56:31 +0000] [Job 4] Read 16 bytes of print data...
D [17/Nov/2011:07:56:31 +0000] [Job 4] Wrote 16 bytes of print data...
d [17/Nov/2011:07:56:31 +0000] process_children()
d [17/Nov/2011:07:56:31 +0000] cupsdFinishProcess(pid=12377, name=0x7fffdf76d1b0, namelen=1024, job_id=0x7fffdf76d1ac(4)) = "/usr/lib/cups/filter/hpcups"
D [17/Nov/2011:07:56:31 +0000] PID 12377 (/usr/lib/cups/filter/hpcups) stopped with status 1.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

HPLIP 3.11.10 hasn't been supported yet with fedora 16. You will get the fedora 16 support in the next version of hplip.
You might have installed the hplip package shipped with the distro.
My suggestion please download the hplip-3.11.10.tar.gz (source) from http://superb-dca2.dl.sourceforge.net/project/hplip/hplip/3.11.10/hplip-3.11.10.tar.gz . Follow the below steps to install it.

Option 1:

1. tar -xvf hplip-3.11.10.tar.gz ( Untar the file)
2. cd hplip-3.11.10 (change directory to hplip-3.11.10)
3. gedit installer/distros.dat.
4. Apply the patch that is attached to this file and save it.
5. run ./install.py for auto installation to work with fedora 16 and to install all the dependencies required for hplip.

Option 2:

Follow the link http://hplipopensource.com/hplip-web/install/manual/distros/fedora_core.html for manual installation.

After completing the installation. Retest and let us know on the same.

Thanks,
Goutam Kodu

Changed in hplip:
assignee: Sarbeswar Meher (sarbeswar-meher) → goutamkk (goutam-hplip)
Revision history for this message
goutam kodu (goutam-hplip) wrote :
Revision history for this message
David Charlton (uhdoch065) wrote :

Fedora 16 comes with 3.11.10.

However in the interim I have run hp-check, identified that it is apparently not seeing the printer on the usb port because it does not recognise the model. I believe cp1217 is identical to cp1215. So I copied the cp1215 section of the model data and labelled it 1217. Hey presto it works I can see the printer, install it via hp-setup and it prints.

Revision history for this message
David Charlton (uhdoch065) wrote :

OK output from hp-check is attached. Printer is currently working when directly connected to USB port with either hpcups or hpijs drivers. However this only works when the file /usr/share/hplip/data/models/models.dat is modified to replicate the CP1215 section as a CP1217 section - with 1217 replacing 1215 where appropriate.

Right. Neither the hpcups or hpijs approach works when this printer is disconnected from the usb port and reconnected to a ReadyNAS Duo working as a print server - an arrangement I have had work on Linux in the past and still works under Windows 7.

In the case of hpcups it fails because of a plugin error. hp-check cannot find it as a networked printer when it searches.

In the case of hpijs it fails because the ghostscript command to render the postscript fails. This seems to be because it does not like using "HP Laserjet 2600n" as the printer model - no idea where this comes from. However it does seem that gs is using hpijs.cpp in some way to rasterise it - I just dont understand how. It is this route hpijs and I guess the contents of ghostscript that is generating the "This module is designed to work with HP Printers only" message which is why I can't find it in the source of hplip and associated files/packages.

This seems thoroughly broken in Fedora 16/hplip 3.11.10 but it works using Windows 7 to the print server and worked in the past with Fedora 15!

Finally, as can be seen from the hp-check output I have 3.11.10 installed

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) wrote :

For plugin error, please run the below command.

su -c "hp-plugin"

It will download and install the plugin.

Revision history for this message
David Charlton (uhdoch065) wrote :

Not sure whether this to fix the model file issue or the network issue but have done it anyway and checked whether the networked printer works. - It does not- see attached hp-check output (with -ldebug set)

thanks

David

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

The modification that you have done in models.dat file to make identify the cp1217 printer of yours is fine.
You need to configure the printer using "hp-setup" command.
Firstly get the IP address of the printer.
Run "hp-setup" command there opens up a nice GUI window. Click on the Show Advance Options and inside that check on the Manual Discovery and provide the IP address of the printer there and proceed to next.

Let us know if the device is detected and get configured.

Thanks & Regards,
Goutam Kodu

Revision history for this message
David Charlton (uhdoch065) wrote :

OK. Tried that.

If I select the "Network" radio button and choose Advanced options I can then enter the IP address 192.168.0.15 into the relevant field. No idea what it expects as the jetdirect port so leave that as 1 (have tried all options) but it does not find the printer.

sorry :-)

Revision history for this message
David Charlton (uhdoch065) wrote :

Hi,

Not seen much here recently. The printer is attached to a NAS which runs linux/cups version? (I can check) I can print to it from windows 7 and Vista machines over the network. I can print direct to printer if I plug it into the Fedora box directly (via USB) but I cannot configure it to work over the network from the Fedora box

Regards

Revision history for this message
David Charlton (uhdoch065) wrote :

No fixed - will look for a proper postscript printer next time!

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi David,

Sorry for inconvenience, please make following changes to work cp1217 printer.

1) go HPLIP directory (if HPLIP-3.11.12.run is downloaded to Desktop. please change version and path according to you)
$ cd ~/Desktop/hplip-3.11.12

2) edit prnt/drv/hpcups.drv file to update 1217
$ gedit prnt/drv/hpcups.drv &
--> search for "cp1215" and replace with "cp1217"

3) edit data/models/models.dat file to update 1217
$ gedit data/models/models.dat &
--> search for "cp1215" and replace with "cp1217"
--> search for "CP1215" and replace with "CP1217"

4) run configure
$ ./configure --prefix=/usr

5) run make
$ make

6) run install
$ sudo make install

--> try to connect printer now.. it should work now.
Please let us know if you find any issues.

We will fix this issue for next HPLIP build.

Thanks & Regards,
Amarnath

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.