putting /dev/lpt in polling mode in boot time.

Andrew Lankford arlankfo at 141.com
Sun Jul 20 14:25:25 PDT 2003

Kernel: FreeBSD bogushost2 5.1-CURRENT FreeBSD 5.1-CURRENT
 #0: Sat Jul 19 23:38:13 EDT 2003    root at 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.irq="7"

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: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port

Is there something that I overlooked?


Andrew Lankford

PS Apart from some annoyances with ghostscript ps to pcl translation, nothing beats a vintage HP laser printer :) 


More information about the freebsd-current mailing list