Solved! Was Printing Hell with the HP4L

Solved! Was Printing Hell with the HP4L

Post by Richard W. Ko » Sun, 12 May 1996 04:00:00



I figured out what the problem was with my printer not showing up
on bootup. It's always somethin stupid in the Linux world! :)

I had an extra serial port* off an ISA board that I
wasn't using and it stole the port I/O address on my LPT
port. That's why I didn't get any output from an

cat file > /dev/lp1
(or lp0 or lp2 for that matter).

Now it works, I installed apsfilter 4.91 and chose Laserjet 3
mode as suggested to me by someone. It now handles postscript
files well too. It does print out text files in an enscript
format however.

Does anyone know why I need to push the purple button on
the printer whenever I do a:

ls > /dev/lp1

Or anything other than and lpr filename  (which works fine
as well as a cat filename | lpr). In otherwords a redirection
to the /dev/lp1 hangs the printer, until I push the button
then the data redirected to the printer just prints out
as though it were normal. Hmmm?

I want to thank:





for your responses and I'm sorry that I didn't get back
to you guys.

Rich

 
 
 

Solved! Was Printing Hell with the HP4L

Post by gary schreib » Tue, 14 May 1996 04:00:00



: I figured out what the problem was with my printer not showing up
: on bootup. It's always somethin stupid in the Linux world! :)

[snip]

:
: Does anyone know why I need to push the purple button on
: the printer whenever I do a:
:
: ls > /dev/lp1
:
: Or anything other than and lpr filename  (which works fine
: as well as a cat filename | lpr). In otherwords a redirection
: to the /dev/lp1 hangs the printer, until I push the button
: then the data redirected to the printer just prints out
: as though it were normal. Hmmm?
:

[snip]

:
: Rich

Rich, one thing to realize, if you don't print out a full page of data, the
printer will just maintain the data in buffer until the page is full.  THEN,
It will print it out.  When you hit the FORM FEED button (the purple button),
it causes the printer to print anything it has in memory.  Therefore, it
results in just what you mentioned.  Try sending more than a page of 'data'
to the printer, in the same method (ie. ls -l > /dev/lp1 but do it in a LARGE
directory).  You'll probably get your however many pages printed, but you
will have to hit the purple button to get the last little bit.  LaTeR.

--



        of Desolate Weyr        |

 
 
 

Solved! Was Printing Hell with the HP4L

Post by Andrew G. MacPhe » Tue, 14 May 1996 04:00:00


Is there a way to make this happen automatically? Is there a line
you can put in printcap to do a form-feed or whatever at the end of the
job?



> : I figured out what the problem was with my printer not showing up
> : on bootup. It's always somethin stupid in the Linux world! :)

> [snip]

> :
> : Does anyone know why I need to push the purple button on
> : the printer whenever I do a:
> :
> : ls > /dev/lp1
> :
> : Or anything other than and lpr filename  (which works fine
> : as well as a cat filename | lpr). In otherwords a redirection
> : to the /dev/lp1 hangs the printer, until I push the button
> : then the data redirected to the printer just prints out
> : as though it were normal. Hmmm?
> :

> [snip]

> :
> : Rich

> Rich, one thing to realize, if you don't print out a full page of data, the
> printer will just maintain the data in buffer until the page is full.  THEN,
> It will print it out.  When you hit the FORM FEED button (the purple button),
> it causes the printer to print anything it has in memory.  Therefore, it
> results in just what you mentioned.  Try sending more than a page of 'data'
> to the printer, in the same method (ie. ls -l > /dev/lp1 but do it in a LARGE
> directory).  You'll probably get your however many pages printed, but you
> will have to hit the purple button to get the last little bit.  LaTeR.

> --



>    of Desolate Weyr        |

*********************************************************************

                      Department of Pure & Applied Physics
                      The Queen's University of Belfast
                      University Road
                      Belfast BT7 1NN
                      NI UK

tel.  + 44 1232 245133 x3519    fax. + 44 1232 438918
*********************************************************************

 
 
 

Solved! Was Printing Hell with the HP4L

