From owner-freebsd-questions@freebsd.org Wed Sep 2 15:10:07 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C045A9C8FCA for ; Wed, 2 Sep 2015 15:10:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 887E775 for ; Wed, 2 Sep 2015 15:10:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 9683427671; Wed, 2 Sep 2015 17:09:59 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t82F9w7W002551; Wed, 2 Sep 2015 17:09:59 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 2 Sep 2015 17:09:58 +0200 From: Polytropon To: John Haraden Cc: freebsd-questions@freebsd.org Subject: Re: usb printers Message-Id: <20150902170958.7442e552.freebsd@edvax.de> In-Reply-To: References: <20150826001105.37b2d454.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2015 15:10:07 -0000 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: at usbus4 ulpt0: 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, ...