Re: [PARPORT] Another Newbie

From: Tom Perkins (tomp@trperkins.2y.net)
Date: Sat Dec 22 2001 - 02:44:45 EST

  • Next message: Dave Strauss: "Re: [PARPORT] Another Newbie"

    Hi,

    Your log isn't showing a problem that I can see. You might want to check
    the actual resources that windows is using though and compare that to
    the log. Taking a look at your BIOS setup wouldn't hurt either. It does
    sound an awful lot like a bad dma or irq value.

    Also take a look at /proc/interrupts. IRQ 7 after loading the module
    should show a couple of interrupts there caused by the module init code.

    The module did have to read data from the printer to pick up that
    Lexmark name so I'd say there's hope.

    I'd also print to a file in windows for the printer. Then in linux you
    can "cp test.prn /dev/lp0". This should insure that the printer is
    getting a data stream it likes.

    You might try the following on your options line, in sequence, until it
    feels better (you lose performance as you go): The first lets the module
      figure things out. The second turns off dma use but leaves the ecp
    fifo enabled, the 3rd turns off the ECP support, and the 4th leaves you
    with only polled i/o.

    options parport_pc irq=auto dma=auto

    options parport_pc io=0x378 irq=7 dma=none

    options parport_pc io=0x378 irq=7 dma=nofifo

    options parport_pc io=0x378 irq=none dma=none

    Good luck.

    Regards,
    Tom

    C. J. Martoff wrote:

    > I'm taking up where parport/archive/current/4599 left off. Basically I
    > cannot get my parallel port printer to work under linux (kernel 2.4.4).
    > It just sits there, even when I cat .login > /dev/lp0 (as root). When I
    > do the latter, I have sometimes gotten messages (in /var/log/messages)
    > like:
    > Dec 21 21:02:33 linux kernel: lp0 off-line
    > but the latest time or two this messge has not occurred.
    >
    > Needless to say, the printer works in Windows. Parallel cable is plugged
    > directly PC to printer.
    >
    > I have studied printing HOW-TO and some books, no joy. Can anyone
    > please help?
    >
    > Following is all the info I can muster. Nothing looks odd to me
    > but what do I know. Also, NO messages about parport appear in
    > /var/log/messages at boot time; only when lpr command is issued.
    >
    > Many thinks for any pointers.
    > ===================
    > uname -a
    > Linux linux 2.4.4-4GB #1 Fri May 18 14:11:12 GMT 2001 i686 unknown
    > (distro is SuSE 7.2 on IBM Aptiva, AMD Athlon processor)
    >
    > ==================
    >>From /var/log/messages upon issuance of lpr command:
    >
    > Dec 21 22:04:32 linux PAM-unix2[503]: session started for user drift,
    > service xdm
    > Dec 21 22:05:18 linux su: (to root) drift on /dev/pts/0
    > Dec 21 22:05:18 linux PAM-unix2[607]: session started for user root,
    > service su
    > Dec 21 22:08:50 linux kernel: 0x378: FIFO is 16 bytes
    > Dec 21 22:08:50 linux kernel: 0x378: writeIntrThreshold is 8
    > Dec 21 22:08:50 linux kernel: 0x378: readIntrThreshold is 8
    > Dec 21 22:08:50 linux kernel: 0x378: PWord is 8 bits
    > Dec 21 22:08:50 linux kernel: 0x378: Interrupts are ISA-Pulses
    > Dec 21 22:08:50 linux kernel: 0x378: ECP port cfgA=0x10 cfgB=0x0b
    > Dec 21 22:08:50 linux kernel: 0x378: ECP settings irq=7 dma=3
    > Dec 21 22:08:50 linux kernel: parport0: PC-style at 0x378 (0x778), irq 7,
    > dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
    > Dec 21 22:08:50 linux kernel: parport0: cpp_daisy: aa5500ff(98)
    > Dec 21 22:08:50 linux kernel: parport0: assign_addrs: aa5500ff(98)
    > Dec 21 22:08:52 linux kernel: parport0: Printer, Lexmark Lexmark 3200
    > Dec 21 22:08:52 linux kernel: lp0: using parport0 (interrupt-driven).
    >
    > ===================
    > bash-2.05# tunelp /dev/lp0 -s -qon
    > /dev/lp0 status is 216, on-line
    > /dev/lp0 using IRQ 7
    >
    > =========================
    >>From /etc/modules.conf:
    >
    > alias parport_lowlevel parport_pc
    > # options parport_pc io=0x378 irq=none,none
    > # following line added CJM 20 Dec 01
    > options parport_pc io=0x378 irq=7
    > # following lines added CJM 20 Dec 01 CJM per Printing HOW-TO
    > alias /dev/printers lp
    > alias /dev/lp* lp
    >
    > ====================================
    > After issuing lpr command:
    >
    >
    > bash-2.05# lpc status
    > lp-ascii:
    > queuing is enabled
    > printing is enabled
    > no entries
    > no daemon present
    > lp:
    > queuing is enabled
    > printing is enabled
    > 1 entry in spool area
    > lp is ready and printing
    > lp-raw:
    > queuing is enabled
    > printing is enabled
    > no entries
    > no daemon present
    >
    > The "ready and printing" goes away after a few minutes
    >
    > =======================
    >>From proc:
    >
    > bash-2.05# pwd
    > /proc/sys/dev/parport/parport0
    > bash-2.05# ls
    > autoprobe autoprobe1 autoprobe3 devices irq spintime
    > autoprobe0 autoprobe2 base-addr dma modes
    >
    > bash-2.05# cat ./base-addr
    > 888 1912
    > bash-2.05# cat ./modes
    > PCSPP,TRISTATE,COMPAT,ECP,DMA
    > bash-2.05# cat ./irq
    > 7
    >

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Sat Dec 22 2001 - 02:48:21 EST