HP LaserJet P1005 / P1007 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
P1005 - nothing printed. Slackware current (20100303) [solved; using foo2zjs is WRONG]
Posted by: pmalves ()
Date: March 03, 2010 11:55AM

Hey there.


Read through a lot of topics and followed the instructions. No print.

Here's some info:

$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1005;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1005;FWVER:20080415;

This seems to be the correct output, afaict. When I stop/start the printer I see hotplug uploading the firmware.


Here's what I did then:

$ foo2zjs-wrapper testpage.ps > testpage.zm
$ zjsdecode < testpage.zm (lots of info there, I'd say it's ok)
$ cp testpage.zm /dev/usb/lp0 <- no output. Same for cat testpage.zm > /dev/usb/lp0


Additional info:

dmesg:

usb 1-1: new high speed USB device using ehci_hcd and address 7
usb 1-1: New USB device found, idVendor=03f0, idProduct=3d17
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HP LaserJet P1005
usb 1-1: Manufacturer: Hewlett-Packard
usb 1-1: SerialNumber: BC1J6GA
usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17

$ ls -lFs /dev/usb/lp0
0 crw-rw-rw- 1 root lp 180, 0 2010-03-03 16:52 /dev/usb/lp0


Running this as root is the same, so doesn't seem like permissions


Any help is appreciated

Thanks



Edited 2 time(s). Last edit at 03/03/2010 01:33PM by rickrich.

Options: ReplyQuote
Re: P1005 - nothing printed. Slackware current (20100303), kernel 2.6.33
Posted by: pmalves ()
Date: March 03, 2010 11:57AM

Forgot to add, gs version: GPL Ghostscript 8.71 (2010-02-10)

Options: ReplyQuote
Re: P1005 - nothing printed. Slackware current (20100303), kernel 2.6.33
Posted by: rickrich ()
Date: March 03, 2010 12:10PM

$ foo2zjs-wrapper testpage.ps > testpage.zm

Is wrong!

$ foo2xqx-wrapper testpage.ps >xxx
$ cp xxx /dev/usb/lp0

Is right!!!
foo2xqx-wrapper(1)                                          foo2xqx-wrapper(1)

NAME
       foo2xqx-wrapper - Convert Postscript into a XQX printer stream

SYNOPSIS
       foo2xqx-wrapper [options] [ps-file]

DESCRIPTION
       foo2xqx-wrapper  is  a  Foomatic  compatible  printer  wrapper  for the
       foo2xqx printer driver.  This script  reads  a  Postscript  ps-file  or
       standard input and converts it to XQX printer format for driving the HP
       LaserJet M1005 MFP and other XQX-based printers

Options: ReplyQuote
Re: P1005 - nothing printed from cups . Slackware current (20100303), kernel 2.6.33
Posted by: pmalves ()
Date: March 03, 2010 12:42PM

Silly me. It works indeed. However, not from cups. I increased the log info