Post by Rube Goldbe » Thu, 16 May 1996 04:00:00



 >Is there a way to make this happen automatically? Is there a line
 >you can put in printcap to do a form-feed or whatever at the end of the
 >job?
 >

 >

 >> : I figured out what the problem was with my printer not showing up
 >> : on bootup. It's always somethin stupid in the Linux world! :)
 >>
 >> [snip]
 >>
 >> :
 >> : Does anyone know why I need to push the purple button on
 >> : the printer whenever I do a:
 >> :
 >> : ls > /dev/lp1
 >> :
 >> : Or anything other than and lpr filename  (which works fine
 >> : as well as a cat filename | lpr). In otherwords a redirection
 >> : to the /dev/lp1 hangs the printer, until I push the button

 >> [snip]
 >>
 >> :
 >> : Rich
 >>
 >> Rich, one thing to realize, if you don't print out a full page of data, the
 >> printer will just maintain the data in buffer until the page is full.  THEN,
 >> It will print it out.  When you hit the FORM FEED button (the purple button),
 >> it causes the printer to print anything it has in memory.  Therefore, it
 >> results in just what you mentioned.  Try sending more than a page of 'data'
 >> to the printer, in the same method (ie. ls -l > /dev/lp1 but do it in a LARGE
 >> directory).  You'll probably get your however many pages printed, but you
 >> will have to hit the purple button to get the last little bit.  LaTeR.

  >> [snip]

                There are two things you can do to kick out the page AND
                not push the button.

                1) try adding :tr=\f: to the printcap.

                The armor plated way:

                2) add

                :tr=\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\
                    \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\
                    \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r:
--


        Steinberger:
State of the Instrument

 
 
 

1. Printing Hell with the HP4L

I think I'm ready to die, but it's probably a pretty easy solution. I can't
get Linux to recognize my HP 4L! Here's the message from /var/log/messages:

Apr 15 22:27:21 macedonia kernel: lp: Driver configured but no interfaces found.

It fails to poll my printer port. I've tried running tunelp and have gotten:


/dev/lp1: No such device

/dev/lp0: No such device

I've made sure to re-configure my kernel for parallel printing support,
made sure there is no IRQ conflict. I had accidently set my Sound card
to be IRQ7 at one time, but changing that didn't help me print anything...
Played around with IRQ settings galore...No avail...

Didn't configure PLIP in my kernel if that makes ANY difference at all....

Here's my /dev/lp listings:


crw-rw----   1 root     daemon     6,   0 Apr 15 22:08 /dev/lp0
crw-rw----   1 root     daemon     6,   1 Apr 15 22:08 /dev/lp1
crw-rw----   1 root     daemon     6,   2 Apr 15 22:08 /dev/lp2

Made sure also that lpd is running as well as to not leave out the
obvious:


root       143  0.0  1.2   908   372  ?  S    22:27   0:00 lpd
root       274  0.0  1.2   984   384  p1 S    22:37   0:00 egrep lpd

I just ran /dev/MAKEDEV lp (again) just to make sure that it is there. I'm
really frustrated as the Printing-HOWTO does not solve my problem. What
gives? I've installed apsfilter-4.91 but obviously it's fruitless until
I can get the printer recognized.

Any clues? I'm running 1.3.84 on a Pentium 100 w/ 32MB RAM (Red Hat 3.03, I've
actually had no luck with Slackware 2.3 or 3.0 either for my printer :(   )

- Rich (A frustrated user whose HP works in DOS but not in his beloved
        Linux! aRRRgGHH!)

2. Intel Pro 2100 miniPCI WLAN Adapter

3. PCL poscript I am in printing hell

4. EARN UNLIMITED INCOME WORKING AT HOME

5. How do I format a Mac disk on a PC?

6. HP4L problem solved

7. USB microphone and a Linux Driver

8. printing to hp4l

9. Help. Pages offset when printing on HP4L

10. Printing (postscript?)with HP4l

11. Problem printing on HP4L with apsfilter

12. printing problem with kernel 2.0.30 and HP4L