[PARPORT] Another Newbie

From: C. J. Martoff (cmartoff@nimbus.ocis.temple.edu)
Date: Fri Dec 21 2001 - 23:03:14 EST

  • Next message: Tom Perkins: "Re: [PARPORT] Another Newbie"

    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
                    
    ============================================================================
    C. J. Martoff Phone: (215) 204-3180
    Professor of Physics, Temple University FAX: (215) 204-5652
    Barton Hall, Temple University
    1900 N. 13-th St.
    Philadelphia, PA 19122-6082

    Web Site: http://nimbus.temple.edu/~cmartoff
    email: cmartoff@nimbus.ocis.temple.edu

    ============================================================================

    -- 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 : Fri Dec 21 2001 - 23:05:37 EST