Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 16:19:40 -0800 (PST)
From:      Bill Tillman <btillman99@yahoo.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printing via USB Port
Message-ID:  <203272.55003.qm@web36506.mail.mud.yahoo.com>
In-Reply-To: <alpine.BSF.2.00.1002261626210.14611@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help


--- On Fri, 2/26/10, Warren Block <wblock@wonkity.com> wrote:


From: Warren Block <wblock@wonkity.com>
Subject: Re: Printing via USB Port
To: "Bill Tillman" <btillman99@yahoo.com>
Cc: freebsd-questions@freebsd.org
Date: Friday, February 26, 2010, 5:38 PM


On Fri, 26 Feb 2010, Bill Tillman wrote:
> =A0
> Thanks again for your valuable input. I have set up lpd printing on my ol=
d FreeBSD server at least a dozen times and it became a simple routine to d=
o with apsfilter.=A0Let me see if I can place all my cards in one place and=
 perhaps we can find the bug.

I think I found it.=A0 The HL-2040 is a GDI printer, aka winprinter (aka "o=
h no, one of those", aka "I guess I didn't really want to print that after =
all").=A0 It won't respond to PCL, unlike the one I looked up first, the HL=
-2060.

Based on http://beej.us/hl2040/:

=A0 % cd /usr/local/libexec
=A0 % cp ps2pcl ps2hl1250

Change the line in ps2hl1250 to:

/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=3Dhl1250 -sOutputFile=3D- -
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 ^^^^^^
And change the if=3D line in the printcap to refer to ps2hl1250.

(And remember, buying winprinters just encourages them to make more.)

-Warren Block * Rapid City, South Dakota USA
=A0
Warren,
=A0
Once again many thanks, but that is one of the first things I tried. By che=
cking ghostcript's drivers
=A0
#gs -h | grep hl
=A0
I found many drivers for the HL-12xx models. I have used this in my previou=
s setup with my old parallel server. I actually tried what you suggested an=
d it only worked when using the parallel cable, not the USB. For some reaso=
n the USB connection on this and any other FreeBSD server I connect to is D=
OA for printing. I run mouse and keyboard via USB. But these print jobs are=
 lining up in the queue and just sit there no matter how many times I recon=
nect the printer, or reboot it or reboot the computer. And once again I'm s=
eeing two instances of lpd running when I only launched it from the command=
 line once, no entry in /etc/rc.conf.
=A0
=A0
BigDell# ps -ax | grep lpd
=A01311=A0 ??=A0 Is=A0=A0=A0=A0 0:00.00 lpd
=A01329=A0 ??=A0 IE=A0=A0=A0=A0 0:00.00 lpd

BigDell# lpq
no entries

BigDell# lpc status all
lp:
=A0=A0=A0=A0=A0=A0=A0 queuing is enabled
=A0=A0=A0=A0=A0=A0=A0 printing is enabled
=A0=A0=A0=A0=A0=A0=A0 no entries in spool area
=A0=A0=A0=A0=A0=A0=A0 printer idle

BigDell#

This just don't make sense and I hope when we find it it's something we can=
 laugh about.=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?203272.55003.qm>