Date: Fri, 26 Feb 2010 15:05:40 -0800 (PST) From: Bill Tillman <btillman99@yahoo.com> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org Subject: Re: Printing via USB Port Message-ID: <487138.6770.qm@web36502.mail.mud.yahoo.com> In-Reply-To: <alpine.BSF.2.00.1002261520010.14367@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Fri, 2/26/10, Warren Block <wblock@wonkity.com> wrote: From: Warren Block <wblock@wonkity.com> Subject: Re: Printing via USB Port To: "Bill Tillman" <btillman99@yahoo.com> 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: <Brother HL-2040 series, class 0/0, rev 2.00/1.00, addr 3> on usbus0 ulpt0: using bi-directional mode BigDell# dmesg | grep ugen ugen0.1: <nVidia> at usbus0 ugen1.1: <nVidia> at usbus1 ugen0.2: <vendor 0x058f> at usbus0 ugen0.3: <Brother> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?487138.6770.qm>