NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lpd/samba printing with usb



On Fri 17 Jan 2014 at 20:16:51 +0100, pierre-philipp braun wrote:
>My point being, is it truly mandatory
> for the printer to be postscript compatible to be able to do that (lptest >
> /dev/ulp{t,n}0) or LPD/samba with a raw printacap entry?

I don't think so, at least for plain text test printing. Most printers
that require funny drivers can print plain text using their own built-in
font, even if it's ugly.

I need to use Splix for my printer (a Samsung ML-1640) and the usb
connection is a bit funny there too. Sometines I need to unplug and
replug the printer between two print jobs, or it won't print the second
one.

(I had to make a small patch to it - some compression parameter wasn't
passed through from a configuration file and a code patch seemed simpler
than debugging where it got lost. Here it is; maybe it helps you:

I put this file in /usr/pkgsrc/localpatches/wip/splix/patch-za and it
automatically gets used when building via pkgsrc if you also have
LOCALPATCHES = /usr/pkgsrc/localpatches
in /etc/mk.conf.

--- src/document.cpp.dist       2010-02-05 20:59:41.000000000 +0100
+++ src/document.cpp    2010-02-05 21:00:10.000000000 +0100
@@ -108,7 +108,11 @@
     page->setHeight(pageHeight);
     page->setColorsNr(colors);
     page->setPageNr(_currentPage);
-    page->setCompression(header.cupsCompression);
+    DEBUGMSG("header.cupsCompression=%d", (int)header.cupsCompression);
+    if (header.cupsCompression != 0)
+        page->setCompression(header.cupsCompression);
+    else
+        page->setCompression(17);
     page->setCopiesNr(header.NumCopies);
 
     // Calculate clippings and margins

> Pierre-Philipp
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpmi18sqxhVe.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index