From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Taylor, Shirley" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Duplex printing problem Date: Thu, 30 May 2002 13:14:00 -0300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: main.gmane.org 1022775392 16200 127.0.0.1 (30 May 2002 16:16:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 May 2002 16:16:32 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17DSbH-0004DB-00 for ; Thu, 30 May 2002 18:16:32 +0200 Original-Received: (qmail 24914 invoked by uid 5); 30 May 2002 16:17:16 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 24906 invoked from network); 30 May 2002 16:17:16 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 30 May 2002 16:17:16 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GWX00DZGMKR6U@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 30 May 2002 12:17:15 -0400 (EDT) Original-Received: from cod.mar.dfo-mpo.gc.ca (cod.mar.dfo-mpo.gc.ca [142.176.61.253]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with SMTP id <0GWX00LO0MKOLD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 30 May 2002 12:17:14 -0400 (EDT) Original-Received: id NAA28706; Thu, 30 May 2002 13:15:12 -0300 Original-Received: by gateway id <0GWX00GQHMFFC5@bionet.bio.dfo.ca> for tru64-unix-managers@ornl.gov; Thu, 30 May 2002 13:14:03 -0300 (ADT) Original-Received: by gateway id ; Thu, 30 May 2002 13:14:01 -0300 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:378 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:378 I received several good suggestions from Mahendra Rajah, Peter Stern = and Ernie LaBonte. Hope I'm not forgetting anyone. The solution I used wa= s from Ernie, solution #2. Am including his email as it is very instructive: The printcap entry provided is not capable of setting up the printer = for duplex printing. Is it possible the saved printer default setting was changed from duplex to simplex? There are multiple printcap (and print filter) solutions. The best so= lution depends on your printing requirements. Solution 1 is a two line chan= ge to the printcap entry. Solution 2 reconfigures the printcap entry to use= the duplex.pcf file. =20 Solution 1 ---------- If all you need is the ability to print text files in simplex and dup= lex mode the following printcap changes will work: =09 :if=3D/usr/lbin/ps_level2of:\ =09 :of=3D/usr/lbin/ps_level2of:\ To print in duplex mode add the -K2 option in the lpr command line. If you want duplex to be on by default, use this printcap entry: =09 :if=3D/usr/lbin/ps_level2of -K2:\ =09 :of=3D/usr/lbin/ps_level2of:\ This printcap entry is configured for Letter size paper. If you are u= sing A4 paper a -SA4 switch is also required. For example: =09 :if=3D/usr/lbin/ps_level2of -SA4 -K2:\ =09 :of=3D/usr/lbin/ps_level2of -SA4:\ Solution 2 ---------- Your current printcap entry isn't configured to use .pcf files. This printcap entry should solve the problem, provided that the duplex uni= t on the printer is working, and the file /usr/lbin/pcf/duplex.pcf is prop= erly configured. lp2|2|duplex:\ =09 :ct=3Dtcp:\ =09 :if=3D/usr/lbin/pcfof +Cduplex.pcf:\ =09 :lf=3D/usr/adm/lp2err:\ =09 :lp=3D@stalj4mx/stalj4mx:\ =09 :mx#0:\ =09 :of=3D/usr/lbin/pcfof +Cduplex.pcf:\ =09 :pl#66:\ =09 :pw#80:\ =09 :sd=3D/usr/spool/lpd2:\ =09 :xf=3D/usr/lbin/xf: Printcap changes: *=09I changed the print filter from hplaserof to pcfof. This is the o= nly filter that uses a .pcf file. *=09The +duplex.pcf was changed to +Cduplex.pcf. The 'C' flag was missing. *=09I removed ':Si=3D2:'. This Digital ULTRIX option is not used in T= ru64 UNIX. *=09The \ character was removed on the xf=3D printcap option. If the files are still not printing two sided try 'lpr -Pduplex -K2 f= ile'. If adding the -K2 switch corrects the problem then change the printca= p input filter line to: =09 :if=3D/usr/lbin/pcfof -K2 +Cduplex.pcf:\ =09Than\\\ =09\\\' Original email ---------------------------------------------------------------------= ------- ---------------------------------------------------------------------= ------- ----------- Hello everyone, A few years ago I created a printer definition under Tru64 4.0D to pr= int text files in duplex mode. The excerpt from the /etc/printcap file is= : # Entries for duplex printing hplaserjet4si =20 lp2|2|duplex:\ =20 :ct=3Dtcp:\ =20 :if=3D/usr/lbin/hplaserof +duplex.pcf:\ =20 :lf=3D/usr/adm/lp2err:\ =20 :lp=3D@stalj4mx/stalj4mx:\ =20 :mx#0:\ =20 :of=3D/usr/lbin/hplaserof +duplex.pcf:\ =20 :pl#66:\ =20 :pw#80:\ =20 :sd=3D/usr/spool/lpd2:\ =20 :xf=3D/usr/lbin/xf:\ =20 :Si=3D2: =20 Under 4.0 the printer was accessed using this command: lpr -Pduplex f= ile.lis The queue isn't used often and was discovered a week or so ago to no = longer work. In January I upgraded to 4.0G and am wondering if that caused a problem but I can't see what it is. Everytime we attempt to print to = this queue the document prints on one side only - no errors logged. The fi= le duplex.pcf does exist, in two directories: /usr/lbin/pcf/duplex.pcf =20 /usr/lbin/duplex.pcf =20 Any suggestions would be appreciated. Shirley Systems Admin & Operations | Admin. et Exploit. des syst=E8ms Technology Services =09 | Services technologiques Informatics Branch =09 | Direction de l'informatique=20 Maritimes Region, DFO=09 | R=E9gion des Maritimes, MPO (506) 529 5911 taylorsi@mar.dfo-mpo.gc.ca =20