From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 07:47:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD32E16A4CE for ; Tue, 9 Mar 2004 07:47:17 -0800 (PST) Received: from popimap02.icare.priv (unknown [203.78.64.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1B043D4C for ; Tue, 9 Mar 2004 07:47:16 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi02.icare.priv ([10.11.12.45]) by popimap02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Tue, 9 Mar 2004 23:46:26 +0800 Received: from 203.88.164.146 ([203.88.164.146]) by smtpi02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Tue, 9 Mar 2004 23:46:25 +0800 From: Stephen Liu To: Malcolm Kay , Kris Kennaway Date: Wed, 10 Mar 2004 08:28:02 +0800 User-Agent: KMail/1.5.4 References: <200403081945.16907.satimis@icare.com.hk> <200403091228.22894.satimis@icare.com.hk> <200403090249.58795.malcolm.kay@internode.on.net> In-Reply-To: <200403090249.58795.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200403100826.59426.satimis@icare.com.hk> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Mar 2004 15:46:26.0140 (UTC) FILETIME=[AE3651C0:01C405ED] cc: questions@freebsd.org Subject: Re: MAKEDEV question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 15:47:17 -0000 - snip - > > > > After reboot > > # dmesg > > Probing for PnP devices on ppbus0: > > ppbus0: MLC,PCL,PML > > plip0: on ppbus0 > > lpt0: on ppbus0 > > lpt0: Interrupt-driven port > > ppi0: on ppbus0 > > > > # ls -l /dev/lpt0 > > crw------- 1 root wheel 16, 0 Mar 9 01:17 /dev/lpt0 > > > > Repeated step-2 and step-3 above > > (also no printout) > > > > # lptest > /dev/lpt0 > > > > One line printed on 1st paper as follow; > > !"#$%&'()* > > +,-./0123456789:;<=>?@ABCDEFGHIJK.....XYZ......abcdefghijk.......xyz.... > > > > It seemed OK but feed-in paper continued with 'no_paper' light on (I put > > only 1 paper in the tray) Hi Malcolm, > If you just run the utility lptest without redirecting the output you will > see on the screen what you should expect to print. Yes. There are many lines there similar to printer self-testing > Do you get one printed line or a full page? Only one line then the page eject. > One line implies that 2nd and subsequent lines have disappeared of to the > right as BSD does not supply a CR, only LF, at end of line. You may find a > you can set up your printer to interpret LF as CR-LF. Where can I config/add 'CR-LF' > As for running out of paper -- lptest produces 200 lines -- and even if > these have disappeared off the right then they need about 3 pages of A4. No it continued to run until I removed all papers from the printer tray. > I gather you have not yet got as far as setting up /etc/printcap or > starting the print daemon lpd. /etc/printcap HPDJ690C|cdj670;r=300x300;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/HPDJ690C:\ :lf=/var/spool/lpd/HPDJ690C/log:\ :af=/var/spool/lpd/HPDJ690C/acct:\ :mx#0:\ :sh: Following line added to /etc/rc.conf lpd_enable="YES" > Once you do this you can insert setup codes via an input filter ahead of > the data to be printed and most printers including many HP models have a > code which switches the interpretation of the LF character. Kindly advise how to make it. TIA B.R. satimis