Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Abel Abraham Camarillo Ojeda-2
I'm unsuccesfully trying to make this HP printer... to print... (this
is a new printer
I have already printed with windows XP, and on this OpenBSD box using foo2zjs
instead of hpijs, but it only works via usb, not network...):


If I:

    $ lpr ~/xyguide.ps;

I get this on /tmp/foomatic-rip.log:

prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
**** Unable to open the initial device, quitting.
prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2

I'm using the following packages:

foomatic-db-4.0.20100821p0
foomatic-db-engine-4.0.5
foomatic-db-gutenprint-5.2.6
foomatic-filters-4.0.5
hpcups-3.10.9
hpijs-3.10.9
hplip-3.10.9
hplip-libs-3.10.9

/etc/printcap:
#       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#       :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

lp|Hp LaserJet p1606dn:\
       :lp=/dev/ugen0.01:\
       :rp=raw:\
       :sd=/var/spool/output:\
       :lf=/var/log/lpd-errs:\
       :if=/usr/local/bin/foomatic-rip:\
       :af=/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd:\
       :sh:

#:rm=guten.00z:\

#rp|remote line printer:\
#       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

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

Log of foomatic-rip:
foomatic-rip version 4.0.5.223 running...
called with arguments: '-w132', '-l66', '-i0', '-n', 'the00z', '-j',
'xyguide.ps', '-h', 'maetel.00z',
'/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd'
Parsing PPD file ...
Added option Resolution
Added option PageSize
Added option Model
Added option PrintoutMode
Added option MediaType
Added option InputSlot
Added option Quality
Added option ImageableArea
Added option PaperDimension
Added option Font

Parameter Summary
-----------------

Spooler: lpd
Printer:
Shell: /bin/ksh
PPD file: /etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd
ATTR file:
Printer model: HP LaserJet Professional p1606dn hpijs, 3.10.6.15,
requires proprietary plugin
Options: xyguide.ps
Job title: xyguide.ps
File(s) to be printed:
<STDIN>

Printing system options:
Pondering option 'xyguide.ps'
Unknown boolean option "xyguide.ps".
Options from the PPD file:
Starting process "reset-file" (generation 1)
reset-file exited with status 0

================================================

File: <STDIN>

================================================

Filetype: PostScript
Reading PostScript input ...
--> This document is DSC-conforming!
Job claims to be DSC-conforming, but "%%BeginProlog" was missing
before first line with another"%%BeginProlog" comment (is this a
TeX/LaTeX/dvips-generated PostScript file?). Assuming start of
"Prolog" here.
Inserting option code into "Prolog" section.

-----------
Found: %%BeginProlog
Found: %%EndProlog

-----------
Found: %%BeginSetup
Inserting option code into "Setup" section.
Found: %%EndSetup

-----------
New page: %%Page: 1 1

Found: %%BeginPageSetup
Inserting option code into "PageSetup" section.
New page found but previous not printed, print it now.
Found: %%Page: 2 2
 --> Output goes directly to the renderer now.


Starting renderer with command: "/usr/local/bin/gs -sstdout=%stderr
-dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs
-sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
-sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet
1018" -r600 -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:PenSet=0,PS:MediaPosition=7
-dIjsUseOutputFD -sOutputFile=%stdout -_"
Starting process "kid3" (generation 1)
Starting process "kid4" (generation 2)
Starting process "renderer" (generation 2)
JCL:  %-12345X@PJL
<job data>

prnt/hpijs/services.cpp 760: dBus Connection Error (Failed to connect
to socket /var/run/dbus/system_bus_socket: No such file or directory)!
prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
**** Unable to open the initial device, quitting.
prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe

-----------
New page: %%Page: 2 2
tee: stdout: Broken pipe
tee: Found: %%Page: 2 2
 --> Output goes to the FIFO buffer now.

stdout:
Found: %%BeginPageSetup
Inserting option code into "PageSetup" section.
Broken pipe
Flushing FIFO.
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe

Closing renderer
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
tee: stdout: Broken pipe
renderer exited with status 1
Possible error on renderer command line or PostScript error. Check
options.kid3 exited with status 3
Process is dying with "Error closing renderer
", exit stat 3
Cleaning up...

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Antoine Jacoutot-7
On Wed, 3 Nov 2010, Abel Abraham Camarillo Ojeda wrote:

