Cancel Printing

Support knowledgebase (jsmeix_print-abbrechen)
Applies to

SuSE Linux: All versions

Symptom

Your printer prints "nonsense", like several empty or nearly empty pages or unreadable character strings.

Cause

Your printer is not set up correctly, because a wrong Ghostscript driver was selected, or you tried to print (as user root) with cat file >/dev/lp0 or the connection to the printer was interrupted during printing (unreliable hardware). Basically, the printer receives data that it cannot interpret. For example,

Solution

The following solution is not intended for a standard case. Normally an accidental printing can be cancelled with the command lprm.

  1. As the printer begins to prints nonsense, remove all the paper from an ink jet printer or open the paper tray for laser printers.
  2. Log in as user root.
  3. Type fuser -k /dev/lp0 if your printer is connected to the first parallel interface or fuser -k /dev/usblp0 or fuser -k /dev/usb/lp0 if it is a USB printer. This command kills every process that access the printer interface.
  4. Type lpc status or lpc status all to see every existing printer spooling queue. Suppose the following printer spooling queues are shown:
      lp:
      color:
    
    Then erase all printjobs from every printer spooling queue with the commands:
      lprm -Plp -
      lprm -Pcolor -
    
    or
      lprm -Plp all
      lprm -Pcolor all   
    
    or
      lprm -Pall all
    
  5. Turn your printer off completely and switch it on again.

It is possible that your printer will only work again after rebooting or after stopping the printer daemon, unloading the kernel modules that concern printer interfaces, reloading the kernel modules, and restarting the printer daemon.


See also:
o Installing a Printer
o Installing a printer since SuSE Linux 6.4 and up to 7.3

Keywords: PRINTER, PRINTING, CANCEL, LPRM

Categories: Frequently asked Questions , Documentation , Printer

SDB-jsmeix_print-abbrechen, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 09. Aug 2000
SuSE Linux AG - Last generated: 22. Mai 2002 by jsmeix (sdb_gen 1.40.0)