[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[REPOST] Trouble setting up printer in Linux (Lexmark 2030)



YAPP(tm) : Yet Another Printer Problem. :)


I'm having a hard time getting a printer to work in Linux.

The printer is a Lexmark 2030 Color JetPrinter.

It is connected to the parallel port. When inserting the lp module,
the kernel says:

Nov 30 13:36:53 orion kernel: lp1 at 0x0378, (polling)

I've read the Printing-HOWTO, and I've tried printing directly
to port, but it doesn't work..

As a test, I turned the printer OFF and tried printing with lpr.
/var/log/messages then said:

Nov 30 13:38:44 orion kernel: lp1 out of paper

Which is IMO really interesting. When the printer is ON, and
some paper is loaded - nothing happens, but when you turn it OFF
and try to print, it somehow figures out that it hasn't got any
paper. Clever. :)

In Messy$oft's CrapDoze '95, it _says_ that it is using IRQ 5,
although I would not take this very serious. This is because my sound
card was previously using IRQ 5 in windows, but Linux saw it using IRQ 7.
And when I switched to "proper" settings in windows, Linux would
rather use IRQ 5 (apparently it doesn't want to touch an interrupt
which have had Win95's greasy fingers all over it). ;-)

Anyway, the Port setting of the printer in WinDos is 0378h. And
since Linux doesn't complain about not finding anything at this
address, it would indicate that the setting is correct.
(though it doesn't seem like it is correct).

However, I've tried using both irq's 5 and 7, when forcing the
interrupt to one of these, the kernel says:

Nov 30 13:46:29 orion kernel: lp0 at 0x0378, (irq = 7)
Nov 30 14:11:31 orion kernel: lp0 at 0x0378, (irq = 5)

Well, as you see, it's a different device this time.

A bit later some new messages appear:

Nov 30 14:18:30 orion kernel: lp1 at 0x0378, (polling)
Nov 30 14:18:30 orion kernel: lp1 out of paper
Nov 30 14:18:40 orion kernel: lp1 off-line

This is lp1 not lp0, which was the device being used when 
I forced irq=5.
The two last messages are correct tho - the printer was switched
off.

Typing `cat /proc/interrupts' does not reveal anything
(i.e the printer's IRQ is *never* listed in the output, and
the module IS loaded - I've checked with lsmod). 

I've used printtool to set up / autodetect the printer at lp1,
configured it as a text-only printer, and tried printing
directly to port, but to no avail.
This has also been done for lp0 with irq's 5 or 7.

On the console I saw several messages saying:
/var/spool/lpd/lp/filter: /usr/lib/rhs/printtool/rewindstdin: No such file or directory

So, I changed /var/spool/lpd/lp/filter to reflect where rewindstdin is
located, which, on my system is in /usr/lib/rhs/rhs-printfilters/rewindstdin

After that, I got (on the console) :

stty: standard input: Not a typewriter
stdin: is not a tty

I might also note that the computer is a crappy 
Compaq Presario 166Mhz, w/all things "built-in" - 
i.e Compaq's braindamaged motherboard / RAM
(and possibly parallel / I/O ports as well).

As you might have already guessed, it's not mine
(thank God!) ;)

Should I perhaps be looking at the parport device? This could
possibly fix things.

Any suggestions?

-- 
///////////////////////////////////////////////////////////////////\
| Martin Andersen -<x>- Inst. of Informatics, University of Bergen |
| Hamre           -<x>- s747 ii uib no                             |
| 5240 Valestrand -<x>- PGP key available                          |
| NORWAY          -<x>- #include <disclaimer.h>                    |
|=----------------------------------------------------------------=|
|      $ cat witty.statement                                       |
|      cat: witty.statement: No such file or directory             |
|      Segmentation fault (core dumped)                            |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\|



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]