<...>
> prnt/hpijs/services.cpp 760: dBus Connection Error (Failed to connect
> to socket /var/run/dbus/system_bus_socket: No such file or directory)!
> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
> **** Unable to open the initial device, quitting.
> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2

You are obviously not running DBus.


> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
>
> -----------
> New page: %%Page: 2 2
> tee: stdout: Broken pipe
> tee: Found: %%Page: 2 2
>  --> Output goes to the FIFO buffer now.
>
> stdout:
> Found: %%BeginPageSetup
> Inserting option code into "PageSetup" section.
> Broken pipe
> Flushing FIFO.
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
>
> Closing renderer
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> renderer exited with status 1
> Possible error on renderer command line or PostScript error. Check
> options.kid3 exited with status 3
> Process is dying with "Error closing renderer
> ", exit stat 3
> Cleaning up...
>
>

--
Antoine

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Jan Stary
In reply to this post by Abel Abraham Camarillo Ojeda-2
On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
> I'm unsuccesfully trying to make this HP printer... to print... (this
> is a new printer
> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
> instead of hpijs, but it only works via usb, not network...):

So why don't you continue printing with foo2zjs?

>
> If I:
>
>     $ lpr ~/xyguide.ps;
>
> I get this on /tmp/foomatic-rip.log:
>
> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
> **** Unable to open the initial device, quitting.
> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
>
> I'm using the following packages:
>
> foomatic-db-4.0.20100821p0
> foomatic-db-engine-4.0.5
> foomatic-db-gutenprint-5.2.6
> foomatic-filters-4.0.5
> hpcups-3.10.9
> hpijs-3.10.9
> hplip-3.10.9
> hplip-libs-3.10.9
>
> /etc/printcap:
> #       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $
>
> #lp|local line printer:\
> #       :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
>
> lp|Hp LaserJet p1606dn:\
>        :lp=/dev/ugen0.01:\
             ^^^^^^^^^^^^^^

You are still printing via USB, not "network".

>        :rp=raw:\
>        :sd=/var/spool/output:\
>        :lf=/var/log/lpd-errs:\
>        :if=/usr/local/bin/foomatic-rip:\
>        :af=/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd:\
>        :sh:
>
> #:rm=guten.00z:\
>
> #rp|remote line printer:\
> #       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
>
> ---------------------
>
> Log of foomatic-rip:
> foomatic-rip version 4.0.5.223 running...
> called with arguments: '-w132', '-l66', '-i0', '-n', 'the00z', '-j',
> 'xyguide.ps', '-h', 'maetel.00z',
> '/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd'
> Parsing PPD file ...
> Added option Resolution
> Added option PageSize
> Added option Model
> Added option PrintoutMode
> Added option MediaType
> Added option InputSlot
> Added option Quality
> Added option ImageableArea
> Added option PaperDimension
> Added option Font
>
> Parameter Summary
> -----------------
>
> Spooler: lpd
> Printer:
> Shell: /bin/ksh
> PPD file: /etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd
> ATTR file:
> Printer model: HP LaserJet Professional p1606dn hpijs, 3.10.6.15,
> requires proprietary plugin
> Options: xyguide.ps
> Job title: xyguide.ps
> File(s) to be printed:
> <STDIN>
>
> Printing system options:
> Pondering option 'xyguide.ps'
> Unknown boolean option "xyguide.ps".
> Options from the PPD file:
> Starting process "reset-file" (generation 1)
> reset-file exited with status 0
>
> ================================================
>
> File: <STDIN>
>
> ================================================
>
> Filetype: PostScript
> Reading PostScript input ...
> --> This document is DSC-conforming!
> Job claims to be DSC-conforming, but "%%BeginProlog" was missing
> before first line with another"%%BeginProlog" comment (is this a
> TeX/LaTeX/dvips-generated PostScript file?). Assuming start of
> "Prolog" here.
> Inserting option code into "Prolog" section.
>
> -----------
> Found: %%BeginProlog
> Found: %%EndProlog
>
> -----------
> Found: %%BeginSetup
> Inserting option code into "Setup" section.
> Found: %%EndSetup
>
> -----------
> New page: %%Page: 1 1
>
> Found: %%BeginPageSetup
> Inserting option code into "PageSetup" section.
> New page found but previous not printed, print it now.
> Found: %%Page: 2 2
>  --> Output goes directly to the renderer now.
>
>
> Starting renderer with command: "/usr/local/bin/gs -sstdout=%stderr
> -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs
> -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
> -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet
> 1018" -r600 -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:PenSet=0,PS:MediaPosition=7
> -dIjsUseOutputFD -sOutputFile=%stdout -_"
> Starting process "kid3" (generation 1)
> Starting process "kid4" (generation 2)
> Starting process "renderer" (generation 2)
> JCL:  %-12345X@PJL
> <job data>
>
> prnt/hpijs/services.cpp 760: dBus Connection Error (Failed to connect
> to socket /var/run/dbus/system_bus_socket: No such file or directory)!

