From owner-freebsd-questions@FreeBSD.ORG Sat Mar 5 17:10:07 2005 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 1F74C16A4CE for ; Sat, 5 Mar 2005 17:10:07 +0000 (GMT) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78B0143D39 for ; Sat, 5 Mar 2005 17:10:06 +0000 (GMT) (envelope-from v.demartino2@virgilio.it) Received: from wireless (80.117.237.165) by vsmtp2.tin.it (7.0.027) id 4228ADF000050959 for freebsd-questions@freebsd.org; Sat, 5 Mar 2005 18:10:03 +0100 From: Vittorio To: FreeBSD Date: Sat, 5 Mar 2005 18:09:43 +0000 User-Agent: KMail/1.7.2 References: <420008E50005AC67@ims3e.cp.tin.it> <20050305151355.GA27619@slackbox.xs4all.nl> In-Reply-To: <20050305151355.GA27619@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503051809.44106.v.demartino2@virgilio.it> Subject: Re: Cannot print 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: Sat, 05 Mar 2005 17:10:07 -0000 Alle 15:13, sabato 5 marzo 2005, Roland Smith ha scritto: > > Is your printer connected via the parallel port? If so, and there is a > line reading "Interrupt storm detected on "irq7: lpt0"; throttling > interrupt source", add the following to /boot/device.hints: > > # For the parallel port. Set ECP mode, disable interrupt. See ppc(4). > # ECP mode is bit 3 (0x08), disabling IRQ is bit 5 (0x20). > # By disabling the IRQ I put the port "polling mode". > hint.ppc.0.flags="0x28" > > > "/usr/local/etc/apsfilter/basedir/bin/apsfilter: cannot open > > /var/spool/lpd/lp/lock: Permission denied" > > This means apsfilter does not have access rights to that file. > > > and doesn't print anything. > I did as you said but, first of all, in dmesg I cannot find any line reading "Interrupt storm detected on "irq7: lpt0"; throttling interrupt source" but only % dmesg |grep lpt0 lpt0: on ppbus0 lpt0: Interrupt-driven port lpt0: on ppbus0 lpt0: Polled port Now, I have the following in % cat /boot/device.hints |grep ppc hint.ppc.0.at="isa" hint.ppc.0.irq="7" hint.ppc.0.flags="0x28" Please help. Ciao Vittorio By the way, in /etc/printcap # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL lp|st640pl.upp;r=360x360;q=medium;c=full;p=a4;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this