General foo2qpdl :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Lexmark x215 driver [solved; does not use JBIG comp]
Posted by: Peter ()
Date: February 05, 2012 03:50AM

I have a Lekmark x215 and would like to be able to print to it from something other than Windows. Unfortunately, the printer chokes from the output of foo2qpdl.

I generated some simple bitmaps and converted them on a Windows box and used qpdldecode to examine them. One immediate discrepancy this showed was that the type 0x0c record is 10, rather than 11, bytes long, with the record length only being 3 bytes. After adapting qpdldecode, a solid black A4 page decode begins:
\033%-12345X@PJL SET PAPERTYPE = OFF
@PJL SET DENSITY = 3
@PJL SET POWERSAVE = ON
@PJL SET POWERSAVETIME = 5
@PJL SET JAMRECOVERY = OFF
@PJL SET REPRINT = ON
@PJL SET ALTITUDE = LOW
@PJL ENTER LANGUAGE = QPDL
RECTYPE 0x0     len=17  pageNum=1
                yres=600, copies=1, papersize=a4(2), w=0, h=0
                papersource=auto, unk=0, duplex=1:0, unk=0,0,  unk=0(0x0)
                xres=0
RECTYPE 0xc     len=784(0x310)
                stripe=0, WB=4960(0x1360), H=128(0x80), plane=13, comp=0x0,
                len=772(0x304)
                magic=0xc0000006, len=-762003456(0xd294c000), unk=1360d294,c0001360,d294c000,1360d294,c0001360,d294c000,
                end=18, ver=-4, checksum WANT=0x14c13 GOT=0x0
RECTYPE 0xc     len=784(0x310)
                stripe=1, WB=4960(0x1360), H=128(0x80), plane=13, comp=0x0,
                len=772(0x304)
                magic=0xc0000006, len=-762003456(0xd294c000), unk=1360d294,c0001360,d294c000,1360d294,c0001360,d294c000,
                end=18, ver=-4, checksum WANT=0x14c13 GOT=0x0
RECTYPE 0xc     len=784(0x310)
                stripe=2, WB=4960(0x1360), H=128(0x80), plane=13, comp=0x0,
                len=772(0x304)
                magic=0xc0000006, len=-762003456(0xd294c000), unk=1360d294,c0001360,d294c000,1360d294,c0001360,d294c000,
                end=18, ver=-4, checksum WANT=0x14c13 GOT=0x0
]
A hexdump of the start of the first 0x0c record begins at 000000e7:
000000e0  00 01 00 00 00 00 00 0c  00 13 60 00 80 0d 00 00  |..........`.....|
000000f0  03 04 c0 00 00 06 d2 94  c0 00 13 60 d2 94 c0 00  |...........`....|
00000100  13 60 d2 94 c0 00 13 60  d2 94 c0 00 13 60 d2 94  |.`.....`.....`..|
00000110  c0 00 13 60 d2 94 c0 00  13 60 d2 94 c0 00 13 60  |...`.....`.....`|
00000120  d2 94 c0 00 13 60 d2 94  c0 00 13 60 d2 94 c0 00  |.....`.....`....|
00000130  13 60 d2 94 c0 00 13 60  d2 94 c0 00 13 60 d2 94  |.`.....`.....`..|
00000140  c0 00 13 60 d2 94 c0 00  13 60 d2 94 c0 00 13 60  |...`.....`.....`|
00000150  d2 94 c0 00 13 60 d2 94  c0 00 13 60 d2 94 c0 00  |.....`.....`....|
00000160  13 60 d2 94 c0 00 13 60  d2 94 c0 00 13 60 d2 94  |.`.....`.....`..|
Does anyone have any ideas?



Edited 1 time(s). Last edit at 02/05/2012 07:53AM by rickrich.

Options: ReplyQuote
Re: Lexmark x215 driver
Posted by: rickrich ()
Date: February 05, 2012 07:52AM

It does not use JBIG compression:
$ ll lex-x215-testpage.prn
-rwxr--r-- 1 rick rick 226955 Feb  5 06:38 lex-x215-testpage.prn
Size should be ~95000. My driver only deals with JBIG compression. Try "splix" for other compression schemes.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.