Is dbus running?

> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
> **** Unable to open the initial device, quitting.
> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
>
> -----------
> New page: %%Page: 2 2
> tee: stdout: Broken pipe
> tee: Found: %%Page: 2 2
>  --> Output goes to the FIFO buffer now.
>
> stdout:
> Found: %%BeginPageSetup
> Inserting option code into "PageSetup" section.
> Broken pipe
> Flushing FIFO.
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
>
> Closing renderer
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> tee: stdout: Broken pipe
> renderer exited with status 1
> Possible error on renderer command line or PostScript error. Check
> options.kid3 exited with status 3
> Process is dying with "Error closing renderer
> ", exit stat 3
> Cleaning up...

Yeah, I hate foo* chain's logging too.

Anyway, this is what works for me on 4.8-current,
using HP LaserJet 2600n (same shit, doesn't speak PS,
you need a PPD file and all that):

$ cat /etc/printcap
lp|HP Color laserJet 2600n:\
        :lp=/dev/ulpt0:\
        :af=/etc/foomatic/HP-Color_LaserJet_2600n.ppd:\
        :if=/usr/local/bin/foomatic-rip:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:\
        :sh:

Note how it uses /dev/ulpt0 instead of
what pkg_info -M foo2zjs-20100728p0 is telling you:

Information for inst:foo2zjs-20100728p0

        Install notice:
        USB printers must attach as a ugen(4) device which means you need to
        disable ulpt(4) in your kernel - see config(8).
        Your device will be available at /dev/ugenN.EE, where N is the device
        number and EE its endoint.
        e.g. lp=/dev/ugen0.02 for lpd(8) and usb:/dev/ugen0.02 for cupsd(8).


$ pkg_info | grep foo
foo2zjs-20100728p0 driver for ZjStream wire protocol compatible printers
foomatic-filters-4.0.4p5 Foomatic PPD print filters

The PPD file comes from the foo2zjs-20100728p0 package.

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Abel Abraham Camarillo Ojeda-2
In reply to this post by Antoine Jacoutot-7
Oh, Yep, I forget to attach that "other" logfile, when I start dbus as:

# dbus --system;

Only the Dbus line goes away:

prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
**** Unable to open the initial device, quitting.
prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2

On Thu, Nov 4, 2010 at 12:30 AM, Antoine Jacoutot <[hidden email]> wrote:

> On Wed, 3 Nov 2010, Abel Abraham Camarillo Ojeda wrote:
>
> <...>
>> prnt/hpijs/services.cpp 760: dBus Connection Error (Failed to connect
>> to socket /var/run/dbus/system_bus_socket: No such file or directory)!
>> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
>> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
>> **** Unable to open the initial device, quitting.
>> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
>
> You are obviously not running DBus.
>
>
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>>
>> -----------
>> New page: %%Page: 2 2
>> tee: stdout: Broken pipe
>> tee: Found: %%Page: 2 2
>>  --> Output goes to the FIFO buffer now.
>>
>> stdout:
>> Found: %%BeginPageSetup
>> Inserting option code into "PageSetup" section.
>> Broken pipe
>> Flushing FIFO.
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>>
>> Closing renderer
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> renderer exited with status 1
>> Possible error on renderer command line or PostScript error. Check
>> options.kid3 exited with status 3
>> Process is dying with "Error closing renderer
>> ", exit stat 3
>> Cleaning up...
>>
>>
>
> --
> Antoine
>

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Abel Abraham Camarillo Ojeda-2
In reply to this post by Jan Stary
On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[hidden email]> wrote:
> On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
>> I'm unsuccesfully trying to make this HP printer... to print... (this
>> is a new printer
>> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
>> instead of hpijs, but it only works via usb, not network...):
>
> So why don't you continue printing with foo2zjs?
>

