LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-20-2006, 02:41 PM   #1
bagley
LQ Newbie
 
Registered: Aug 2006
Location: Illinois
Distribution: Ubuntu 10.04 (Lucid Lynx)
Posts: 8

Rep: Reputation: 0
Printer prints landscape when I specify portrait.


I have a Brother HL2040 laser printer connected to the parallel port of my FC3 system (HL2060 driver). It works as expected when I print from gedit or OO but from Firefox (1.0.7) or Thunderbird, it prints in landscape mode and feeds paper from the manual slot even though I have specified portrait mode and the automatic or the upper tray. It used to print OK from every app but I have updated a number of apps in the last month and apparently broke something.

Here are the Firefox about:config entries containing "orientation"

print.postscript.orientation default string portrait
print.printer_PostScript/HL2040.print_orientation user set integer 0
print.tmp.printerfeatures.PostScript/HL2040.can_change_orientation user set boolean true
print.tmp.printerfeatures.PostScript/HL2040.orientation.0.name user set string portrait
print.tmp.printerfeatures.PostScript/HL2040.orientation.1.name user set string landscape
print.tmp.printerfeatures.PostScript/HL2040.orientation.count user set integer 2
print.tmp.printerfeatures.PostScript/HL2040.supports_orientation_change user set boolean true
 
Old 12-21-2006, 07:51 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Just out of curiosity.. if you select landscape does it then print portrait ?

Have you tried creating a new Profile in Firefox, to see if the problem is related to a screwy profile ?
 
Old 12-21-2006, 12:41 PM   #3
bagley
LQ Newbie
 
Registered: Aug 2006
Location: Illinois
Distribution: Ubuntu 10.04 (Lucid Lynx)
Posts: 8

Original Poster
Rep: Reputation: 0
farslayer,
Thanks for the reply.

When I specify "Portrait", I get the following where "p" is the physical paper and "f" is the printed frame. The image on the frame is in portrait mode.

Code:
          ppppppppppppppppppppp
          p                   p
          p                   p
          p                   p
          p                   p
      ffffffffffffffffffffffffp
      f   p                  fp
      f   p                  fp
      f   p <- Top of frame  fp
      f   p                  fp
      f   p                  fp
      f   p                  fp
      ffffffffffffffffffffffffp
          ppppppppppppppppppppp
When I specify "Landscape", I get the following. The image on the frame is in landscape mode.

Code:
          ppppppppppppppppppppp
          p                   p
          p                   p
          p                   p
          p                   p
      ffffffffffffffffffffffffp
      f   p                  fp
      f   p                  fp
      f   p   Top of frame   fp
      f   p        |         fp
      f   p        V         fp
      f   p                  fp
      ffffffffffffffffffffffffp
          ppppppppppppppppppppp
I don't think it's a Firefox problem because I get the same behavior with Thunderbird and the Acrobat Reader.

Last edited by bagley; 12-21-2006 at 01:40 PM. Reason: To make the text figures look right.
 
Old 12-21-2006, 03:41 PM   #4
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Bagley,

I actually used to run into this problem quite a bit when i used to work at Fedex Kinko's. It usually had something to do with faulty PPD's (postscript printer drivers). There would be an updated version available, we'd have to download it and reinstall it. However, i don't know Linux well enough to be able to decypher the configuration file that you provided to tell you what's wrong. let me know happens.

Regards,

Brandon
 
Old 12-21-2006, 07:41 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I would say it's a ppd problem as well.. you said you are using 2060 ppd for a 2040 printer.. does the 2060 print landscape by default ? (feed the paper sideways ? some printers do)

You may want to roll back to a older version of the driver a model or two below your current printer.

Alternately you could manaully edit the ppd file, to change the paper layout, and printable and non-printable areas.. a ppd file is nothing more than a big text file that defines your printers capabilities to the print engine.. they are very readable, and the entire spec for them is available on Adobes website..

I have done minor modifications in ppd files with great success in the past.. but like I said the issues I was addressing were very minor.
 
Old 12-23-2006, 05:57 PM   #6
bagley
LQ Newbie
 
Registered: Aug 2006
Location: Illinois
Distribution: Ubuntu 10.04 (Lucid Lynx)
Posts: 8

Original Poster
Rep: Reputation: 0
Printed output is rotated 90 degrees.

Upon further examination, I've redefined the problem. It's not a portrait/landscape problem. In both cases, the printed frame is the correct size but it is rotated 90 degrees and only part of it fits on the physical page.

Quote:
Originally Posted by farslayer
I would say it's a ppd problem as well.. you said you are using 2060 ppd for a 2040 printer.. does the 2060 print landscape by default ? (feed the paper sideways ? some printers do)

You may want to roll back to a older version of the driver a model or two below your current printer.
It worked fine for over a year using the 2060 driver.

Quote:
Alternately you could manaully edit the ppd file, to change the paper layout, and printable and non-printable areas.. a ppd file is nothing more than a big text file that defines your printers capabilities to the print engine.. they are very readable, and the entire spec for them is available on Adobes website..

I have done minor modifications in ppd files with great success in the past.. but like I said the issues I was addressing were very minor.
I don't see anything in the ppd file that would rotate the print image. Anyway, I don't think it's a CUPS problem because I did http://localhost:631 (using Firefox) and printed a test page that came out OK.
 
Old 12-23-2006, 08:18 PM   #7
bagley
LQ Newbie
 
Registered: Aug 2006
Location: Illinois
Distribution: Ubuntu 10.04 (Lucid Lynx)
Posts: 8

Original Poster
Rep: Reputation: 0
Problem solved. (It pays to read the documentation).

I tried lpoptions to see what the current options are:
Code:
$ lpoptions -p HL2040
job-sheets=none,none cpi=12 lpi=7 page-bottom=86 page-left=57 page-right=57 page-top=72 scaling=100 wrap=true InputSlot=manual orientation-requested=4
Aha! Somehow two rogue options got specified. All I must do is remove them.
Code:
$ lpoptions -p hl2040 -r InputSlot -r orientation-requested
I did and the printer now works as I expect it and as it did formerly.
 
Old 05-06-2007, 08:02 PM   #8
redwing57
Member
 
Registered: Jan 2005
Location: Yorktown, VA
Distribution: CentOS, Ubuntu, MEPIS
Posts: 30

Rep: Reputation: 15
Fixed similar problem under CentOS

Thanks for the followup on this post. I had a similar problem with a printer under CentOS 4. The problem surfaced after moving my HP Photosmart P1000 to a print server. I ran lpoptions and was able to fix it.

Code:
lpoptions -p Photosmart-P1000
The problem parameter was orientation-requested=4. I removed it as recommended.

Code:
lpoptions -p Photosmart-P1000 -r orientation-requested
Thanks for the help! I just wish I understood this.
 
  


Reply

Tags
options, printer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lexmark Optra T610 network printer prints Landscape instead of Portrait (Suse 9.3) tkmbe Linux - Hardware 1 06-20-2006 05:49 PM
CUPS Printer Problem - prints, but prints gibberish Sparrowhawk Debian 2 06-19-2006 07:32 PM
Getting a networked HP printer to print landscape mikeybuk Linux - Newbie 1 01-25-2006 05:31 PM
Printer: No landscape option micder Suse/Novell 2 12-15-2005 06:55 AM
CUPS prints only small landscape format geomatt Linux - Software 1 10-07-2005 12:41 PM


All times are GMT -5. The time now is 12:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration