From owner-freebsd-ports Sat Sep 28 9: 2: 9 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDF9037B401 for ; Sat, 28 Sep 2002 09:02:07 -0700 (PDT) Received: from anu.edu.au (anumail5.anu.edu.au [150.203.2.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84EEE43E77 for ; Sat, 28 Sep 2002 09:02:04 -0700 (PDT) (envelope-from Gregory.Lane@anu.edu.au) Received: from nucl03.anu.edu.au (nucl03.anu.edu.au [150.203.19.120]) by anu.edu.au (8.12.3/8.12.3) with ESMTP id g8SFiK9v022247; Sun, 29 Sep 2002 01:44:20 +1000 (EST) Received: from nucl03.anu.edu.au (localhost [127.0.0.1]) by nucl03.anu.edu.au (8.12.6/8.12.6) with ESMTP id g8SFiKe3023386; Sun, 29 Sep 2002 01:44:20 +1000 (EST) (envelope-from gjl103@nucl03.anu.edu.au) Received: (from gjl103@localhost) by nucl03.anu.edu.au (8.12.6/8.12.6/Submit) id g8SFiJqS023385; Sun, 29 Sep 2002 01:44:19 +1000 (EST) Date: Sun, 29 Sep 2002 01:44:19 +1000 From: Greg Lane To: andreas@apsfilter.org Cc: freebsd-ports@freebsd.org Subject: Fixes to apsfilter for hpijs deskjet printers Message-ID: <20020928154419.GA23310@nucl03.anu.edu.au> Reply-To: gregory.lane@anu.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org G'day Andreas (and FreeBSD ports list members), (I am not subscribed to ports) Currently apsfilter is broken if you use the latest hpijs driver. Although not complete and not very well tested (I only have a single deskjet 930c) I believe the fixes below will apply in a similar fashion for all hpijs printers. Below are two diffs I applied to the main apsfilter script and driver/ijs/DESKJET_920 to get my printer to work. Without these changes the processes just hang and the print queue is left clogged. I am running FreeBSD 4.7RC with a completely up to date ports tree from last week. There is an outstanding PR (not from me) for this from April 2002: ports/37085. The problem began with HPIJS 1.0.3 which changed the -sIjsParams switch and added the compulsory -dIjsUseOutputFD switch. Since hpijs and apsfilter are now separate ports it is easy to end up with a too new hpijs port and break apsfilter. I didn't put any logic in to check the version of hpijs, just made it work for newer versions. Sorry I don't have time to make a more complete set of intelligent patches. The second diff would have to be applied in a similar fashion to all the driver files in the ijs directory. If no-one takes this up in the next month I could make proper patches after I get back from a trip I am about to make. Cheers, Greg ===================================================== router# diff /usr/local/share/apsfilter/bin/apsfilter /usr/local/share/apsfilter/bin/apsfilter.bck 2009c2009 < GS_FEATURES="$GS_FEATURES -sDeviceModel='${PRINTER#ijs/}' -sIjsServer=hpijs -dIjsUseOutputFD" --- > GS_FEATURES="$GS_FEATURES -sDeviceModel='${PRINTER#ijs/}' -sIjsServer=hpijs" (Note that this change is probably more sensibly made to the SETUP script if I understand how apsfilter works. I didn't test this.) ===================================================== router# diff /usr/local/share/apsfilter/driver/ijs/DESKJET_920 /usr/local/share/apsfilter/driver/ijs/DESKJET_920.bck 8c8 < params="Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=2" ;; --- > params="Quality=2,ColorMode=2,MediaType=2,PenSet=2" ;; 10c10 < params="Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2" ;; --- > params="Quality=0,ColorMode=2,MediaType=0,PenSet=2" ;; 16c16 < params="Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2" ;; --- > params="Quality=0,ColorMode=0,MediaType=0,PenSet=2" ;; ==================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message