foo2zjs works awesome with usb, but doesn't work with network (or I
don't know how
to configure it exactly, I'm going to put a sniffer on a windows
machine when it's printing
today and try to see what magic it does), anyway I bought this printer
_just_ for the
network printing (and the nasty HPlip page lied to me...).

>>
>> If I:
>>
>>     $ lpr ~/xyguide.ps;
>>
>> I get this on /tmp/foomatic-rip.log:
>>
>> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
>> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
>> **** Unable to open the initial device, quitting.
>> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
>>
>> I'm using the following packages:
>>
>> foomatic-db-4.0.20100821p0
>> foomatic-db-engine-4.0.5
>> foomatic-db-gutenprint-5.2.6
>> foomatic-filters-4.0.5
>> hpcups-3.10.9
>> hpijs-3.10.9
>> hplip-3.10.9
>> hplip-libs-3.10.9
>>
>> /etc/printcap:
>> #       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $
>>
>> #lp|local line printer:\
>> #       :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
>>
>> lp|Hp LaserJet p1606dn:\
>>        :lp=/dev/ugen0.01:\
>             ^^^^^^^^^^^^^^
>
> You are still printing via USB, not "network".
>
>>        :rp=raw:\
>>        :sd=/var/spool/output:\
>>        :lf=/var/log/lpd-errs:\
>>        :if=/usr/local/bin/foomatic-rip:\
>>        :af=/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd:\
>>        :sh:
>>
>> #:rm=guten.00z:\
>>
>> #rp|remote line printer:\
>> #       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
>>
>> ---------------------
>>
>> Log of foomatic-rip:
>> foomatic-rip version 4.0.5.223 running...
>> called with arguments: '-w132', '-l66', '-i0', '-n', 'the00z', '-j',
>> 'xyguide.ps', '-h', 'maetel.00z',
>> '/etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd'
>> Parsing PPD file ...
>> Added option Resolution
>> Added option PageSize
>> Added option Model
>> Added option PrintoutMode
>> Added option MediaType
>> Added option InputSlot
>> Added option Quality
>> Added option ImageableArea
>> Added option PaperDimension
>> Added option Font
>>
>> Parameter Summary
>> -----------------
>>
>> Spooler: lpd
>> Printer:
>> Shell: /bin/ksh
>> PPD file: /etc/foomatic/hp-laserjet_professional_p1606dn-hpijs.ppd
>> ATTR file:
>> Printer model: HP LaserJet Professional p1606dn hpijs, 3.10.6.15,
>> requires proprietary plugin
>> Options: xyguide.ps
>> Job title: xyguide.ps
>> File(s) to be printed:
>> <STDIN>
>>
>> Printing system options:
>> Pondering option 'xyguide.ps'
>> Unknown boolean option "xyguide.ps".
>> Options from the PPD file:
>> Starting process "reset-file" (generation 1)
>> reset-file exited with status 0
>>
>> ================================================
>>
>> File: <STDIN>
>>
>> ================================================
>>
>> Filetype: PostScript
>> Reading PostScript input ...
>> --> This document is DSC-conforming!
>> Job claims to be DSC-conforming, but "%%BeginProlog" was missing
>> before first line with another"%%BeginProlog" comment (is this a
>> TeX/LaTeX/dvips-generated PostScript file?). Assuming start of
>> "Prolog" here.
>> Inserting option code into "Prolog" section.
>>
>> -----------
>> Found: %%BeginProlog
>> Found: %%EndProlog
>>
>> -----------
>> Found: %%BeginSetup
>> Inserting option code into "Setup" section.
>> Found: %%EndSetup
>>
>> -----------
>> New page: %%Page: 1 1
>>
>> Found: %%BeginPageSetup
>> Inserting option code into "PageSetup" section.
>> New page found but previous not printed, print it now.
>> Found: %%Page: 2 2
>>  --> Output goes directly to the renderer now.
>>
>>
>> Starting renderer with command: "/usr/local/bin/gs -sstdout=%stderr
>> -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs
>> -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
>> -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet
>> 1018" -r600 -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:PenSet=0,PS:MediaPosition=7
>> -dIjsUseOutputFD -sOutputFile=%stdout -_"
>> Starting process "kid3" (generation 1)
>> Starting process "kid4" (generation 2)
>> Starting process "renderer" (generation 2)
>> JCL:  %-12345X@PJL
>> <job data>
>>
>> prnt/hpijs/services.cpp 760: dBus Connection Error (Failed to connect
>> to socket /var/run/dbus/system_bus_socket: No such file or directory)!
>
> Is dbus running?
>
>> prnt/hpijs/hpijs.cpp 268: unable to set device=HP LaserJet 1018, err=48
>> prnt/hpijs/hpijs.cpp 289: unable to set device=HP LaserJet 1018, err=48
>> **** Unable to open the initial device, quitting.
>> prnt/hpijs/hpijs.cpp 694: unable to read client data err=-2
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>>
>> -----------
>> New page: %%Page: 2 2
>> tee: stdout: Broken pipe
>> tee: Found: %%Page: 2 2
>>  --> Output goes to the FIFO buffer now.
>>
>> stdout:
>> Found: %%BeginPageSetup
>> Inserting option code into "PageSetup" section.
>> Broken pipe
>> Flushing FIFO.
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>>
>> Closing renderer
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> tee: stdout: Broken pipe
>> renderer exited with status 1
>> Possible error on renderer command line or PostScript error. Check
>> options.kid3 exited with status 3
>> Process is dying with "Error closing renderer
>> ", exit stat 3
>> Cleaning up...
>
> Yeah, I hate foo* chain's logging too.
>
> Anyway, this is what works for me on 4.8-current,
> using HP LaserJet 2600n (same shit, doesn't speak PS,
> you need a PPD file and all that):
>
> $ cat /etc/printcap
> lp|HP Color laserJet 2600n:\
>        :lp=/dev/ulpt0:\
>        :af=/etc/foomatic/HP-Color_LaserJet_2600n.ppd:\
>        :if=/usr/local/bin/foomatic-rip:\
>        :sd=/var/spool/output:\
>        :lf=/var/log/lpd-errs:\
>        :sh:


