Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Parallelport support broken?

  1. #1
    Join Date
    Dec 2009
    Posts
    48

    Default Parallelport support broken?

    Hi,
    I try to connect a HP Laserjet 6P with Centronics connection to an Acer Veriton M4640G on openSUSE 13.2 32 bit. The parallel port is provided by a
    "
    03:00.0 Communication controller: MosChip Semiconductor Technology Ltd. PCI 9815 Multi-I/O Controller (rev 01)
    Subsystem: LSI Logic / Symbios Logic 2P0S (2 port parallel adaptor)
    Flags: medium devsel, IRQ 18
    I/O ports at d050 [size=8]
    I/O ports at d040 [size=8]
    I/O ports at d030 [size=8]
    I/O ports at d020 [size=8]
    I/O ports at d010 [size=8]
    I/O ports at d000 [size=16]
    Kernel modules: parport_pc
    "
    PCI card.
    Yast correctly finds and initializes the printer, printing of some characters works, longer texts or graphics print garbage.
    Exactly the same happens with a HP Laserjet 4MP.

    Also the same happens with the same printers on a second computer with Leap 42.1 and two other different PCI-Express parport cards with different chips.
    The Windows7 64 bit installation on this second computer worked with the same printers and both PCI-Express cards IIRC.

    A third computer with the older openSUSE 13.1 32 bit worked OK with the "LSI Logic / Symbios Logic 2P0S" card, other cards not tested, sadly that computer died. :-(

    Is it possible that newer kernels have problems with the parallel port, timing/handshake maybe?

    Any help very appreciated, thanks,

    Martin

  2. #2
    Join Date
    Dec 2009
    Posts
    48

    Default Re: Parallelport support broken?

    Printing by motherboard LPT1 header works.

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Parallelport support broken?

    Quote Originally Posted by mse1 View Post
    Printing by motherboard LPT1 header works.
    Okay, so an apparent regression affecting the USB to parallel port adapter? There are a handful of bu reports around describing similar problems for some users. For example, this might be relevant/helpful...
    https://bugs.launchpad.net/ubuntu/+s...19/comments/19

    Which modules are loaded along with 'lp'?
    Code:
    lsmod|grep lp

  4. #4
    Join Date
    Dec 2009
    Posts
    48

    Default Re: Parallelport support broken?

    Sorry for the late reply, I did not see your answer, I got no notification.
    Quote Originally Posted by deano_ferrari View Post
    Okay, so an apparent regression affecting the USB to parallel port adapter? There are a handful of bu reports around describing similar problems for some users. For example, this might be relevant/helpful...
    https://bugs.launchpad.net/ubuntu/+s...19/comments/19
    It is no USB adapter but a PCI card.
    lspci shows:
    "
    03:00.0 Communication controller: MosChip Semiconductor Technology Ltd. PCI 9815 Multi-I/O Controller (rev 01)
    Subsystem: LSI Logic / Symbios Logic 2P0S (2 port parallel adaptor)
    Flags: medium devsel, IRQ 18
    I/O ports at d050 [size=8]
    I/O ports at d040 [size=8]
    I/O ports at d030 [size=8]
    I/O ports at d020 [size=8]
    I/O ports at d010 [size=8]
    I/O ports at d000 [size=16]
    Kernel driver in use: parport_pc
    Kernel modules: parport_pc
    "
    The same problem exists with two different PCI-Express cards on another computer with Leap 42.1.
    Which modules are loaded along with 'lp'?
    Code:
    lsmod|grep lp
    Code:
    lp                     13299  2
    drm_kms_helper         59103  1 i915
    drm                   280073  2 i915,drm_kms_helper
    parport                40795  3 lp,ppdev,parport_pc

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Parallelport support broken?

    It might be useful to examine the parport_pc parameters
    Code:
    dmesg|grep parport
    I dug out an old thread
    https://forums.opensuse.org/showthre...l-port-problem
    where the parallel port configuration was impacting on the print jobs. Some experimentation with irq or polling, hadrware modes (PCSPP,EPP,ECP...etc) might be required.

    A useful reference
    https://www.kernel.org/doc/html/late...e/parport.html

    An old Novell printing document

    https://www.novell.com/documentation...ec:d.interface

    Under io, enter the IO address of the parallel port. Under irq, keep the default none for polling mode. Otherwise, provide the IRQ number for the parallel port. Polling mode is less problematic than interrupt mode as it helps to avoid interrupt conflicts. However, there are combinations of motherboards and printers that only function well if this is set to interrupt mode. Apart from that, interrupt mode ensures a continuous data flow to the printer even when the system is under very high load.

  6. #6
    Join Date
    Dec 2009
    Posts
    48

    Default Re: Parallelport support broken?

    Quote Originally Posted by deano_ferrari View Post
    It might be useful to examine the parport_pc parameters
    Code:
    dmesg|grep parport
    Code:
    [   10.574929] parport_pc 00:03: reported by Plug and Play ACPI
    [   10.575017] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
    [   10.661410] parport1: PC-style at 0xd050 (0xd040), irq 18, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
    [   10.670099] parport1: Printer, Hewlett-Packard HP LaserJet 6P
    [   10.670179] parport2: PC-style at 0xd030 (0xd020), irq 18, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
    Seeing that the working parport0 uses PCSPP i added "options parport_pc dma=none init_mode=PCSPP" to /etc/modprobe.d/99-local.conf, "dmesg|grep parport" lists
    Code:
    [   17.850080] parport_pc.c: Specified parameter parport_init_mode=PCSPP
    [   17.892104] parport_pc 00:03: reported by Plug and Play ACPI
    [   17.892207] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
    [   17.979484] parport1: PC-style at 0xd050 (0xd040), irq 18, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
    [   17.987679] parport1: Printer, Hewlett-Packard HP LaserJet 6P
    [   17.988569] parport2: PC-style at 0xd030 (0xd020), irq 18, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
    [  179.045408] lp0: using parport0 (interrupt-driven).
    [  179.045682] lp1: using parport1 (interrupt-driven).
    [  179.045937] lp2: using parport2 (interrupt-driven).
    after reboot but there is still garbage printed. It seems there is a difference however, with init_mode=PCSPP start of printing is delayed some seconds.

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Parallelport support broken?

    What happens if you configure with 'irq=none'?

  8. #8
    Join Date
    Dec 2009
    Posts
    48

    Default Re: Parallelport support broken?

    Quote Originally Posted by deano_ferrari View Post
    What happens if you configure with 'irq=none'?
    After adding "options parport_pc io=0xd050 dma=none irq=none" to /etc/modprobe.d/99-local.conf
    "dmesg|grep parport" lists
    Code:
    [    5.729568] parport0: PC-style at 0xd050 [PCSPP,TRISTATE,EPP]
    [    5.739976] parport0: Printer, Hewlett-Packard HP LaserJet 6P
    Printing to the printer queue which was the working motherboard parallel port before works. The motherboard port and the second port of the PCI card are not available anymore.

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Parallelport support broken?

    Quote Originally Posted by mse1 View Post
    After adding "options parport_pc io=0xd050 dma=none irq=none" to /etc/modprobe.d/99-local.conf
    "dmesg|grep parport" lists
    Code:
    [    5.729568] parport0: PC-style at 0xd050 [PCSPP,TRISTATE,EPP]
    [    5.739976] parport0: Printer, Hewlett-Packard HP LaserJet 6P
    Printing to the printer queue which was the working motherboard parallel port before works. The motherboard port and the second port of the PCI card are not available anymore.
    So, printing is now working using this option?

  10. #10
    Join Date
    Dec 2009
    Posts
    48

    Default Re: Parallelport support broken?

    Quote Originally Posted by deano_ferrari View Post
    So, printing is now working using this option?
    Yes, but with a single port only.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •