From owner-freebsd-questions@FreeBSD.ORG Fri Feb 26 23:05:43 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60A7E106564A for ; Fri, 26 Feb 2010 23:05:43 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from web36502.mail.mud.yahoo.com (web36502.mail.mud.yahoo.com [209.191.85.2]) by mx1.freebsd.org (Postfix) with SMTP id 1151C8FC1C for ; Fri, 26 Feb 2010 23:05:42 +0000 (UTC) Received: (qmail 7380 invoked by uid 60001); 26 Feb 2010 23:05:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267225540; bh=uVBzdcIfNA3BbQrKQsfulteNgCBynfUqFAcam5up5SI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=NFNPkI4+deShUyIGjayp2OUOzs/2XYzHudyYtm116YfFbDRo5w8z6/+XPh2MWPrjIVeIS8G73ROI1ErJUp5zAlVKDLLvpb+vhXh9dat4eeZUmGgS2Cfo/grjTl+98zfST4Yas/Zu6eLLfsU7gJtiizsV7WS7qJdKXkwtxkj326s= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=6QbmrDCLrtKS3osIREwm+56dLBX3iZ8rMuzt/iRapE5KOv0U041VLFtGEc81xdSxGO7qhByj3u6Xg/kF6o47W/EevSXGdURfcAHy/cUgwf326YjBgEtmhjYyRDo4SeSrx3GlN+n9b/p+/i3lIEPBOsmwhFxrZtJwpLXksXtwpsY=; Message-ID: <487138.6770.qm@web36502.mail.mud.yahoo.com> X-YMail-OSG: QTzBe_MVM1kWcXBgNIuLf8RQ2d0dHIRxE1sBkgXYJVIKfdgomqOnlMwuxLycwwrlctmteKGPMiDXWi5APkzhzGgtWgtYTTfkEj_3Hyqa8Rf9Bqcwb_Z3kQRhdHF22PPiPzs3oE2qHMmCUXWcGCg7DVXL6gWYDjDv0NUAoWsaOl.53KPTKJ2V4qQReTUTbKJRh2bt6edP2aoTM3EseRr5whbmFAGsJtFPZJnziVB_Ufzge_4s68aAIHKmqcCabt1kDckWcQeUGUjaIYajRU0AMEaQqW5tc5hCIbmVZf8s9X4ehpzDOLrRMImv29T7LbySWPT9crsgbQ-- Received: from [98.242.237.166] by web36502.mail.mud.yahoo.com via HTTP; Fri, 26 Feb 2010 15:05:40 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Fri, 26 Feb 2010 15:05:40 -0800 (PST) From: Bill Tillman To: Warren Block In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Printing via USB Port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 23:05:43 -0000 --- On Fri, 2/26/10, Warren Block wrote: From: Warren Block Subject: Re: Printing via USB Port To: "Bill Tillman" Cc: freebsd-questions@freebsd.org Date: Friday, February 26, 2010, 4:25 PM On Fri, 26 Feb 2010, Bill Tillman wrote: > Okay, I have the setup like you show and at least now the jobs show up in= the queue, but nothing makes it to the printer. It's funny because I can c= hange the one line in /etc/printcap to point to lpt0 instead of ulpt0 and i= t works. I have both parallel and USB cables connected in this test setup, = but the server I want to move the printer back to only has USB. [Please don't top-post, it makes replying harder.] Some inexpensive printers don't auto-switch ports, so try disconnecting the= parallel cable when testing USB. > Something else that seems odd, when I rebooted and started lpd from the c= ommand line there are two instances of it showing up in the ps -ax output. = Shouldn't only one be running? If you have lpd_enable=3D"YES" in rc.conf, you don't need to start lpd from= the command line. There should still only be one running.=A0 Is the second one grep, maybe? > After reboot and restarting lpd, the job is in the queue but nothing is p= rinting when using the USB connection. Check the status: % lpc status lp And try restarting the printer: % lpc restart lp -Warren Block * Rapid City, South Dakota USA =A0 =A0 Warren, =A0 Thanks again for your valuable input. I have set up lpd printing on my old = FreeBSD server at least a dozen times and it became a simple routine to do = with apsfilter.=A0Let me see if I can place all my cards in one place and p= erhaps we can find the bug. =A0 /etc/printcap =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D lp:\ =A0=A0=A0=A0 :lp=3D/dev/lpt0:\ =A0=A0=A0=A0 :sh:\ =A0=A0=A0=A0 :mx#0:\ =A0=A0=A0=A0 :sd=3D/var/spool/lpd/laser:\ =A0=A0=A0=A0 :if=3D/usr/local/libexec/ps2pcl:\ =A0=A0=A0=A0 :lf=3D/var/log/lpd-errs: /usr/local/libexec/ps2pcl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/bin/sh =A0 /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=3Dljet4 -sOutputFile=3D- - =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =A0 I start lpd and there is only one instance of it running. But then when I d= id this command: =A0 lpr /tmp/ntpdate.ps =A0 This file in my /tmp directory is a postscript formatted file.=A0The job ge= ts locked up in the=A0queue, nothing prints=A0and then there are two instan= ces of lpd running. For now I am not running lpd from /etc/rc.conf.=20 =A0 ps -ax | grep lpd =A01241=A0 ??=A0 Is=A0=A0=A0=A0 0:00.00 lpd =A01246=A0 ??=A0 IE=A0=A0=A0=A0 0:00.00 lpd =A0 The USB side seems to be lost in it's own world. Again I tested the cable a= nd the printer on the Windows box and it=A0printed some very nice docs for = me. =A0 Here is some other output of dmesg that shows the printer is out there and = the system is seeing it. Why it will not print is beyond my understanding n= ow. =A0 BigDell# dmesg | grep ulpt ulpt0: on usbus0 ulpt0: using bi-directional mode BigDell# dmesg | grep ugen ugen0.1: at usbus0 ugen1.1: at usbus1 ugen0.2: at usbus0 ugen0.3: at usbus0 =A0 =A0 BigDell# ps -ax | grep lpd =A01241=A0 ??=A0 Is=A0=A0=A0=A0 0:00.00 lpd =A01246=A0 ??=A0 IE=A0=A0=A0=A0 0:00.00 lpd BigDell# killall lpd BigDell# ps -ax | grep lpd BigDell# lpd BigDell# ps -ax | grep lpd =A01311=A0 ??=A0 Ss=A0=A0=A0=A0 0:00.00 lpd BigDell# lpr /tmp/ntpdate.ps BigDell# lpq lp is ready and printing Rank=A0=A0 Owner=A0=A0=A0=A0=A0 Job=A0 Files=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Total Si= ze active root=A0=A0=A0=A0=A0=A0 14=A0=A0 /tmp/ntpdate.ps=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 22507 bytes BigDell# =0A=0A=0A