[cups.bugs] [LOW] STR #1452: When raw printing to a turned off matrix printer, some characters are lost from the beginning

Alexander alk at bermi.net
Wed Mar 1 05:13:03 PST 2006


[STR New]

This has been tested with a Star NX-2420 and a Epson LX-300, printing from
a Debian Sarge with 2.6.8 kernel. In both cases the printer was set up as
"Epson 9-pin".

If the command "echo 12345 > /dev/lp0 " is executed while the printer is
turned off, when it is turned on it prints the requested string, except
some first characters (at least one under those conditions, sometimes 2 or
3). With "echo 12345 | lp -oraw -" the result is the same, except the
terminal does not remains blocked until the printer is turned on.

If i omit "raw" option for lp, all requested characters are printed (using
a nice font), but it also prints a "@" sign (using a printer's font) at
the beginning of the line, i estimate it is placed on the left-top corner
of the line, and the actual requested printing is placed over it, which
also screws up the whole picture.
Also, i'm geting "FIFO write timed out" in kern.log (only when using cups,
it says nothing when echoing data directly to /dev/lp0).

A quick view of parallel.c from cups's sources indicates that cups does
some checks before sending data to the printer (is it online, does it have
paper, etc.), so i was expecting cups to queue the job, and do not send it
to the printer until make sure it is able to print it the right way.

Standard input has nothing to do with this, when printing ascii files same
thing happens.

Thank you for your consideration.

Link: http://www.cups.org/str.php?L1452
Version: 1.1.23





More information about the cups mailing list