From owner-freebsd-questions@FreeBSD.ORG Sat Feb 11 22:17:31 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 747881065673 for ; Sat, 11 Feb 2012 22:17:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3443E8FC12 for ; Sat, 11 Feb 2012 22:17:30 +0000 (UTC) Received: from r56.edvax.de (port-92-195-33-125.dynamic.qsc.de [92.195.33.125]) by mx01.qsc.de (Postfix) with ESMTP id B01AD3CB02; Sat, 11 Feb 2012 23:17:29 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q1BMHTYR003590; Sat, 11 Feb 2012 23:17:29 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 11 Feb 2012 23:17:29 +0100 From: Polytropon To: Ouyang Xueyu Message-Id: <20120211231729.d4ad2f8d.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: MFC 7840W under CUPS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2012 22:17:31 -0000 On Sun, 05 Feb 2012 21:21:59 +0100, Ouyang Xueyu wrote: > Hello, > > I have Freebsd 8.2 and CUPS installed and try to print on my Brother > MFC 7840W printer. The printer is accessible by a static IP address, is > configured in CUPS but everytime I only get blank pages when I'm trying > to print. > > Does anybody know a solution for this behaviour? The technical specification of the printer at http://www.brother-usa.com/mfc/modeldetail.aspx?PRODUCTID=MFC7840W#.TzbkwOsS-Jo indicates that it does understand PCL. Just for testing, you could try to _not_ use CUPS and send PCL to the printer directly, either by the system's spooling mechanism (which seems to be considered "depricated" now as the big desktop environments and some "stand-alonge" applications consider CUPS the only printing interface, which they seem to hardcode into the programs) or by the direct way, using its network connection (which is a good thing, better than USB in my opinion). Really - if the specifications say the printer can do PCL and has some kind of PS, why should it be complicated to get that "excellent" capabilities working with CUPS? Here is a simple test that you can use: First print something from an application (web browser, text processing program, image manipulator etc.), but send the output to a file. Most print dialogs offer a "print to file" choice. Save the result to /tmp/print.ps - I'll use this name for demonstration, you can use any other name. Then verify what you've printed to be a PostScript file. % file /tmp/print.ps /tmp/print.ps: PostScript document text conforming DSC level 3. You can verify the content to be printed using any PS viewer, e. g. gv or gs, or whatever comes with your desktop environment. If it is a valid PS file, you can do two things: a) Test if the printer's BR-Script3 is PS-compatible: % nc 192.168.123.456 9100 < /tmp/print.ps Let's assume that 192.168.123.456 is the IP of the printer. :-) Let's also assume that port 9100 is the port where the printer accepts jobs. Some printers use different ports for their different "personalities". See the documentation which port to use. If unsure, leave it blank. b) Test if the printer does understand PCL. Same assumptions apply. % printf "\033&k2G" | nc 192.168.123.456 9100 % gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \ -sDEVICE=ljet4 -sPAPERSIZE=a4 -r600x600 \ -sOutputFile=- /tmp/print.ps | nc 192.168.123.456 9100 You can see that this test specifies a "ljet4" printer driver. This refers to the HP Laserjet 4 and 4000 families, but it does produce PCL, so it should be fine. Report back if this works (i. e. _which_ of them, and if not, with which unexpected results). If it does work, my suggestion would be to dump CUPS and use the system's default mechanism with a "man made" printer filter. It's very easy. Easier than dealing with the CUPS "blackbox" in my opinion... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...