LPT interruptstorm
Daniel O'Connor
doconnor at gsoft.com.au
Mon Aug 2 21:29:07 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 2 Aug 2004 21:19, Ian FREISLICH wrote:
> suggested 'lptcontrol -e', but every time I've tried that (even
> with lpd stopped) I get 'lptcontrol: open: Device busy'. I'm not
> sure what keeps the printer port open other than lpd.
For some reason you can't open /dev/lpt* when something isn't driving the BUSY
line on the parallel port :(
Actually I just read the code some more :)
You could try
lptcontrol -d /dev/lpt0.ctl -X
lpt0.ctl has the bypass flag (0x80) set in the minor number which prevents
lptopen() from trying to talk to the hardware (see
/usr/src/sys/dev/ppbus/lpt.c:478)
I think lptcontrol could do with this diff (attached)
- --
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBDxSH5ZPcIHs/zowRAjYSAJ9Fqj/TdYJugQ7ynvOgr7i7zlnc/ACgqkNE
amxGtLQ7oVW8bo5sZWMfpHU=
=BUWq
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lpt-ctl.diff
Type: text/x-diff
Size: 1883 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040803/1fddab2d/lpt-ctl-0002.bin
More information about the freebsd-current
mailing list