Date: Sun, 20 Jul 2003 15:29:02 -0600 From: "Andrew Lankford" <arlankfo@141.com> To: <current@freebsd.org> Subject: putting /dev/lpt in polling mode in boot time. Message-ID: <200307201529.AA2110062910@141.com>
next in thread | raw e-mail | index | archive | help
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: <Parallel port bus> on ppc0
lpt0: <Printer> 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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307201529.AA2110062910>
