From owner-freebsd-questions Mon Feb 19 11: 0:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from raffles-it.com (raffles.demon.co.uk [158.152.17.201]) by hub.freebsd.org (Postfix) with ESMTP id B902437B503 for ; Mon, 19 Feb 2001 11:00:12 -0800 (PST) Received: from dribble.lan.raffles-it.com (dribble.lan.raffles-it.com [192.168.100.50]) by raffles-it.com (8.11.2/8.11.1) with ESMTP id f1JIVgx55959 for ; Mon, 19 Feb 2001 18:31:42 GMT (envelope-from dpd@lan.raffles-it.com) Received: from dribble.lan.raffles-it.com (localhost [127.0.0.1]) by dribble.lan.raffles-it.com (8.11.2/8.11.1) with ESMTP id f1JIl8Z01499 for ; Mon, 19 Feb 2001 18:47:08 GMT (envelope-from dpd@lan.raffles-it.com) Message-Id: <200102191847.f1JIl8Z01499@dribble.lan.raffles-it.com> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: questions@FreeBSD.ORG Subject: Printing via USB Mime-Version: 1.0 Content-Type: text/enriched; charset=us-ascii Date: Mon, 19 Feb 2001 18:47:08 +0000 From: David Dooley Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a Epsom printer with a USB port and have configured USB and ulpt suport in my kernel. When I print I via the parallel port I get output, but when I try via the ulpt0 port the printer cariage moves for a couple of seconds, but no output. Anyone any ideas? I am trying to keep the "lpt" port free for a postscript printer, all though if anyone knows how to print to a "TCP/IP stream" type network printer that would me be most useful as well, as the printer has a network port that is connected and configured. Below please find the relvent sections from "printcap", kernel config, dmesg and the input filter script. Thanks David. ----------------------------------------------------------------------------- Kernel entries # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic # device uhid # "Human Interface Devices" # device ukbd # Keyboard device ulpt # Printer # device umass # Disks/Mass storage - Requires scbus and da # device ums # Mouse # device uscanner # Scanners # USB Ethernet, requires mii # device aue # ADMtek USB ethernet # device cue # CATC USB ethernet # device kue # Kawasaki LSI USB ethernet ----------------------------------------------------------------------------- Relevent Printcap Entry lp|Epson Stylus Photo 1200|Default Res 720x720:\ :lp=/dev/ulpt0:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :if=/etc/print/printfilter-720:\ :mx#0:\ :sh: ----------------------------------------------------------------------------- Printfilter-720 #!/usr/local/bin/bash PAPERSIZE=a4 T=a4 GSDEVICE=uniprint RESOLUTION=720x720 UPP=stc740p /usr/local/bin/enscript -l -i -2 -Z -p - | /usr/local/bin/gs @$UPP.upp -q $GSOPTIONS -sDEVICE=$GSDEVICE \ -r$RESOLUTION \ -sPAPERSIZE=$PAPERSIZE \ -dNOPAUSE \ -dSAFER \ -sOutputFile=- - printf "\004" exit 0 ----------------------------------------------------------------------------- Relevent DMESG uhci0: port 0xd400-0xd41f irq 3 at dev ice 4.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ulpt0: EPSON USB Printer, rev 1.00/1.00, addr 2, iclass 7/1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message