lp|Hp LaserJet p1606dn:\
        :lp=/dev/ugen0.01:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:\
        :if=/usr/local/bin/foomatic-rip:\
        :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
        :rp=raw:\
        :sh:

With that I got pretty printing... (only with usb).

> Note how it uses /dev/ulpt0 instead of
> what pkg_info -M foo2zjs-20100728p0 is telling you:
>
> Information for inst:foo2zjs-20100728p0
>
>        Install notice:
>        USB printers must attach as a ugen(4) device which means you need to
>        disable ulpt(4) in your kernel - see config(8).
>        Your device will be available at /dev/ugenN.EE, where N is the device
>        number and EE its endoint.
>        e.g. lp=/dev/ugen0.02 for lpd(8) and usb:/dev/ugen0.02 for cupsd(8).
>
>
> $ pkg_info | grep foo
> foo2zjs-20100728p0       driver for ZjStream wire protocol compatible printers
> foomatic-filters-4.0.4p5 Foomatic PPD print filters
>
> The PPD file comes from the foo2zjs-20100728p0 package.
>
>

lp|Hp LaserJet p1606dn:\
        :lp=:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:\
        :if=/usr/local/bin/foomatic-rip:\
        :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
        :rm=172.16.0.15:\
        :rp=raw:\
        :sh:

With that I only got the plain text of a *.ps file out of the printer:

%!PS-Adobe-3.0
                          % Produced by xpdf/pdftops 3.02

         %% Creator: GPL Ghostscript...

(with the same identation).

The printing command is:

$ lpr ~/xypic.ps;

