Link to home
Start Free TrialLog in
Avatar of tarenx
tarenx

asked on

Printing problem: no device found.

I am trying to get my Epson 740 to work with Ghostscrip using Red Hat 6.1. I have downloaded and installed a driver for the 740. Printtool gives me this error message: "could not write file "/dev/lp0": no such device." The same thing happens when I enter printer device as /dev/lp1 and /dev/lp2.

When I run the command ls > /dev/lpx (where x=0,1 & 2), I also get the "no such device" error message.

My Bios is set to No PNP OS, parallel port is set to 0378 with irq7. Printer and cable are OK as far as I can tell. Any suggestions?
Avatar of tq3407
tq3407

There might be a irq conflict.  Why did you disable the PnP OS setting in BIOS?  Is the printer on the lpt port thats on the computer or is it on an expansion card?
Avatar of tarenx

ASKER

The PNP OS setting in the BIOS is disabled by default, although you have given me the idea to try booting Linux with PNP enabled. The parallel port in question is on the computer (not on an expansion card.) What could you recommend for troubleshooting and resolving a irq conflict? Thanks in advance.
Add the folowing line to /etc/conf.modules

alias parport_lowlevel parport_pc
Avatar of tarenx

ASKER

Sorry, your suggestion did not work. I eventually did get Linux to recognize my parallel port as dev/lp0. Here is how I did it.

Current versions of the Linux kernel have adopted the parport device which enables the OS to drive external devices such as Zip drives, etc. through the parallel port. Parport also assigns parallel ports to device numbers dynamically. Even if you have only one parallel port the following procedure should work.

1)  From xterm(as root), issue  # insmod parport.o
2)  If you are using Red Hat 6.x, bring up the GUI Kernel Configurator, and add a type plip module w/ this argument:  io=0x3bc,0x378,0x278_irq=none,7,auto (if you are using another distribution, try  #insmod parport_pc.o io=0x3bc,0x378,0x278 irq=none,7,auto) Then, restart the kerneld.
3)  Issue  # insmod -o plip lp parport=0,2
 
Sources:       -  The Linux Printing HOWTO by Grant Taylor
            -  www.cyberelk.demon.co.uk/parport.html
            -  www.cyberelk.demon.co.uk/parport/parport.txt
            
Avatar of tarenx

ASKER

Since this form will not allow me to withdraw my question, I will offer 100 points to the first person who posts something I consider useful on the general topic of printing from Linux.
ASKER CERTIFIED SOLUTION
Avatar of Resonance
Resonance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial