[comp.os.minix] Epson printers and Minix 1.2

usenet@cps3xx.UUCP (Usenet file owner) (11/27/89)

The Epson printers (FX 86e and FX850 were available) do not work
not work properly with the Minix 1.2 printer driver. The
printers at random, double echo or drop characters to be
printed. The fix to the problem does not require too much effort
(hence no diffs).

	The fix involves the pr_char() module of kernel/printer.c file.
The following two lines of c-code in pr_char()

	port_out(port_base + 2, ASSERT_STROB);
	port_out(port_base + 2, NEGATE_STROBE);

should to be replaced by the folliwng lines of code

	port_out(port_base + 2, ASSERT_STROBE);
	while(port_in(port_base + 1, &value), (value & STATUS_MASK) !=
						NORMAL_STATUS);
	/* no negation of strobe till printer status is normal */
	port_out(port_base + 2, NEGATE_STROBE);

It has worked very well upto files for sizes upto 600Kb.

- ir (rattan@frith.egr.msu.edu)