Bug 26562

Summary: [lpt] [patch] /dev/lpt0 returns EBUSY when attempting to open "Ready Printer"
Product: Base System Reporter: ve3wwg <ve3wwg>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jpaetzel
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ve3wwg 2001-04-14 04:50:00 UTC
The Canon BJC-4300 does not provide the LPS_SEL (Selected) signal (or
at least, my printer is not _now_ providing this signal). Consequently,
it becomes impossible to open the printer for printing under FreeBSD
(printing DOES work under Windows and Linux for this printer, on this
same machine, however).

Fix: Hack /usr/src/sys/dev/ppbus/lpt.c to ignore LPS_SEL. The following is
context diff of the working solution (email me for an unmangled copy
of this patch file, if you like):

# cat patches.lpt
How-To-Repeat: Nothing special. I tried all the BIOS and interrupt combinations, and
new kernels configured to match. None of these changes mitigated the
problem.

I would like to suggest a kernel "option" to configure the ability to
ignore the SELECT signal coming back from the printer.
Comment 1 mikeg 2001-04-16 04:53:17 UTC
This solves the problem on one of my machines as well.  If someone 
wants to clean this up and commit this I would really appreciate it.

/~mikeg