RESOLVED: Printing via USB Port

Bill Tillman btillman99 at
Sat Feb 27 20:55:57 UTC 2010

--- On Sat, 2/27/10, Warren Block <wblock at> wrote:

From: Warren Block <wblock at>
Subject: Re: RESOLVED: Printing via USB Port
To: "Bill Tillman" <btillman99 at>
Cc: "Robert Bonomi" <bonomi at>, freebsd-questions at
Date: Saturday, February 27, 2010, 2:26 PM

On Sat, 27 Feb 2010, Bill Tillman wrote:
> Okay guys this is finally working. I found the answer here:
> This didn't come up in my other searches.
> This morning I put in "freebsd hl2040 usb" into my yahoo search and this came up.

Didn't you get my last message yesterday?  It had that very link.
> Seems this guy got it to work by using unlpt0 not ulpt0. I had tried this before and was using the ifhp filter but that didn't work.

The printer is not HP or even PCL, so ifhp is likely not the right filter.

> So I did this with /etc/printcap:
> lp|HL2040|Brother HL-2040:\
>         :lp=/dev/unlpt0:\
>         :af=/home/bill/hl1250.ppd:\
>         :if=/usr/local/bin/foomatic-rip:\
>         :lf=/var/log/lpd/hl2040.log:\
>         :sh:sd=/var/spool/lpd/laser:

It was probably the unlpt0 device that cured it.  Could you verify whether the plain lpd entry with the unlpt0 device works?

     :if=/usr/local/libexec/ps2hl1250: \

-Warren Block * Rapid City, South Dakota USA
Okay, we can put this one to rest. The simpler /etc/printcap above using ps2hl1250 which is a very short script works as well. No need to have to load the foomatic-filters port. Good thinking as this keeps the setup simple and easier.


More information about the freebsd-questions mailing list