D [03/Mar/2010:17:36:05 +0000] [Job 544] Starting renderer with command: "/usr/local/bin/foo2xqx
-wrapper -r1200x600 -p9 -m1 -s7 -d1 -n1 "
D [03/Mar/2010:17:36:05 +0000] [Job 544] Starting process "kid3" (generation 1)
D [03/Mar/2010:17:36:05 +0000] [Job 544]
D [03/Mar/2010:17:36:05 +0000] [Job 544] -----------
D [03/Mar/2010:17:36:05 +0000] [Job 544] New page: %%Page: 1 2
D [03/Mar/2010:17:36:05 +0000] [Job 544] Found: %%Page: 1 2
D [03/Mar/2010:17:36:05 +0000] [Job 544] --> Output goes to the FIFO buffer now.
D [03/Mar/2010:17:36:05 +0000] [Job 544]
D [03/Mar/2010:17:36:05 +0000] [Job 544]
D [03/Mar/2010:17:36:05 +0000] [Job 544] Found: %%BeginPageSetup
D [03/Mar/2010:17:36:05 +0000] [Job 544] Inserting option code into "PageSetup" section.
D [03/Mar/2010:17:36:05 +0000] [Job 544] Flushing FIFO.
D [03/Mar/2010:17:36:05 +0000] [Job 544]
D [03/Mar/2010:17:36:05 +0000] [Job 544] Closing renderer
D [03/Mar/2010:17:36:05 +0000] [Job 544] Starting process "kid4" (generation 2)
D [03/Mar/2010:17:36:05 +0000] [Job 544] Starting process "renderer" (generation 2)
D [03/Mar/2010:17:36:05 +0000] [Job 544] JCL: ESC%-12345X@PJL
D [03/Mar/2010:17:36:05 +0000] [Job 544] <job data>
D [03/Mar/2010:17:36:05 +0000] [Job 544]
D [03/Mar/2010:17:36:08 +0000] [Job 544] PAGE: 1 1
D [03/Mar/2010:17:36:08 +0000] Discarding unused job-progress event...
D [03/Mar/2010:17:36:08 +0000] [Job 544] renderer exited with status 0
D [03/Mar/2010:17:36:10 +0000] [Job 544] usb_find_busses=0
D [03/Mar/2010:17:36:10 +0000] [Job 544] usb_find_devices=0
D [03/Mar/2010:17:36:10 +0000] [Job 544] STATE: +connecting-to-device
D [03/Mar/2010:17:36:10 +0000] [Job 544] STATE: -connecting-to-device
D [03/Mar/2010:17:36:10 +0000] Discarding unused printer-state-changed event...
I [03/Mar/2010:17:36:10 +0000] [Job 544] Waiting for printer to become available...
D [03/Mar/2010:17:36:10 +0000] Discarding unused printer-state-changed event...
D [03/Mar/2010:17:36:10 +0000] Discarding unused job-progress event...
D [03/Mar/2010:17:36:15 +0000] [Job 544] usb_find_busses=0
D [03/Mar/2010:17:36:15 +0000] [Job 544] usb_find_devices=0
D [03/Mar/2010:17:36:15 +0000] [Job 544] STATE: +connecting-to-device
D [03/Mar/2010:17:36:15 +0000] Discarding unused printer-state-changed event...
D [03/Mar/2010:17:36:15 +0000] [Job 544] STATE: -connecting-to-device
D [03/Mar/2010:17:36:15 +0000] Discarding unused printer-state-changed event...
I [03/Mar/2010:17:36:15 +0000] [Job 544] Waiting for printer to become available...
D [03/Mar/2010:17:36:15 +0000] Discarding unused printer-state-changed event...
D [03/Mar/2010:17:36:15 +0000] Discarding unused job-progress event...
D [03/Mar/2010:17:36:20 +0000] [Job 544] usb_find_busses=0
D [03/Mar/2010:17:36:20 +0000] [Job 544] usb_find_devices=0
D [03/Mar/2010:17:36:20 +0000] [Job 544] STATE: +connecting-to-device
D [03/Mar/2010:17:36:20 +0000] Discarding unused printer-state-changed event...
D [03/Mar/2010:17:36:20 +0000] [Job 544] STATE: -connecting-to-device
D [03/Mar/2010:17:36:20 +0000] Discarding unused printer-state-changed event...
I [03/Mar/2010:17:36:20 +0000] [Job 544] Waiting for printer to become available...
D [03/Mar/2010:17:36:20 +0000] Discarding unused printer-state-changed event...


I have this on dmesg (lots of lines):

usb 1-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1


Any tips?

Options: ReplyQuote
Re: P1005 - nothing printed. Slackware current (20100303), kernel 2.6.33 [solved; using foo2zjs is WRONG]
Posted by: rickrich ()
Date: March 03, 2010 01:23PM

From INSTALL:

CUPS USB NOTES
--------------
    If you are using the USB port, then the URI should be:
        usb:/dev/usb/lp0
        usb:/dev/usb/lp1
    OR
        usb://Samsung/CLP-310%20Series
        usb://Samsung/CLP-310%20Series
        usb://HP/Color%20LaserJet%20CP1215
        usb://HP/Color%20LaserJet%202600n
        usb://HP/LaserJet%201000
        usb://HP/LaserJet%201005
        usb://HP/LaserJet%201018
        usb://HP/LaserJet%201020
        usb://HP/LaserJet%20P1005
        usb://HP/LaserJet%20P1006
        usb://HP/LaserJet%20P1505

    Don't use hp://<whatever> because that is for hplip (a closed source,
    proprietary driver).


Options: ReplyQuote
Re: P1005 - nothing printed. Slackware current (20100303) [solved; using foo2zjs is WRONG]
Posted by: pmalves ()
Date: March 03, 2010 06:43PM

I saw that note, I'm using usb:/dev/usb/lp0 . hplip isn't running at all.

Is there anything on my logs that points other way? Maybe I'm missing something obvious

Options: ReplyQuote
Re: P1005 - nothing printed. Slackware current (20100303) [solved; using foo2zjs is WRONG]
Posted by: rickrich ()
Date: March 03, 2010 08:53PM

Try:
       
    usb://HP/LaserJet%201005
and/or:
       
    file:/dev/usb/lp0
with /etc/cups/cupsd.conf set to:
...
FileDevice Yes
...

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.