From owner-freebsd-hardware@FreeBSD.ORG Sun Apr 2 00:39:45 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 964A416A400 for ; Sun, 2 Apr 2006 00:39:45 +0000 (UTC) (envelope-from j_guojun@lbl.gov) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 2C0FB43D45 for ; Sun, 2 Apr 2006 00:39:45 +0000 (GMT) (envelope-from j_guojun@lbl.gov) Received: (qmail 97972 invoked from network); 2 Apr 2006 00:39:44 -0000 Received: from unknown (HELO ?192.168.2.10?) (jinmtb@sbcglobal.net@68.127.175.93 with plain) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 2 Apr 2006 00:39:44 -0000 Message-ID: <442F1DB5.8090003@lbl.gov> Date: Sat, 01 Apr 2006 16:41:25 -0800 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050108 X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: Carlos Silva References: <442DFEE5.4040407@yourdot-mail.com> <442E82F2.8040702@bah.homeip.net> <442EACAF.4010606@yourdot-mail.com> <442EAEF1.5050307@bah.homeip.net> <442EB292.1000007@yourdot-mail.com> <442F15C6.4070409@lbl.gov> <442F1698.5050500@yourdot-mail.com> In-Reply-To: <442F1698.5050500@yourdot-mail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: cups X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 00:39:45 -0000 This helps a little bit, but not every printing jobs. If you just need to print text to this printer via CUPS, you do not need any filter or (may not need a pdd either, but I need to verify it). By default, CUPS convert text to postscript, then to printer coded file via a proper pdd filter. That you got errors may be because your printer probably received a postscript coded file or even further converted to some common HP coded file, which may not suitable for every HP printer. To remove a text filter, either change /usr/local/etc/cups/mime.convs something like application/vnd.cups-text 0 texttops to application/vnd.cups-text 0 - "-" means do nothing; or change /usr/local/libexec/cups/filter/texttops mv texttops text2ps echo "cat -" > texttops chmod +x texttops If this works, this only fixes your text print problem. You may still not be able to print other files, such graphics or postscript files. You need to find a proper filter for this printer, maybe try it via "gs -sDEVICE=ijs --sOutputFile=/tmp/test A_POSTSCRIPT_FILE" or other filters (in -sDEVICE= line) to convert a postscript file to /tmp/test file, and try to print /tmp/test file to your printer via lpr command. If you can find a working filter in gs, then find a match filter in CUPS. Then reverse the change made above back, and install proper pdd for CUPS. Best regards, -Jin Carlos Silva wrote: > hi, > > I have printed a plain text file with lpr.. > And, as I said I have a ppd from hpijs, footmatic, etc packages... > > Best Regards, > > Carlos Silva, CSilva > Web: http://www.csilva.org/ > > > > Jin Guojun [VFFS] escreveu: > >> Carlos Silva wrote: >> >>> No, but i'll try this. >>> >>> I don't understand why lpr prints and cups not :( >> >> >> It is not clear how you printed via lpr. Unless you have a postscript >> (with .ps files) or plain text (for text only) printer, lpr will not >> print >> correctly except printing some garbages. >> >> If you used gs to convert .ps files to hp 1115 coded files, then you >> may use "lpr" command to print. Is this the way you printed? >> If so, the DeviceFILTER you used in gs option >> -sDEVICE=DeviceFILTER >> indicates the printer driver you need to use for CUPS. If CUPS has >> no related filter, then you need to write a filter/PDD file to invoke >> gs to do the conversion job for CUPS to print. >> It needs some work, but it is not too bad. >> >> I have a MFC 420n printer, I could not find a filter in either gs >> or CUPS, so I cannot use this printer under Unix/FreeBSD via >> lpr or CUPS :-) >> >> Since you said that you can print via lpr, then you should be able >> to print via CUPS. Just need a more clear picture on how you printed >> by using lpr. >