(Or any other *.ps file).

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Antoine Jacoutot-7
On Thu, 4 Nov 2010, Abel Abraham Camarillo Ojeda wrote:

> On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[hidden email]> wrote:
> > On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
> >> I'm unsuccesfully trying to make this HP printer... to print... (this
> >> is a new printer
> >> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
> >> instead of hpijs, but it only works via usb, not network...):
> >
> > So why don't you continue printing with foo2zjs?
> >
>
> foo2zjs works awesome with usb, but doesn't work with network (or I
> don't know how
> to configure it exactly, I'm going to put a sniffer on a windows
> machine when it's printing
> today and try to see what magic it does), anyway I bought this printer
> _just_ for the
> network printing (and the nasty HPlip page lied to me...).

I've added an entry in want.html months ago asking for HP gear.
I just cannot test all printers and the HP network and/or all-in-one are
expensive and there is no way I'm getting one 'just to see if it works'.

The more printers I can get access to, the biggest chance there is for
anyone that is printer will get supported.
Heck, I know there are some issues with cups and usb printing under some
circumstances but I don't even have a working usb printer available
anymore.

--
Antoine

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Jan Stary
In reply to this post by Abel Abraham Camarillo Ojeda-2
On Nov 04 06:29:08, Abel Abraham Camarillo Ojeda wrote:

> On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[hidden email]> wrote:
> > On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
> >> I'm unsuccesfully trying to make this HP printer... to print... (this
> >> is a new printer
> >> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
> >> instead of hpijs, but it only works via usb, not network...):
> >
> > So why don't you continue printing with foo2zjs?
> >
>
> foo2zjs works awesome with usb, but doesn't work with network (or I
> don't know how
> to configure it exactly,

You are not even trying to print over the network;
you are using ":lp=/dev/ugen0.01:" as your device.

> I'm going to put a sniffer on a windows
> machine when it's printing today and try to see what magic it does),

If you find yourself in the need to "sniff" some traffic
to decipher some "magic" your printer is doing, then
you are doing something wrong.

> anyway I bought this printer
> _just_ for the
> network printing (and the nasty HPlip page lied to me...).

What HPlip page? The specification
www.shopping.hp.com/shopping/pdf/ce749a.pdf
says "host-based printing, HP PCL 5e" - read:
you will need to attach this to a computer that
will talk to me in PCL (not postscript, no).

>         :lp=/dev/ugen0.01:\
>         :sd=/var/spool/output:\
>         :lf=/var/log/lpd-errs:\
>         :if=/usr/local/bin/foomatic-rip:\
>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>         :rp=raw:\
>         :sh:
> With that I got pretty printing... (only with usb).

If you can get this to print locally,
why don't you just let your lpd listen to clients
on your network?


> lp|Hp LaserJet p1606dn:\
>         :lp=:\
>         :sd=/var/spool/output:\
>         :lf=/var/log/lpd-errs:\
>         :if=/usr/local/bin/foomatic-rip:\
>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>         :rm=172.16.0.15:\
>         :rp=raw:\
>         :sh:
>
> With that I only got the plain text of a *.ps file out of the printer:
>
> %!PS-Adobe-3.0
>                           % Produced by xpdf/pdftops 3.02
>
>          %% Creator: GPL Ghostscript...
>
> (with the same identation).
>
> The printing command is:
>
> $ lpr ~/xypic.ps;
>
> (Or any other *.ps file).

This printer cannot speak postscript.

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Abel Abraham Camarillo Ojeda-2
Sorry Jan I think that I'm causing some unnecesary confusion:

On Thu, Nov 4, 2010 at 7:10 AM, Jan Stary <[hidden email]> wrote:

