Bug 106952 - mpage setduplexmode output croaks on HP LaserJet 5m
Summary: mpage setduplexmode output croaks on HP LaserJet 5m
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mpage
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-13 22:16 UTC by Orion Poplawski
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: mpage-2.5.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-07 15:56:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2003-10-13 22:16:27 UTC
Description of problem:
  
mpage sends the following when not told to use duplex printing:

statusdict /setduplexmode known { statusdict begin false setduplexmode end } if

which results in a configuration error on a Laser Jet 5m without a duplex unit.

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

How reproducible:

Every time

Steps to Reproduce:
1.  Setup HP Laser Jet 5m printer with redhat-config-printer
2.  Print ASCII text test page
3.  
    
Actual results:

Postscript error page

Expected results:

The text sent to the printer

Additional info:

proposed patch:

--- mpage-2.5.3/mpage.c.setduplexmode   2003-10-13 15:56:45.000000000 -0600
+++ mpage-2.5.3/mpage.c 2003-10-13 15:56:55.000000000 -0600
@@ -241,11 +241,6 @@
            fprintf(outfd, "{ statusdict begin true settumble end } if\n");
        }
     }
-    else {
-       /* CAN WE DO THIS FOR PRINTERS THAT DO NOT NDERSTAND DUPLEX PRINTING??? */
-       fprintf(outfd, "statusdict /setduplexmode known");
-       fprintf(outfd, " { statusdict begin false setduplexmode end } if\n");
-    }

     if (opt_encoding) {
         fprintf(outfd,

Comment 1 Orion Poplawski 2004-12-07 15:56:53 UTC
This code is commented out in mpage-2.5.4, so this should be resolved in FC3:

    else {
       /*
        * CAN WE DO THIS FOR PRINTERS THAT DO NOT NDERSTAND DUPLEX PRINTING???
        * It also seems to break for example the lp -o duplex command.
        * So better switch this part of.
        */
#if 0
       fprintf(outfd, "statusdict /setduplexmode known");
       fprintf(outfd, " { statusdict begin false setduplexmode end } if\n");
#endif
    }


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