From owner-freebsd-questions Mon Jan 14 6:41:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.kc.rr.com (fe1.rdc-kc.rr.com [24.94.163.48]) by hub.freebsd.org (Postfix) with ESMTP id 6FF7E37B419 for ; Mon, 14 Jan 2002 06:41:25 -0800 (PST) Received: from gruffy.kc.rr.com ([65.26.58.138]) by mail1.kc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Mon, 14 Jan 2002 08:37:39 -0600 Received: (from riksca@localhost) by gruffy.kc.rr.com (8.11.6/8.11.6) id g0EEcQp00709 for freebsd-questions@FreeBSD.ORG; Mon, 14 Jan 2002 08:38:27 -0600 (CST) (envelope-from riksca) Date: Mon, 14 Jan 2002 08:38:26 -0600 From: Rik Scarborough To: FreeBSD Questions Subject: Re: USB Printer Message-ID: <20020114143826.GA510@gruffy.kc.rr.com> Mail-Followup-To: FreeBSD Questions References: <20020114020716.GA634@gruffy.kc.rr.com> <20020114144501.Q823@k7.mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020114144501.Q823@k7.mavetju.org> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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