> On Nov 04 06:29:08, Abel Abraham Camarillo Ojeda wrote:
>> On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[hidden email]> wrote:
>> > On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
>> >> I'm unsuccesfully trying to make this HP printer... to print... (this
>> >> is a new printer
>> >> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
>> >> instead of hpijs, but it only works via usb, not network...):
>> >
>> > So why don't you continue printing with foo2zjs?
>> >
>>
>> foo2zjs works awesome with usb, but doesn't work with network (or I
>> don't know how
>> to configure it exactly,
>
> You are not even trying to print over the network;
> you are using ":lp=/dev/ugen0.01:" as your device.
>
>> I'm going to put a sniffer on a windows
>> machine when it's printing today and try to see what magic it does),
>
> If you find yourself in the need to "sniff" some traffic
> to decipher some "magic" your printer is doing, then
> you are doing something wrong.
>
>> anyway I bought this printer
>> _just_ for the
>> network printing (and the nasty HPlip page lied to me...).
>
> What HPlip page? The specification
> www.shopping.hp.com/shopping/pdf/ce749a.pdf
> says "host-based printing, HP PCL 5e" - read:
> you will need to attach this to a computer that
> will talk to me in PCL (not postscript, no).

This page I mean (on the HPlip site):

http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_professional_p1606dn.html

>>         :lp=/dev/ugen0.01:\
>>         :sd=/var/spool/output:\
>>         :lf=/var/log/lpd-errs:\
>>         :if=/usr/local/bin/foomatic-rip:\
>>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>>         :rp=raw:\
>>         :sh:
>> With that I got pretty printing... (only with usb).
>
> If you can get this to print locally,
> why don't you just let your lpd listen to clients
> on your network?
>

This printer got it's own LPD (as far as I know):

$ nmap guten

Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-04 07:34 CST
Nmap scan report for guten (172.16.0.15)
Host is up (0.0016s latency).
Not shown: 994 closed ports
PORT     STATE    SERVICE
7/tcp    open     echo
80/tcp   open     http
515/tcp  open     printer
8080/tcp open     http-proxy
8290/tcp open     unknown
9100/tcp filtered jetdirect

Nmap done: 1 IP address (1 host up) scanned in 1.50 seconds
$

>> lp|Hp LaserJet p1606dn:\
>>         :lp=:\
>>         :sd=/var/spool/output:\
>>         :lf=/var/log/lpd-errs:\
>>         :if=/usr/local/bin/foomatic-rip:\
>>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>>         :rm=172.16.0.15:\
>>         :rp=raw:\
>>         :sh:
>>
>> With that I only got the plain text of a *.ps file out of the printer:
>>
>> %!PS-Adobe-3.0
>>                           % Produced by xpdf/pdftops 3.02
>>
>>          %% Creator: GPL Ghostscript...
>>
>> (with the same identation).
>>
>> The printing command is:
>>
>> $ lpr ~/xypic.ps;
>>
>> (Or any other *.ps file).
>
> This printer cannot speak postscript.
>
>

Yeah, I know it cannot print postcript, the think is that there is _another_
unidentified problem with the foomatic-rip program, (or the a2ps filter) when
you send via lpr a non-ps file, it fails to identify the format of the
source file,
fails to do conversion on it, and dies (by means of another error completely
diferent).

With foo2zjs (via usb) I'm able to $ lpr file.ps;

If I send another file:

$ echo helloworld | lpr ;

