Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2002 08:38:26 -0600
From:      Rik Scarborough <RikSca@mac.com>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: USB Printer
Message-ID:  <20020114143826.GA510@gruffy.kc.rr.com>
In-Reply-To: <20020114144501.Q823@k7.mavetju.org>
References:  <20020114020716.GA634@gruffy.kc.rr.com> <20020114144501.Q823@k7.mavetju.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Edwin, that's gotten me a lot closer.

USB support appears to be enabled.  Running dmesg I get several things
about the USB port, including:
    ugen0: at uhub0 port 2 (addr 2) disconnected
    ugen0: detached
    ugen0: hp photosmart 1215, rev 1.10/2.00, addr 2
    ugen0: at uhub0 port 2 (addr 2) disconnected
    ugen0: detached
    ugen0: hp photosmart 1215, rev 1.10/2.00, addr 2
It's interesting that it even knows what the printer is, so it is 
talking to the USB port.

However, I cannot seem to get ulpt0 to work.  lpd seems to ignore it,
and when I try to send something to it directly, I get:
    /dev/ulpt0: Device not configured.

I even tried running lptcontrol -s -d /dev/ulpt0 and I get:
    lptcontrol: open: Device not configured

So does ulpt0 need to be enabled in the Kernel?  If so, what verbiage (ie
a parallel printer would be 
    device lpt0 at isa? port? tty irq N vector lptintr
but it seems like that would not be the same for a USB printer)?

Thanks,

~Rik
* Edwin Groothuis (edwin@mavetju.org) [020113 21:48]:
> On Sun, Jan 13, 2002 at 08:07:16PM -0600, Rik Scarborough wrote:
> > Can FreeBSD use a printer connected via the USB port?  If so, can someone 
> > point me to instructions for doing so?
> 
> Sure, I have a Epson Stylus 440 here this way.
> 
> First you have to enable usb support in the kernel, either via
> modules (kldload the modules usb.ko and ulpt.ko) or with compiling
> support for it in the kernel (see LINT for this).
> 
> Then add it to /etc/printcap:
> lp|local epson printer:\
>         :sh:\
> 	:mx#0:\
> 	:lp=/dev/ulpt0:sd=/var/spool/output/ulpd:lf=/var/log/ulpd-errs:
> 
> Make sure /var/spool/output/ulpd exists and (re)start the lpd.
> That's all!
> 
> Edwin
> -- 
> Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
> edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
> ------------------+                       http://www.FatalDimensions.org/
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Ranger Rik -- RikSca@mac.com

Joshua 24:15

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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