Samsung CLP-310, CLP-315 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
CLP-310: prints with offset
Posted by: martin ()
Date: September 30, 2008 09:20AM

Hi,

first: Thanks for your great software (downloaded today, last changes from 2008-09-24). It just works out of the box with my new Samsung CLP-310. There is a problem, however: The print out is not properly positioned on the paper. The test page printed from CUPS shows that its about 3..5mm to far to the right and 8..10mm to far to the bottom. How/where can I adjust this? Is it a problem of foo2qpdl or a ghostscript problem? Btw. I'm running Debian lenny (testing) with all package up to date. Many thanks in advance!

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: rickrich ()
Date: September 30, 2008 09:42AM

Did you set the A4 paper???
# grep foo2qpdl /var/log/messages
What does that say???

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 01, 2008 04:12AM

foo2qpdl-wrapper: foo2qpdl-wrapper -z2 -r600x600 -p2 -s1 -m0 -d1 -n1 -C10 -Gsamclp300-0.icm
foo2qpdl-wrapper: gs -sPAPERSIZE=a4 -g4960x7016 -r600x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
foo2qpdl-wrapper: foo2qpdl -r600x600 -g4960x7016 -p2 -m0 -n1 -d1 -s1 -z2 -u 75x100 -l 75x100

According to the man page -p2 means A4, right?

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: rickrich ()
Date: October 01, 2008 09:31AM

Play around with -L[0-3] and -uXXXxYYY.

$ man foo2qpdl-wrapper
[snip]
    Printer Tweaking Options
       These are the options used to customize the operation of foo2qpdl for a
       particular printer.

       -u xoffxyoff
              Set  the  offset  of  the start of the printable region from the
              upper left corner, in pixels [varies with paper size].

       -l xoffxyoff
              Set the offset of the end of the printable region from the lower
              right corner, in pixels [varies with paper size].

       -L mask
              Send  the logical clipping values from -u/-l in the QPDL stream.
              foo2qpdl-wrapper always runs Ghostscript  with  the  ideal  page
              dimensions,  so  that the scale of the image is correct, regard-
              less whether or not the printer has unprintable  regions.   This
              option is used to move the position of the clipped image back to
              where it belongs on the page.  The default is to send the amount
              which  was  clipped  by  -u  and  -l, and should be good in most
              cases.

              0   don’t send any logical clipping amounts
              1   only send Y clipping amount
              2   only send X clipping amount
              3   send both X and Y clipping amounts
[snip]

$ foo2qpdl-wrapper -z2 -r600x600 -p2 -s1 -m0 -d1 -n1 -C10 -Gsamclp300-0.icm -L3 -u XXXxYYY >xxx.prn
$ nc 192.168.MMM.NNN 9100 <xxx.prn
OR
# cp xxx.prn /dev/usb/lp0
And tell me...

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 02, 2008 06:01AM

Which values are useful to test? My preliminary result is:
w/o "-u"    prints with offset, as posted before
-u0x0       SPL-C ERROR - Including Corrupted Header Data
-u100x100   prints with offset, nearly no difference to default
-u150x150   SPL-C ERROR - Including Corrupted Header Data
-u200x200   SPL-C ERROR - Including Corrupted Header Data
-u300x300   page totally garbled
-u600x600   page totally garbled
-u1000x1000 SPL-C ERROR - Including Corrupted Header Data
-u1200x1200 SPL-C ERROR - Including Corrupted Header Data
I did not yet try the "-l" option yet, because I thought it's better to get one option right first. All other options are used exactly like you suggested. Many thanks for the support!

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 05, 2008 05:00AM

Some more (negative, so far) results:
-u100x0 smaller offset than default, I think
-u200x0 SPL-C ERROR - Including Corrupted Header Data
-u300x0 page totally garbled
-u400x0 page totally garbled
-u0x100 SPL-C ERROR - Including Corrupted Header Data
-u0x200 SPL-C ERROR - Including Corrupted Header Data
-u0x300 SPL-C ERROR - Including Corrupted Header Data
Is there anything else I could try?

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 05, 2008 05:33AM

Sorry, I was confused:
-u100x0
increases the margin, so it should be negative, like
-u-100x0
, but this gives me
Illegal X value '-100' for -u
from foo2qpdl-wrapper.

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 05, 2008 06:48AM

OK, now I tried the -l option instead of -u (not used -u, everything else as suggested by you):

-l0x100   SPL-C ERROR - Including Corrupted Header Data
-l100x0   maybe slightly better than default, but not sufficient
-l100x100 maybe slightly better than default, but not sufficient
-l200x200 SPL-C ERROR - Including Corrupted Header Data
-l300x300 page totally garbled
-l400x400 page totally garbled

The complete print out of the error is always:

SPL-C ERROR - Including Corrupted Header Data
    POSITION : 0x0 (0)
    SYSTEM   : src/xl_image
    LINE     : 811
    VERSION  : SPL-C 5.35 11-20-2007

But that does probably does not help much.

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: rickrich ()
Date: October 08, 2008 04:02AM

2008-10-07 Rick Richardson <rick.richardson@comcast.net>
* foo2qpdl: bug fix: -z2 (clp-315. clp-610): stripe starts
with 0, not 1.

Options: ReplyQuote
Re: CLP-310: prints with offset
Posted by: martin ()
Date: October 09, 2008 07:30AM

Many thanks! I installed the version of 2008-10-08. This version (almost) fixes the CLP-310 issue, i.e. there is only a small offset (2mm too far to the right, 1mm too far to the bottom). The command line as mentioned above gives the follwing results:

without -l/-u   offset 2mm right, 1mm bottom
-l100x0         hardly any difference
-l200x100       SPL-C ERROR - Including Corrupted Header Data
-l300x150       page totally garbled
-l300x300       page totally garbled
-l600x600       page totally garbled
-u300x300       page totally garbled
-u600x600       page totally garbled

Any ideas what I can try next to get rid of the last millimeters?

Options: ReplyQuote


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