Then foomatic-rip dies (for another reasons, that I'm not trying to identify
right now, I'm trying to first get network printing on this thing).

Another note:

The printer is *not* supposed to be directly attached (via usb) to my OpenBSD
box, that's why my LPD is not listening on any TCP socket.

Thank you.

Reply | Threaded
Open this post in threaded view
|

Re: Printing with HP laserjet p1606dn and LPD, hpijis: unable to set device=

Abel Abraham Camarillo Ojeda-2
On Thu, Nov 4, 2010 at 7:41 AM, Abel Abraham Camarillo Ojeda
<[hidden email]> wrote:

> Sorry Jan I think that I'm causing some unnecesary confusion:
>
> On Thu, Nov 4, 2010 at 7:10 AM, Jan Stary <[hidden email]> wrote:
>> On Nov 04 06:29:08, Abel Abraham Camarillo Ojeda wrote:
>>> On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[hidden email]> wrote:
>>> > On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote:
>>> >> I'm unsuccesfully trying to make this HP printer... to print... (this
>>> >> is a new printer
>>> >> I have already printed with windows XP, and on this OpenBSD box using foo2zjs
>>> >> instead of hpijs, but it only works via usb, not network...):
>>> >
>>> > So why don't you continue printing with foo2zjs?
>>> >
>>>
>>> foo2zjs works awesome with usb, but doesn't work with network (or I
>>> don't know how
>>> to configure it exactly,
>>
>> You are not even trying to print over the network;
>> you are using ":lp=/dev/ugen0.01:" as your device.
>>
>>> I'm going to put a sniffer on a windows
>>> machine when it's printing today and try to see what magic it does),
>>
>> If you find yourself in the need to "sniff" some traffic
>> to decipher some "magic" your printer is doing, then
>> you are doing something wrong.
>>
>>> anyway I bought this printer
>>> _just_ for the
>>> network printing (and the nasty HPlip page lied to me...).
>>
>> What HPlip page? The specification
>> www.shopping.hp.com/shopping/pdf/ce749a.pdf
>> says "host-based printing, HP PCL 5e" - read:
>> you will need to attach this to a computer that
>> will talk to me in PCL (not postscript, no).
>
> This page I mean (on the HPlip site):
>
> http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_professional_p1606dn.html
>
>>>         :lp=/dev/ugen0.01:\
>>>         :sd=/var/spool/output:\
>>>         :lf=/var/log/lpd-errs:\
>>>         :if=/usr/local/bin/foomatic-rip:\
>>>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>>>         :rp=raw:\
>>>         :sh:
>>> With that I got pretty printing... (only with usb).
>>
>> If you can get this to print locally,
>> why don't you just let your lpd listen to clients
>> on your network?
>>
>
> This printer got it's own LPD (as far as I know):
>
> $ nmap guten
>
> Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-04 07:34 CST
> Nmap scan report for guten (172.16.0.15)
> Host is up (0.0016s latency).
> Not shown: 994 closed ports
> PORT     STATE    SERVICE
> 7/tcp    open     echo
> 80/tcp   open     http
> 515/tcp  open     printer
> 8080/tcp open     http-proxy
> 8290/tcp open     unknown
> 9100/tcp filtered jetdirect
>
> Nmap done: 1 IP address (1 host up) scanned in 1.50 seconds
> $
>
>>> lp|Hp LaserJet p1606dn:\
>>>         :lp=:\
>>>         :sd=/var/spool/output:\
>>>         :lf=/var/log/lpd-errs:\
>>>         :if=/usr/local/bin/foomatic-rip:\
>>>         :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
>>>         :rm=172.16.0.15:\
>>>         :rp=raw:\
>>>         :sh:
>>>
>>> With that I only got the plain text of a *.ps file out of the printer:
>>>
>>> %!PS-Adobe-3.0
>>>                           % Produced by xpdf/pdftops 3.02
>>>
>>>          %% Creator: GPL Ghostscript...
>>>
>>> (with the same identation).
>>>
>>> The printing command is:
>>>
>>> $ lpr ~/xypic.ps;
>>>
>>> (Or any other *.ps file).
>>
>> This printer cannot speak postscript.
>>
>>
>
> Yeah, I know it cannot print postcript, the think is that there is _another_
> unidentified problem with the foomatic-rip program, (or the a2ps filter) when
> you send via lpr a non-ps file, it fails to identify the format of the
> source file,
> fails to do conversion on it, and dies (by means of another error completely
> diferent).
>
> With foo2zjs (via usb) I'm able to $ lpr file.ps;
>
> If I send another file:
>
> $ echo helloworld | lpr ;
>
> Then foomatic-rip dies (for another reasons, that I'm not trying to identify
> right now, I'm trying to first get network printing on this thing).
>
> Another note:
>
> The printer is *not* supposed to be directly attached (via usb) to my OpenBSD
> box, that's why my LPD is not listening on any TCP socket.
>
> Thank you.
>

Just for the records:

I must take a more careful log of wich tests do I do... this printer
seems to work
perfectly (even across network) with:

lp|Hp LaserJet p1606dn:\
        :lp=9100@guten.00z:\
        :sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:\
        :if=/usr/local/bin/foomatic-rip:\
        :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\
        :sh:

Using foo2zjs (as the ppd indicates).

I just didn't know why should I use the 9100 port... (after seeing
what a win XP system
does to print I saw that tcp 9100 traffic going so I just adapted my
printcap accordingly).

Resume: the hpijs sucks (it made me waste two days of my life)...

Thanks to everyone, sorry for the noise.