File: README

package info (click to toggle)
c2050 0.3b-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 144 kB
  • sloc: ansic: 280; makefile: 55; sh: 14; python: 8
file content (75 lines) | stat: -rw-r--r-- 3,125 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Lexmark 2050 Color Jetprinter Linux Driver

The Lexmark 2050 is a fine printer: two seperate cartridges, up to 600dpi, full
color printing capabilities and cheap. At least it was cheap, as you cannot buy
it any longer. But if you already have one and want to use it with Linux, here
the right driver can be found.
Unfortunately, Lexmark decided to design the 2050 as a Windows GDI printer. The
protocol is proprietary, so there is not any documentation available.
Fortunately, as it is a very simple protocol, it has not been an unsolvable
problem to reverse engineer it by printing to a file using the Windows driver.

The protocol uses a short initialization sequence to set up the printer and
load a page. After that, bit patterns with their own header are sent to the
printer, usually followed by a sequence to transport the paper to the next
vertical position. The bit patterns have one bit for each pen in the cartridge.
The bits are in the reverse order of the pens in one column of the sweep; the
uppermost pen last, then up to the last pen, after that the next column.Certain
bytes in the header set the horizontal start position and the number of columns
to print. A checksum, the complete number of bytes for one sweep including the
header, has to be present in the header to make the printer accept the data.

Color printing is nonetheless a difficult issue. As there are three colors in
the color cartridge, there is only a third of the pens available for each
color. There is also a gap inbetween two colors and magenta is disaligned
as to the other colors. Yet all three colors are printed in one sweep, so there
have to be some arithmetics.
Optimization of white spaces is also handled by this driver by reducing the
sweeps to their minimum width and transporting vertically over completely empty
lines in just one sequence.

The driver filters GhostScript output to the Lexmark protocol. The input format
is bitcmyk. The driver simply reads the standard input, converts it and then
sends the data to the standard output. This has been successfully tested with
GhostScript 5.10, which is included in Debian 2.2.

-------------------------------------------------------------------------------

INSTALLING DRIVER

After you have downloaded the tarball with the sourcecode, you have to extract
its contents into a directory of your choice by typing

		tar zxvf c2050-0.1.tar.gz

Then you have to compile the code to get the binary for your system. This is
done simply by typing

		make

If you are root (you should be root while installing new software in most cases
anyway) you can now copy the binary to its destination, which is /usr/bin/c2070
by typing

		make install 
		
-------------------------------------------------------------------------------

EXAMPLES

To print Ghostscript example tiger.ps type (/dev/lp0 may be writable by the
current user):

gs -q -sDEVICE=bitcmyk \
   -r300 \
   -dDITHERPPI=150 \
   -dNOPAUSE \
   -dSAFER \
   -dBATCH \
   -sOutputFile=\|c2050 \
   /usr/doc/gs/examples/tiger.ps > /dev/lp0

or use ps2lexmark script:

ps2lexmark < /usr/doc/gs/examples/tiger.ps > /dev/lp0