From owner-freebsd-current@FreeBSD.ORG Sun Jul 20 14:25:25 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2292337B401 for ; Sun, 20 Jul 2003 14:25:25 -0700 (PDT) Received: from 141.com (mail.141.com [65.168.139.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 511E743F85 for ; Sun, 20 Jul 2003 14:25:22 -0700 (PDT) (envelope-from arlankfo@141.com) Date: Sun, 20 Jul 2003 15:29:02 -0600 Message-Id: <200307201529.AA2110062910@141.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Andrew Lankford" To: X-Mailer: X-Note: This E-mail was scanned for spam. Subject: putting /dev/lpt in polling mode in boot time. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: arlankfo@141.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 21:25:25 -0000 Kernel: FreeBSD bogushost2 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sat Jul 19 23:38:13 EDT 2003 root@bogushost2:/usr/obj/usr/src/sys/ARL5KERNEL i386 Since I kept on getting "stray irq 7"'s with my laserjet 4, I decided to set my parallel port to use polled mode at boottime. While I guess I could add a special script in /usr/local/etc/rc.d to run 'lptcontrol -p', this sucks because it doesn't exit if the printer isn't on, even though it works otherwise. So I added to /boot/device.hints the following three lines: hint.ppc.0.at="isa" # hint.ppc.0.irq="7" hint.ppc.0.flags="0x20" According to the manual setting bit 4 of the flag to one should set it to polling mode, but it doesn't work. I know for a fact that the loader is reading the hints file, too. Here's dmesg: ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port Is there something that I overlooked? Thanks, Andrew Lankford PS Apart from some annoyances with ghostscript ps to pcl translation, nothing beats a vintage HP laser printer :)