Bug 60343 - PJL commands on printer output with HP Laserjet Series II
PJL commands on printer output with HP Laserjet Series II
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: foomatic (Show other bugs)
7.2
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Tim Waugh
http://www.linuxprinting.org/newsport...
:
: 61583 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-02-25 23:32 EST by Fred Brooks
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-18 05:51:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
/etc/alchemist/namespace/printconf/local.adl (418 bytes, application/octet-stream)
2002-02-26 10:19 EST, Fred Brooks
no flags Details

  None (edit)
Description Fred Brooks 2002-02-25 23:32:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; T312461; Q312461)

Description of problem:
When printing, a extra page is output with a header of.
@PJL JOB NAME="LPDOMATIC"
printer output was fine under RH 7.1  have updated to latest
foomatic and printconf RPMS.  

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.print anything
2.
3.
	

Additional info:
Comment 1 Tim Waugh 2002-02-26 03:49:36 EST
Please explicitly list the version numbers of foomatic and printconf that you
have installed.

Also please attach /etc/alchemist/namespace/printconf/local.adl.

What kind of printer is this?
Comment 2 Fred Brooks 2002-02-26 10:19:22 EST
Created attachment 46681 [details]
/etc/alchemist/namespace/printconf/local.adl
Comment 3 Fred Brooks 2002-02-26 10:23:41 EST
foomatic-1.1-0.20011218.3
printconf-0.3.61-3

The printer is a HP Laserjet series II

Here my temp fix for the problem.
__________________________________
> How did you fix the PJL problem. I see you said your removed the
> language (but how?).

Another guy on the list said that the root of this problem is a problem
with RedHat.  Apparently they screwed up the PJL in their distribution. 
Now, I didn't go and fix that, he may be correct.

The way that I removed the language was to edit the file:

/usr/share/foomatic/db/source/printer/110624.xml

And remove the line that said <PJL/>.  Then I deleted all of the files
called '110624' in this directory:

/var/cache/foomatic/

And I reinstalled the printer.

Now I don't know what effects that will have on my printing, but I
haven't noticed any so far...

		Have fun,
			Ted
Comment 4 Tim Waugh 2002-03-04 13:39:30 EST
Do you just get '@PJL JOB NAME="LPDOMATIC"', or is there any more than that?
Comment 5 Need Real Name 2002-03-04 14:24:14 EST
I have a Laserjet Series II printer attached to my Linux box. It works
fine when the Mrs. Prints from her windows box. When I print from the
Linux box I get the following 'banner?' page printed before it prints
the requested page/s.

@PJL RESET
          @PJL EOJ
                  @PJL JOB NAME="LPDOMATIC"
Comment 6 Tim Waugh 2002-03-05 07:30:25 EST
Could someone please try the foomatic package from rawhide and let me know:
a) the version-release that you tried, and
b) whether it fixed this problem or not

Thanks.
Comment 7 Tim Waugh 2002-03-05 07:50:39 EST
Oh, wait, before doing that, could someone please try this small change?:

In /usr/sbin/lpdomatic, please change line 773 from:

     if ( @pjlprepend > 0) {

to

     if ( @pjlprepend > 1) {

and make the same change at line 779.  So it should look like:

            if ( @pjlprepend > 1 ) {
                print $fileh @pjlprepend;
            }
            while (<KID4_IN>) {
                print $fileh $_;
            }
            if ( @pjlprepend > 1 ) {
                print $fileh @pjlappend;
            }


Let me know if that fixes the problem.
Comment 8 Need Real Name 2002-03-05 08:22:25 EST
making this change

In /usr/sbin/lpdomatic, please change line 773 from:

     if ( @pjlprepend > 0) {

to

     if ( @pjlprepend > 1) {

and make the same change at line 779.  So it should look like:

            if ( @pjlprepend > 1 ) {
                print $fileh @pjlprepend;
            }
            while (<KID4_IN>) {
                print $fileh $_;
            }
            if ( @pjlprepend > 1 ) {
                print $fileh @pjlappend;
            }

Appears to work. I was able to print without the bonus page.

Comment 9 Tim Waugh 2002-04-04 07:38:04 EST
This has been fixed in rawhide for a while now.
Comment 10 Tim Waugh 2002-04-04 09:44:09 EST
*** Bug 61583 has been marked as a duplicate of this bug. ***
Comment 11 Tim Waugh 2002-05-17 03:28:44 EDT
*** Bug 65088 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.