LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-19-2011, 11:53 AM   #1
dafydil
Member
 
Registered: Aug 2007
Posts: 50

Rep: Reputation: 15
HP Deskjet 1000 page run-on problem


When I print a text file of less than about 60 lines, "lp" does it right. For one of say 80 lines, after the feed the second page is mangled, with repetitions of the remaining material and parts of the first page overstriking each other.

With Linux 13.37 I use the command:

@args=("lp",
"-o","cpi=14",
"-o","page-top=72",
"-o","page-left=100",
"-o","page-right=98",
"-o","page-bottom=20",
"-o","media=letter",
$ofile);

Ignore the peculiar formatting; this is just the "lp" command. I had to write a Perl program to break the file into pages and issue each as a separate job. This is clumsy. Why will "lp" not print text files of longer than one page correctly?
 
Old 09-19-2011, 12:46 PM   #2
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
Printer problems

As I understand it we are to ignore the options (peculiar formatting).
lp does print text files longer than one page with or without formatting.

Try piping through lpr and put some of the details thereafter and see if there is an improvement.
 
Old 09-19-2011, 01:15 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I'm not too sure that your arguments are quite right (and I'm not too sure how to correct them, either) but perhaps I can suggest that you try a2ps?

The only configuration file you need to fiddle with for a2sp is /etc/a2ps-site.cfg; you'll want to define, at the top of the file,
Code:
#################################################################
# 1)    System dependent parameters                             #
#################################################################

# Default encoding
Options: --encoding=latin1

# Default medium
# Options: --medium=letter
Options: --medium=letterdj
This is because Deskjets need a slightly larger margin than plain Letter. In the corresponding file,
/etc/a2ps.cfg, the settings for Letter and Letterdj are
Code:
# Medium: name,    width height   [llx     lly      urx     ury]
Medium: Letter      612     792
Medium: Letterdj    612     792     24      40      588     752
Those extra numbers on the Letterdj line are what makes things work properly. It might also be useful to note the width and height values.

It's also a Real Good Idea to configure HPLIP (if you have it, get it from you distribution software library or from Hewlett-Packard if you don't).

HPLIP will create correct entries for your printer for use with lp, a2ps, and CUPS. Hewlett-Packard provides complete "drivers" for all the printers they make (well, pretty much) and if you set up HPLIP and CUPS your life will be much, much easier when you're printing with lp or a2ps or any applications you use.

Hope this helps some.

Last edited by tronayne; 09-19-2011 at 01:18 PM. Reason: Typos! The Bane of My Life!
 
  


Reply



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
HP deskjet 940c on linksys printserver prints alternating good page and bad page frogger Linux - Hardware 2 03-14-2011 02:54 PM
Ubuntu 10.10 problems installing HP deskjet 1000... sjrcchumanities Linux - Hardware 2 02-10-2011 08:05 AM
printer does not run,HP Deskjet D4260,opensuse 11.2 pgl43g Linux - Newbie 2 10-05-2010 05:49 AM
Apache2, how to restrict number of page requests from any ip to 1000 TefoZi Linux - Newbie 3 09-03-2007 01:47 PM
HP Deskjet Printer, page margins incorrect.... hollywoodb Linux - Hardware 2 12-09-2006 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration