<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK, the problem is that Foomatic drivers (incorrectly) always look like PostScript printers, and so CUPS automatically provides support for the PostScript command filter.<div><br></div><div>This is a Foomatic bug and not something we will fix or work around in CUPS.</div><div><br><div><div>On Jan 11, 2011, at 12:19 PM, George Liu wrote:</div><blockquote type="cite">
<div>
<!-- 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: <a href="mailto:cups-dev-bounces@easysw.com">cups-dev-bounces@easysw.com</a> 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>
<a href="mailto:cups-dev@easysw.com">cups-dev@easysw.com</a><br>
<a href="http://lists.easysw.com/mailman/listinfo/cups-dev">http://lists.easysw.com/mailman/listinfo/cups-dev</a><br>
<br>
</font>
</p>

</div>
_______________________________________________<br>cups-dev mailing list<br><a href="mailto:cups-dev@easysw.com">cups-dev@easysw.com</a><br>http://lists.easysw.com/mailman/listinfo/cups-dev<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>________________________________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair</div></div></span></div></span></span>
</div>
<br></div></body></html>