LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2004, 12:59 PM   #1
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
Slow parallel port printer


Hello,

I have a Lexmark Optra E+ connected to the parallel port of my mainboard. It works very well, printing results are great, the only problem is, that it takes very long to process a page (about 4-6 minutes). I googled a bit and found out, that I could speed up printing, if I could make the parport use IRQ (whatever that might be).
Now I read the parport.txt from the kernel documentation and there it says, IRQs are not used by default, because it might cause problems. I did a:
# cat /proc/interrupts
CPU0 CPU1
0: 10298056 0 IO-APIC-edge timer
1: 15146 0 IO-APIC-edge i8042
8: 1 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-level acpi
12: 493198 0 IO-APIC-edge i8042
14: 44008 1 IO-APIC-edge ide0
15: 24 0 IO-APIC-edge ide1
16: 633508 0 IO-APIC-level nvidia
17: 178886 0 IO-APIC-level Intel ICH5
18: 14 0 IO-APIC-level aic7xxx
20: 377644 0 IO-APIC-level eth0
NMI: 0 0
LOC: 10254700 10254802
ERR: 0
MIS: 0

And it shows, that I have plenty of unused IRQ's. I now tryed to load the parport_pc modules with custom IRQ sinsmod /lib/modules/2.6.8.1/kernel/drivers/parport/parport_pc.ko io=0x3bc irq=7
ettings:
This works and will show the parport using IRQ 7, but then the printer will not print. I guess the problem is the wrong io parameter, but I have no idea which one to use. I got this form the kernel documentation, but I do not understand what it might mean. Can anyone tell me which value to choose, or what this value is and how to find the "right" one?

Thank you for your time,

cccc828
 
Old 08-20-2004, 04:01 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
You can't just pick an IRQ at random to use with your printer. You need to use the settings that get assigned to the parallel port by the BIOS. This is usually listed when the computer starts up or by going into the BIOS to view settings.

Having said that, IRQ 7 is commonly used for parallel ports, so this may be another issue.

Having searched TLDP , I found this:
Quote:
In the 2.0.* series kernel, the PLIP devices are mapped to i/o port and IRQ as follows:

device i/o IRQ
------ ----- ---
plip0 0x3bc 5
plip1 0x378 7
plip2 0x278 2
You're not using plip but these look like fairly standard numbers to me. I also remember 0x220 cropping up a lot.

Also, I'm not sure that you need to pass the IRQ to the command-line; I'm pretty sure you can set it by using something like:
Code:
echo 7 > /proc/parport/0/irq
Hope that's of some help,

—Robert J. Lee
 
Old 08-20-2004, 11:36 AM   #3
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
Hello,

Thank you for your reply. I gave it a short try, but it did not work. Unfortunately I am in a hurry and do not have time to try more today. I will give it some more tries during the Weekend and post, if I could get it working :-)

cccc828
 
Old 02-03-2007, 02:32 AM   #4
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
It is quite some time since my post, but I finally resolved the issue:
Instead of using the (recommended) hpijs driver I now use the gutenprint driver. They work just as well and are a lot faster.

cccc828
 
Old 02-03-2007, 06:40 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
There are also some optimizations possible in the kernel configuration that have to do with transfer types and hardware support that may help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer and Parallel port dancar Linux - Hardware 4 04-30-2006 09:43 AM
Parallel port printer dtcamargo Linux - Hardware 4 10-31-2004 10:11 PM
USB-parallel port printer Devenpillay Linux - Laptop and Netbook 1 09-07-2004 09:26 AM
slow parallel port / printer question tommyj27 Slackware 4 09-22-2003 10:18 PM
Parallel port and printer Xreagan Linux - Newbie 2 09-04-2002 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration