From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 06:51:11 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 5A31216A4CE for ; Mon, 8 Mar 2004 06:51:11 -0800 (PST) Received: from popimap02.icare.priv (unknown [203.78.64.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E85843D1D for ; Mon, 8 Mar 2004 06:51:10 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi01.icare.priv ([10.11.12.46]) by popimap02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 8 Mar 2004 22:51:07 +0800 Received: from 203.88.164.6 ([203.88.164.6]) by smtpi01.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 8 Mar 2004 22:51:07 +0800 From: Stephen Liu To: Malcolm Kay , Kris Kennaway Date: Tue, 9 Mar 2004 12:29:14 +0800 User-Agent: KMail/1.5.4 References: <200403081945.16907.satimis@icare.com.hk> <200403082339.33613.satimis@icare.com.hk> <200403082215.29256.malcolm.kay@internode.on.net> In-Reply-To: <200403082215.29256.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200403091228.22894.satimis@icare.com.hk> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Mar 2004 14:51:07.0314 (UTC) FILETIME=[C99FE920:01C4051C] 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: Mon, 08 Mar 2004 14:51:11 -0000 - snip - > > I skipped following steps > > > > 1) > > # ./MAKEDEV port > > > > and > > 2) > > # lptcontrol -i -d /dev/lpt0 > > (to set interrupt-driven mode for lpt0) > > > > and > > 3) > > # lptcontrol -p -d /dev/lpt0 > > (to set polled-mode for lptN) > > > > > > Jumped to; > > # lptest > /dev/lpt0 > > only strange symbols printed and printing continued without stop until I > > removed the paper tray. Communication between printer and port seemed > > working > > It could be that your printer does not understand plain ascii text. What is > the make and model. > > The other possibility is that there is something wrong in the > communications path -- a dud or incorrectly wired cable. Hi Malcolm, FreeBSD 5.2 Printer HP Desktop 690c =================== Thanks for your response. I missed steps 2) and 3) mentioned above. I performed further test as follows; step-2 # lptcontrol -i -d /dev/lpt0 step-3 # lptcontrol -p -d /dev/lpt0 both without printout rebooted PC because having got printer turned on. The later could not be detected with 'dmesg' ** how can I detect the printer to avoid 'reboot' ?????? 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) B.R. satimis