From owner-freebsd-questions@FreeBSD.ORG Sun Feb 12 13:33:33 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 E1F9A106566C for ; Sun, 12 Feb 2012 13:33:33 +0000 (UTC) (envelope-from jerry@seibercom.net) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 92A328FC13 for ; Sun, 12 Feb 2012 13:33:33 +0000 (UTC) Received: by ghbg15 with SMTP id g15so2669460ghb.13 for ; Sun, 12 Feb 2012 05:33:32 -0800 (PST) Received: by 10.236.123.47 with SMTP id u35mr15874878yhh.115.1329053611062; Sun, 12 Feb 2012 05:33:31 -0800 (PST) Received: from scorpio.seibercom.net (cpe-076-182-104-150.nc.res.rr.com. [76.182.104.150]) by mx.google.com with ESMTPS id a14sm28798325ana.20.2012.02.12.05.33.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Feb 2012 05:33:29 -0800 (PST) Received: from scorpio (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jerry@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3Tm9vC5kshz2CG44 for ; Sun, 12 Feb 2012 08:33:27 -0500 (EST) Date: Sun, 12 Feb 2012 08:33:27 -0500 From: Jerry To: FreeBSD Message-ID: <20120212083327.0a3b5c52@scorpio> In-Reply-To: <20120211231729.d4ad2f8d.freebsd@edvax.de> References: <20120211231729.d4ad2f8d.freebsd@edvax.de> Organization: seibercom.net X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAABYRlwJCw4FAgAIBwKprDkBAQFQLR0BAgCir7VRttp8AAACAUlEQVQ4jZWUTYvbMBCGTVl8V2hX6Gg5G5FbWQdBj0lEfE7BhN4cyzi5Wt1E5L70roWy6N92xok/skkP+5IYrMcz78xIduDWpNM3vFzuA/jX5EY1AI6KHFwW/CzFuQAwqUBbV12p+CzIh6Awq7sg33pn5D64SQXAexffeuQlA/L35RrkaB551OjGfP/cAO8mCNaDcgvfky5ijoD0pAXlCQCnljiAjsJD9Ax05Ko5sZxbnLQcmM+dZg5IjREfZrWIHK0JuwU68pAGwHvfRxBundRzTxxz3r9dNUikPsEihjz2Dc4kjp1hKsJGuot4EDxaxzMoC7XqhxhOSfZrTS6gSX1JVdjp+o1PvWfekXgw3WL0g70nDEwA0H0HQsEZc8sTmFMTkWUfYWC/vdR1zQy3xLQgLwzu90QnlnFLjeiGWBjwhb4Sa42IqOg2qqS4O1/zhKokFUb1Q8Rj4Eb69WVflXEehJ35DgChVTE5n50eaGyMLOfH8AOodoSM4PVYAQgQdBulOa+knklYks3vAuQ+uX492lTl+A+e8qBV2AKoXalVKFfyuUp0pUp1ARaUHh82lv9MN+Ig7CZtgE6FNYvjlywT2VP2dMgOG46gTIWcqdfvuwyXNz0oMJNd/N5lh1YNiJt19ADTUo3VuFSNeQwVqRSrGjSCp53fk2g+Mvfk/gfoPxHeUS8MH9vRAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlHe93DzzCjqO2GPyCelu/7Ff+Vd5WAwjUpPh7LS42GTcTVOL/SqiIQY3JA7rOkHxaZAeqF Subject: Re: MFC 7840W under CUPS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2012 13:33:34 -0000 On Sat, 11 Feb 2012 23:17:29 +0100 Polytropon articulated: > 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... I can accomplish this on my Brother MFC-9560CDW saving in either "PS" or "PDF" format. In fact, it appears that the industry is moving away from the "ps" format and towards the "pdf" format. However, none of this explains why CUPS has so thoroughly screwed up the printing process, nor why it should demand so much user intervention to set up a printer that on most modern operating systems is trivial at best. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________