Setting Up an Additional Parallel PortDeutsch Cesky
Support knowledgebase (jsmeix_print-device-parallel)Applies to
SuSE Linux: Versions 6.2 to 7.3
You want to configure your additional parallel port.
From SuSE Linux 8.0 on, check the "Reference" manual.
You must be using kernel 2.2.xx or better.
By default, only the first parallel port
alias parport_lowlevel parport_pc options parport_pc io=0x378 irq=none,none # If you have multiple parallel ports, specify them this way: # options parport_pc io=0x378,0x278 irq=none,noneio=0x... is followed by the I/O address of the parallel port; irq=... usually states "none" for polling or the interrupt of the parallel port. Polling is usually better than interrupt operation and does not affect the speed (except for very old machines).
In order for the first parallel port to work with these settings, the following default values must be set for the parallel port in your BIOS:
I/O address 378 (hexadecimal)
Interrupt 7 (for polling it makes no difference)
Normal or SPP mode (other modes may not work)
DMA off (should be inactive in the normal mode)
Testing the first parallel port:
Assuming you have a second parallel port that can be addressed
with the standard I/O address 278 (hexadecimal; can be set e.g.
with jumpers on ISA interface cards), the following entry in
alias parport_lowlevel parport_pc # options parport_pc io=0x378 irq=none,none # If you have multiple parallel ports, specify them this way: options parport_pc io=0x378,0x278 irq=none,noneFollowing a reboot, the second parallel port should be available.
Testing the second parallel port:
If a normal printer (not a GDI printer) is connected to
entered as the user root should produce a page with the word "Hello".
More Difficult Cases:
It will be more complicated if the I/O address of the additional parallel
port is not known beforehand.
I) ISA PnP cards:
Sometimes fixed values for the I/O address, interrupt, and mode can be
set on cards of this kind:
If this is not the case, the values for the I/O address, interrupt, and mode
will be written to the ISA PnP card when Linux is started.
If you already use ISA PnP cards and install an additional ISA PnP card, the BIOS or the command
may cause the values for the I/O addresses and interrupts of the previous ISA PnP cards to be assigned differently. If this happens, the previous ISA PnP cards will no longer work and all ISA PnP cards must be reconfigured.
This problem does usually not occur with PCI cards. Though a newly added PCI card may cause the values for the I/O addresses and interrupts of the previous cards to be assigned differently by the BIOS, the PCI card drivers usually retrieve the current values from the BIOS at start-up. An exception to this rule is e.g. the driver for the parallel ports - the kernel module parport_pc - which requires an explicit indication of the values for the I/O addresses and interrupts of the parallel ports.
II) PCI cards:
The I/O addresses and interrupts which can be used for a PCI card can be
displayed with the following command (as root):
Excerpt from the output of
... 00:0a.0 Parallel controller: ... ... Flags: stepping, medium devsel, IRQ 10 I/O ports at b400 I/O ports at b000 I/O ports at a800 I/O ports at a400 ...Two I/O addresses in intervals of 400 (hexadecimal) jointly belong to one parallel port.
The following entry in
alias parport_lowlevel parport_pc # options parport_pc io=0x378 irq=none,none # If you have multiple parallel ports, specify them this way: options parport_pc io=0x378,0xb400,0xa800 irq=none,none,noneTesting all parallel ports:
Provided normal printers are connected to the parallel ports, entry of
as root should produce a page with the word "Hello", respectively.
If the test of the additional parallel ports is successful, additional printers or
other parallel devices can be set up.
Keywords: PRINTING, PRINTER, PARALLEL, PORT, LP1, LP2, PARPORT
Categories: Frequently asked Questions , Documentation , Printer
SDB-jsmeix_print-device-parallel, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 02. Apr 2002
SuSE Linux AG - Last generated: 04. Apr 2002 by ip (sdb_gen 1.40.0)