<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [cups.development] CUPS Print Self Test Page does not work fornon-Postscript printers</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>What I'm seeing from CUPS error_log is CUPS did not send "print self-test page" to the filter chain, instead, it communicate with printer directly.<BR>
I understand different printers supports different print format.<BR>
<BR>
May I suggest to change the wording in the "print self-test page" from "You are using the wrong driver" to "Printer Self-Test Page"?<BR>
The string I believe is located in commandtops filter.<BR>
<BR>
<BR>
------ For Print Self-Test Page ---------<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[19]="PPD=/etc/cups/ppd/2550PXL.ppd"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[20]="RIP_MAX_CACHE=auto"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[21]="CONTENT_TYPE=application/vnd.cups-command"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[22]="DEVICE_URI=socket://172.30.4.227:9100"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[23]="PRINTER_INFO=2550PXL"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[24]="PRINTER_LOCATION="<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[25]="PRINTER=2550PXL"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[26]="CUPS_FILETYPE=document"<BR>
D [08/Jan/2011:00:24:38 -0800] [Job 127] envp[27]="FINAL_CONTENT_TYPE=printer/2550PXL"<BR>
I [08/Jan/2011:00:24:38 -0800] [Job 127] Started filter /usr/lib/cups/filter/commandtops (PID 11124)<BR>
I [08/Jan/2011:00:24:38 -0800] [Job 127] Started backend /usr/lib/cups/backend/socket (PID 11126)<BR>
<BR>
<BR>
<BR>
<BR>
------ For Print Test Page -------------<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[19]="PPD=/etc/cups/ppd/2550PXL.ppd"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[20]="RIP_MAX_CACHE=auto"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[21]="CONTENT_TYPE=application/vnd.cups-banner"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[22]="DEVICE_URI=socket://172.30.4.227:9100"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[23]="PRINTER_INFO=2550PXL"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[24]="PRINTER_LOCATION="<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[25]="PRINTER=2550PXL"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[26]="CUPS_FILETYPE=document"<BR>
D [08/Jan/2011:00:27:28 -0800] [Job 128] envp[27]="FINAL_CONTENT_TYPE=printer/2550PXL"<BR>
I [08/Jan/2011:00:27:28 -0800] [Job 128] Started filter /usr/lib/cups/filter/bannertops (PID 11153)<BR>
I [08/Jan/2011:00:27:28 -0800] [Job 128] Started filter /usr/lib/cups/filter/pstopdf (PID 11154)<BR>
I [08/Jan/2011:00:27:28 -0800] [Job 128] Started filter /usr/lib/cups/filter/pdftopdf (PID 11155)<BR>
I [08/Jan/2011:00:27:28 -0800] [Job 128] Started filter /usr/lib/cups/filter/foomatic-rip (PID 11156)<BR>
I [08/Jan/2011:00:27:28 -0800] [Job 128] Started backend /usr/lib/cups/backend/socket (PID 11158)<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: cups-dev-bounces@easysw.com on behalf of Michael Sweet<BR>
Sent: Tue 1/11/2011 11:57 AM<BR>
To: Mirror of cups.development Newsgroup<BR>
Subject: Re: [cups.development] CUPS Print Self Test Page does not work fornon-Postscript printers<BR>
<BR>
On Jan 11, 2011, at 11:51 AM, George Liu wrote:<BR>
> I'm using Ubuntu 10.10 with CUPS 1.4.4.<BR>
><BR>
> I setup a printer queue for a PCL-XL printer, using socket 9100 protocol.<BR>
>> From CUPS web interface, I picked "Maintenance-> Print Self Test Page".<BR>
><BR>
> The test page printed, however, it printed the following information:<BR>
><BR>
> -----------------------------------------------------------------<BR>
> %!<BR>
>  userdict dup(\004) cvn{}put (\004\004)cvn{}put<BR>
>                            % You are using the wrong driver<BR>
> -----------------------------------------------------------------<BR>
><BR>
> It seems that the command did not go through filter chain and landed in printer directly. What will confuse the user is the sentence "You are using the wrong driver".<BR>
><BR>
> On a Postscript printer, it worked fine, and printed out printer model name along with PSVersion.<BR>
><BR>
> Can we change the print self-test content to be something neutral?<BR>
<BR>
Well, the content can't be made that neutral because printers don't support a standard set of file formats (yet).<BR>
<BR>
However, CUPS 1.4 and later *do* use a new (simple) CUPS banner format for the test page instead, using a filter to generate the necessary content for the printer.  It sounds like either Ubuntu's CUPS is broken or the correct driver was not chosen for the printer.<BR>
<BR>
________________________________________________________________________<BR>
Michael Sweet, Senior Printing System Engineer, PWG Chair<BR>
<BR>
_______________________________________________<BR>
cups-dev mailing list<BR>
cups-dev@easysw.com<BR>
<A HREF="http://lists.easysw.com/mailman/listinfo/cups-dev">http://lists.easysw.com/mailman/listinfo/cups-dev</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>