Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2015 17:09:58 +0200
From:      Polytropon <freebsd@edvax.de>
To:        John Haraden <john.haraden@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: usb printers
Message-ID:  <20150902170958.7442e552.freebsd@edvax.de>
In-Reply-To: <E09B3E38-51F8-47A0-BD25-075B91213172@yahoo.com>
References:  <BBCD7F91-1F57-45DB-9513-773C540322E1@yahoo.com> <20150826001105.37b2d454.freebsd@edvax.de> <E09B3E38-51F8-47A0-BD25-075B91213172@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Re-including list, hope that's okay.

On Tue, 1 Sep 2015 17:21:15 -0700, John Haraden wrote:
> ulpt0 and unlpt0 fail to appear after installing ulpt_load
> in /boot/loader.conf.  With and without the printer connected,
> several generic isn't ports urgenx.y appear.

So do I understand this correctly: When you plug in the printer
while the system is running, only a ugen device file appears,
or more than one?

Can you post the relevant last lines from the "dmesg" output
after you've attached the printer?

Example - this happens when I plug in my Samsung CLX-2160 to
my FreeBSD home system:

% dmesg
[...]
ugen4.3: <Samsung Electronics Co., Ltd.> at usbus4
ulpt0: <Samsung Electronics Co., Ltd. CLX-216x Series,
	class 0/0, rev 2.00/1.00, addr 3> on usbus4
ulpt0: using bi-directional mode

You should see something similar.



> I have prepared a postscript file text, ps beginning with %!PS.
> For each generic port,  I execute
> cat text.ps  >  /dev/genx.y
> Nothing prints.  Any suggestions?

Good approach, but... what if the printer does not understand
Postscript? Check the printer's specification to see if it does.
For example, the Samsung printer mentioned above does _not_ speak
PS. I have to postprocess the PS into "Splix" format to be able
to send it to the printer directly. Maybe something similar is
needed in your case? What "printer languages" does your printer
actually understand?

Here's an example of what I have to do:

% foo2qpdl-wrapper -p 2 -c -r 1200x600 -z 0 inputfile.ps > /dev/ulpt0

Of course, using CUPS could make things easier, but because I
use this printer only few times a month, I don't bother messing
around with CUPS to get it working. :-)



On Tue, 1 Sep 2015 17:24:45 -0700, John Haraden wrote:
> Made a mistake.  Executed 
> cat text.ps >  /dev/ugenx.y

Yes, that is correct. But always check that your PS file works.
Use "gv text.ps", for example.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150902170958.7442e552.freebsd>