From owner-freebsd-questions Fri Feb 22 16:32: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id DC7A137B400 for ; Fri, 22 Feb 2002 16:31:54 -0800 (PST) Received: (qmail 29878 invoked by uid 100); 23 Feb 2002 00:31:43 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15478.58094.528486.294014@guru.mired.org> Date: Fri, 22 Feb 2002 18:31:42 -0600 To: "Max Clements" Cc: questions@freebsd.org Subject: Re: Duplex printing on an HP2200DN printer... In-Reply-To: <75192709@toto.iv> X-Mailer: VM 6.90 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.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Max Clements types: > Does anyone know how to set BSD to print duplex onto an HP 2200DN laser > printer. This is a duplex-capable printer with a build in Jet Direct = > card. > As the printer is post-script capable I would not like to install = > appsfilter > or something like that, but I hate thick program listings ;-). Note that apsfilter was actually *designed* for postscript-capable printers. that's why it generates postscript for everything you send to it, including ascii text. If the printer is postscript capable, it sends the resulting postscript to the printer. Otherwise, it uses ghostscript to render the postscript for that printer. Which is why you sometimes try and print a page of text, and the printer runs out of memory trying to print the graphics image of that page. The point of apsfilter - and magicfilter, which I recommend instead - is to examin the input and turn it into something the printer can deal with, so you don't have to worry about converting your jpeg to postscript before printing it, the printer driver will do it for you. > From what little I know about HP printers I think one needs to send a = > PJL > command to the printer prior to the job to put it into duplex mode? That's certainly one way to do it. You can also send it Postscript that looks like this: <> setpagedevice The catch is that I've not been able to find a sane way to set up lpd to make it easy to specify which duplex mode to use at print time. cups can apparently do that for you, but the demo version in the ports tree didn't have support for my printer, so I can't verify that. What I wound up doing was installing magicfilter - which does what apsfilter does, only it's lightweight and more flexible - to deal with text and raw postscript by making it look like it came from a DOS system, added a second termcap entry that doesn't use magicfilter, and set the printer to duplex without tumbling by default. Good graphics programs know how to control the duplex on a postscript device, and I point those at the second termcap entry and set duplex with their print control. Most printing goes to the one with magicfilter. Every once and a while I have to toggle the duplex or tumble options by hand. For letters, CD labels and the like I use custom scripts that sets manual feed, input source, and duplex properly. The other alternative involved creating something like 12 printcap entries to specify all those things, and it didn't seem to be worth the trouble. I've been considering tweaking magicfilter to use the job class to add rules that are only checked if the job is in that class, but haven't actually done anything about it. Apparently apsfilter already supports this, so you may want to look into that anyway. http://www.mired.org/home/mwm/ 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