printing problems: printer resets but no print

printing problems: printer resets but no print

Post by David Ishe » Sat, 14 Dec 1996 04:00:00

OS:       Redhat Linux 4.0, fresh install
Hardware: 486DX4-100, 16 megs RAM
Printer:  HP Deskjet 520 on LPT1 (lp1 in linux)
Version:  apsfilter 4.9

apsfilter is installed in /usr/local/lib/apsfilter
spool directory is /usr/spool/

Here are some lines from /var/log/messages after trying to print:

Dec  6 19:39:09 gsubc kernel: lp1 at 0x0378, (polling)
Dec  6 19:40:13 gsubc kernel: lp1 at 0x0378, (polling)
Dec  6 19:41:18 gsubc kernel: lp1 at 0x0378, (polling)
Dec  6 19:42:22 gsubc kernel: lp1 at 0x0378, (polling)
Dec  6 19:43:27 gsubc kernel: lp1 at 0x0378, (polling)
Dec  6 19:44:31 gsubc kernel: lp1 at 0x0378, (polling)

I tried to send a txt file to the printer with "lpr foo.txt" which went
into the /usr/spool/deskjet-letter-auto-mono directory. The status file

waiting for lp to become ready (offline ?)

Every time a (polling) option showed up in the /var/log/messages file the
printer went through a reset sequence (about 20 seconds between each
(polling) message showing up). As root I did a "cat foo.txt > /dev/lp1" and
it starting printing immediately with the typical staircase stuff. I have
used apsfilter before (can't remember which version) when I was running
Red Hat 3.0.3 and it worked great. I did a fresh install of 4.0 and
re-installed apsfilter, now it doesn't want to work. I've doublechecked
everything in the TROUBLESHOOTING file and everything looks ok. I tried to
enable logging with the set -x option uncommented but the log file was
empty as the printer did a reset every 20 seconds or so.

I've even recompiled the stuff manually according to the TROUBLESHOOTING
file. The only warnings I got compiling were this:

Compiling a2ps ...
cc -c -s -O -DBSD -DAKL  a2ps.c
a2ps.c: In function `print_prologue':
a2ps.c:1582: warning: comparison between pointer and integer
Linking a2ps ...
cc -o ./xa2ps a2ps.o

Here is a few lines of source code beginning with line 1582 from a2ps.c:

                if ((rt = gethostname(host, MAX_HOSTNAME)) == -1 ||
host[0] == NULL)
                        host = NULL;

(pine wrapped the first line)

I've even upgraded the lpr package from the updates directory on the
redhat site.

Any ideas on how to debug this further?




| Mechanical Engineer                                                |
| Mississippi State University                 Linux user            |
|                                                                    |
| Life is like eatin' an orange. If at first you don't succeed, keep |
|  on suckin' 'till you do suck seed. --- Curly from Three Stooges   |
|                                                                    |
+------------- -------------+