Re: [PARPORT] how to stop imm probing printer port

From: Norbert Preining (preining@logic.at)
Date: Wed May 24 2000 - 08:09:29 EDT

  • Next message: Stephen Inkpen: "[PARPORT] HP 5100C parallel scanner"

    On Wed, 24 May 2000, Tim Waugh wrote:
    > For your own use, you could just put something in imm_detect like
    > this:
    >
    > for (i = 0; pb; i++, pb = pb->next) {
    > int modes, ppb;
    >
    > if (pb->number == 1)
    > continue;
    > ...

    I will try this.

    > Because it's faster to use bidirectional mode: your hardware offers
    > assistance with ECP, but not with EPP (you can probably change this in
    > the CMOS).

    I will ask you at a later time concerning this.

    > Out of interest, does the HP LJ have any device ID information of its
    > own? Does parport report its name in the 'dmesg' output? I ask
    > because an IEEE 1284-compliant device should just ignore imm's
    > probing.

    Here a syslog excerpt of modprobe lp:
    May 24 14:02:29 mandala kernel: 0x378: FIFO is 16 bytes
    May 24 14:02:29 mandala kernel: 0x378: writeIntrThreshold is 7
    May 24 14:02:29 mandala kernel: 0x378: readIntrThreshold is 7
    May 24 14:02:29 mandala kernel: 0x378: PWord is 8 bits
    May 24 14:02:29 mandala kernel: 0x378: Interrupts are ISA-Pulses
    May 24 14:02:29 mandala kernel: 0x378: ECP port cfgA=0x10 cfgB=0x4b
    May 24 14:02:29 mandala kernel: 0x378: ECP settings irq=7 dma=3
    May 24 14:02:29 mandala kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,ECP,DMA]
    May 24 14:02:29 mandala kernel: parport0: Found 1 daisy-chained devices
    May 24 14:02:29 mandala kernel: parport0: No more nibble data (1 bytes)
    May 24 14:02:29 mandala kernel: parport0: device reported incorrect length field (61, should be 62)
    May 24 14:02:29 mandala kernel: parport0 (addr 0): SCSI adapter, IMG VP1
    May 24 14:02:29 mandala kernel: parport0: Found 1 daisy-chained devices
    May 24 14:02:29 mandala kernel: parport0: No more nibble data (1 bytes)
    May 24 14:02:29 mandala kernel: parport0: device reported incorrect length field (61, should be 62)
    May 24 14:02:29 mandala kernel: parport0 (addr 0): SCSI adapter, IMG VP1
    May 24 14:02:29 mandala kernel: parport1: PC-style at 0x278 [PCSPP]
    May 24 14:02:29 mandala kernel: parport1: cpp_daisy: aa5500ff(98)
    May 24 14:02:29 mandala kernel: parport1: assign_addrs: aa5500ff(98)
    May 24 14:02:29 mandala kernel: parport1: No more nibble data (0 bytes)
    May 24 14:02:29 mandala kernel: parport1: faking semi-colon
    May 24 14:02:29 mandala kernel: parport1: Printer, Hewlett-Packard HP LaserJet 1100
    May 24 14:02:29 mandala kernel: lp0: using parport1 (polling).

    Is the `device reported incorrect length field (61, should be 62)' somehow
    relevant?

    Does this answer your question concerning HP LaserJet 1100 dev ID?

    Best wishes
    Norbert

    -- 
    ciao
    norb
    

    +-------------------------------------------------------------------+ | Norbert Preining http://www.logic.at/people/preining | | University of Technology Vienna, Austria preining@logic.at | | DSA: 0x09C5B094 (RSA: 0xCF1FA165) mail subject: get [DSA|RSA]-key | +-------------------------------------------------------------------+

    -- 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 : Wed May 24 2000 - 08:12:21 EDT