From owner-freebsd-questions Wed Nov 13 21:49:48 2002 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 791EF37B401 for ; Wed, 13 Nov 2002 21:49:46 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 288BA43E6E for ; Wed, 13 Nov 2002 21:49:46 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (8.12.2/MantshX 2.0) with ESMTP id gAE5njiS018158 for ; Wed, 13 Nov 2002 21:49:45 -0800 (PST) Received: from mac.com ([12.231.115.57]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id H5JXIW00.TC7; Wed, 13 Nov 2002 21:49:44 -0800 Message-ID: <3DD33973.3060108@mac.com> Date: Wed, 13 Nov 2002 21:49:39 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021107 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions Subject: serial printing to old inkjet (stylewriter) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 I am trying to make use of an Apple Stylewriter (a rebadged Canon BubbleJet) and am stuck. I have a driver that I know works (I tried it on another machine) but I am having trouble setting the output to be written to the serial port. I know there is some communication there as I hear some suggestive grunts as the printer takes up the paper. Also when I kill the print jobs that never seem to print, it makes a lot of "re-adjusting the sheet feeder" noises. So I'm sure there is something getting across the wire, but I'd like more than just job control signals. I have all the relevant printcap entries set up and chkprintcap has blessed them. Here's one: stylps:\ :lp=/dev/stylewriter:sd=/var/spool/stylps:\ :px#3060:py#3960:sh:sf:rw:\ :if=/usr/local/sbin/stylps:\ :lf=/var/log/lpd-errs: The stylps script came with the driver: #!/bin/sh /usr/local/bin/gs -q -dNOPAUSE -dSAFER -sDEVICE=pbmraw -r360x360 \ -sOutputFile=- - \ |/usr/local/sbin/lpstyl Here's an example of what I am doing: [/usr/home/paul/src/stylewriter]:: enscript /etc/motd -d stylps [ 1 pages * 1 copy ] sent to stylps 1 lines were wrapped The control file and the data file get created: -rw-rw---- 1 daemon wheel 105 Nov 13 21:39 cfA022green.paulbeard.org -rw-rw---- 1 paul wheel 12038 Nov 13 21:39 dfA022green.paulbeard.org What am I missing in this Rube Goldberg[1] arrangement? I have the serial port of /dev/cuaa0 linked to the /dev/stylewriter device. Right now, I'd be happy to get some staircased gibberish to display, but I can't even get that far. 1. http://www.rube-goldberg.com/html/oversleeping.htm -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ Some men are alive simply because it is against the law to kill them. -- Ed Howe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message