From owner-freebsd-questions Sat Jan 25 12:20:34 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AD3137B401 for ; Sat, 25 Jan 2003 12:20:32 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 22B4E43F13 for ; Sat, 25 Jan 2003 12:20:21 -0800 (PST) (envelope-from mwm-dated-1043958015.0779ed@mired.org) Received: (qmail 99728 invoked from network); 25 Jan 2003 20:20:15 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 25 Jan 2003 20:20:15 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15922.61822.703077.777462@guru.mired.org> Date: Sat, 25 Jan 2003 14:20:14 -0600 To: "Remington L." Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: USB Printer setup In-Reply-To: <3E32EFA6.5060306@garlic.com> References: <3E32EFA6.5060306@garlic.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.68 (Shut Out) 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 In <3E32EFA6.5060306@garlic.com>, Remington L. typed: > FreeBSD bathory.aria 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #1: Thu Jan > 23 11:12:16 PST 2003 > root@bathory.aria:/usr/obj/usr/src/sys/TheGateV1 i386 > > For the past few days ive been attempting to set up my printer and i've > had no luck. I have a HP Deskjet 3420, "ulpt0: hp deskjet 3420, rev > 2.00/1.00, addr 3, iclass 7/1". This morning i set up my /etc/printcap > like this: Is the quoted string from dmesg? If not, what are you getting from dmesg for ulpt0? > # HP Deskjet 3420 > lp|lj|HP Deskjet 3420:\ > :lp=/dev/ulpt0:sd=/var/spool/lpd:\ > :lf=/var/log/lpd-errs:sh:mx#0:\ > :if=/usr/local/libexec/lpfilter:\ > > I also edited my /etc/rc.conf to > lpd_enable="YES" > > And then i rebooted and tried to print something: cat /etc/rc.conf > > /dev/ulpt0 > And nothing printed. Any suggestions on what i'm doing wrong? Two possibilities here. When this happened to me, the USB device shared an IRQ with another device. Changing that solved the problem. The other is that the printer is a Winprinter, meaning that it can't print simple ascii text, but has to be fed a rendered image of the page. if ghostscript has a driver for the printer, you might try something like: enscript -o - /etc/rc.conf | gs -sOutputFile=/dev/ulpt0 -dNOPAUSE -sDEVICE=... with ... replaced by the appropriate device driver and any driver-specific flags you may want to use. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message