[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgraded to woody and printing from KDE stopped



On Thu, 28 Mar 2002 21:54:04 -0700, Gruetzner wrote:

>  I did a search to see if others have had this problem, but didn't find 
>any.  My apologies if I didn't use the right keywords.  I've tried to use 
>the printing HOWTO, but seem to be going in circles when reading it.  
>
>   I recently upgraded from potato to woody.  I did not upgrade the kernel 
>(2.2.19).  My desktop is KDE. 
>
>    After upgrading, I could no longer get my printer to work.  (It worked 
>under potato:  I've a Brother HL-1240, and used the laserjet driver.)   I 
>have since installed lprng and deleted lpr, and can now print an ascii 
>file from the command line (e.g.,   lpr  testfile.txt).   I 
>
>    However, when I try to print from a KDE app or from WordPerfect or 
>from acrobat, I get the following type of message window popping up:
>
>--------------------
>/usr/bin/lpr -P 'lp|bhl1240|Brother HL-1240' '-#1'
>/home/family/.kde/tmp-family/kdeprint_s5dkMry: execution failed with
>message:
>
>Status Information:  sending job 'family@localhost+433' to
>lp"bhl1240|Brother HL-1240@localhost connecting to 'localhost', attempt 1
>connected to 'localhost' requesting printer lp|bhl1240|Brother
>HL-1240@localhost job 'family @localhost+433' transfer to
>lp|bhl1240|Brother HL-1240@lcoalhost failed error "NONZERO RFC1179
>ERROR CODE FROM SERVER' with ack 'ACK_FAIL' sending str
>'^Blp|bhl1240|Brother-1240' to lp|bhl1240@localhost
>error msg: 'bad command line'
>---------------
>
>   I'm at a loss.  I'm pretty ignorant of printing arcana, but something 
>must need configuring that isn't.  
>
>    Oh, I've tried it with the environmental variable $PRINTER set to "lp" 
>and to just nothing:  same results.   I've also tried...
>   # lpc enable all
>...with no change.    
>
>   When I run lpq, it tells me that the last job that lp@localhost printed 
>was the  lpr testfile.txt, and that Filter_status: lp is ready and 
>printing.   (It's lying.)   (What's this "@localhost bit?)

Ready and printing means ready.  @localhost is weird, have no clue.

>
>   Running lsmod shows that lp is apparently loaded.   I didn't see 
>anything that made sense to me in the /var/logs--but I may not know what 
>to look for!  
>  
>    If you can help, I'd appreciate it, either on-list or direct.   My 
>wife and eldest daughter are both bugging me to get the ability to print 
>back!


James,

I don't know that I'm offering much.  I do think your printcap is
screwy.  The r=, p=, etc. are setup parameters and should not appear in
the name of printer area.  The apsfilter configurator will generate a
printcap file for you.  (Is apsfilter the latest?)  Try renaming your
existing printcap and run apsfilter config again.

My Apsfilter-built printcap file is attached.  "raw" is the printer name
for my dot matrix using ASCII text and "pandot" is the name for the same
printer when printing ps or other format.

You must use the printer name in the print command (or it defaults to
the unfiltered "lp") to get it to use the filter.  Thus, lpr -Praw, or
lpr -Ppandot.  Before I learned this trick, my print jobs would, in some
cases, disappear as do yours.  (Don't know why it happens, I just avoid
it.)

Couple of notes,  the bad printer name--all those parameters became part
of the hl... name, and the 'can't find spool' error--each printer must
have a file "/var/spool/lpd/<printer name>"

caveat:  tested on gnome desktop using emacs and abiword
--
gt
Everything here could be wrong--Messiah's Handbook--Bach
# /etc/printcap: printer capability database. See printcap(5).
# You can use the filter entries df, tf, cf, gf etc. for
# your own filters. See /etc/filter.ps, /etc/filter.pcl and
# the printcap(5) manual page for further details.

lp|Generic dot-matrix printer entry:\
        :lp=/dev/lp0:\
        :sd=/var/spool/lpd/lp:\
        :af=/var/log/lp-acct:\
        :lf=/var/log/lp-errs:\
        :pl#66:\
        :pw#80:\
        :pc#150:\
        :mx#0:\
        :sh:

# rlp|Remote printer entry:\
#         :lp=:\
#         :rm=remotehost:\
#         :rp=remoteprinter:\
#         :sd=/var/spool/lpd/remote:\
#         :mx#0:\
#         :sh:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
pandot|Printer1 auto:\
    :lp=/dev/lp0:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/pandot:\
    :lf=/var/spool/lpd/pandot/log:\
    :af=/var/spool/lpd/pandot/acct:\
    :mx#0:\
    :sh:
raw|Printer1 raw:\
    :lp=/dev/lp0:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/raw:\
    :lf=/var/spool/lpd/raw/log:\
    :af=/var/spool/lpd/raw/acct:\
    :mx#0:\
    :sf:\
    :sh:
# APS1_END - don't delete this

Reply to: