I'm having the same sort of problem. /dev/lp0 doesn't exist. I've
tried compiling parallel port support into the kernel and using
modules.
I've edited my conf.modules with the following lines:
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7
When I run dmesg | grep par I get:
parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
parport0: no IEEE-1284 device present.
When I try cat >> /dev/lp0, it returns a no such device error.
If I boot to DOS, I can use dir >lpt1 and a directory will print so it
looks like the port is working. What am I missing in Linux?
I'm running SUSE 6.2 with kernel 2.2.12 (2.2.10 had same problem) on
an Abit BP6 motherboard.
When I type in lpq it says:
Warning: queue is not active (no server present).
printing disabled
When I type in lpc start all, I get:
lpc: connect: Connection refused
couldn't start daemon
Any ideas out there? It look like Linux isn't find lpt1 on boot up
and thus not mapping /dev/lp0. Printing worked for me about a month
ago and then all of a sudden stopped. I've been struggling with this
problem for a long time and haven't been able to get anywhere. Any
gurus out there have an answer? Please send me e-mail or post here.
Thanks,
Alex
>> I have installed RedHat 6.0 on a system. Upgraded to kernel 2.2.12...
>> I am using an Abit BP6 motherboard (ATX built in parallel port).
>> The problem I am having is that the printer port is not being detected.
>> I have made sure the interface isn't disabled in the bios, and read
>> through the printer how-to's, and don't see anything that could be
>> causing my problem.
>> When I run the print RedHat Print manager nothing is detected on lp0,
>> lp1, or lp2 (when you add a local printer it tries to detect the port).
>> After doing a little reading it seems that the actual port is lp0, etc..
>> is assigned based on the address range being used. I haven't tried
>> forcing the printer port to a specific address in the Bios. Other than
>> that I can't seem to find any hints.
>I don't know much about Redhat's print manager, but I would suspect
>that something strange is happening with it.
>Was the parallel port detected during the boot sequence. Maybe try
>dmesg | grep par and see if a port was detected. Mine returns
>something like this
>gateway:~> dmesg | grep par
>parport0: PC-style at 0x378 [SPP,PS2]
>lp0: using parport0 (polling).
>gateway:~>
>You might then want to check to see if the parallel ports are
>writable by you. Try ls -l /dev/lp* and see what happens.
>Mine does this.
>gateway:~> ls -l /dev/lp*
>crw-rw---- 1 root daemon 6, 0 Apr 27 1995 /dev/lp0
>crw-rw---- 1 root daemon 6, 1 Apr 27 1995 /dev/lp1
>crw-rw---- 1 root daemon 6, 2 Apr 27 1995 /dev/lp2
>gateway:~>
>Then you might want to see if you can write to the printer (I assume that
>is the device connected to the printer).
>cat >> /dev/lp0
>hello there
>^l
>^d
>If that works, then you may have to figuire up how to set up the printer.
>You may just have a problem with a cable that is not bi-directional or
>something like that.