Results 1 to 9 of 9
Hi everyone,
Please help me the way to check LPT port in RHEL 5.
I want to install printer through LPT port, but when install, I can not see LPT ...
- 09-28-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
LPT port in RHEL 5
Hi everyone,
Please help me the way to check LPT port in RHEL 5.
I want to install printer through LPT port, but when install, I can not see LPT port in Printer configuration.
Thanks a lot.
- 09-28-2011 #2
The Printer Port isn't disabled in the machine's BIOS settings is it? On every computer I've set up for the last five or more years I've gone into the BIOS and disabled and parallel and serial ports - they're hardly ever needed these days.
Linux user #126863 - see http://linuxcounter.net/
- 09-28-2011 #3Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Is the parallel port kernel driver already loaded? Check with:
You should see possibly parport, parport_pc and lp.Code:lsmod|grep parp
If not, try loading it:
Make sure they're not blacklisted (prevented from loading):Code:modprobe parport
Note: the location of your blacklist might be different.Code:grep ^blacklist\ parp /etc/modprobe.d/blacklist
Make sure the driver has not been disabled at boot-time:
See if the parallel port has acquired an IRQ:Code:cat /proc/cmdline|grep parport
Code:cat /proc/interrupts |grep parp
- 10-05-2011 #4Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Thanks atreyu and Roxoff very much.
- Printer port is enable in BIOS setting
the parallel port kernel driver already loaded? Check with:
Code:
You should see possibly parport, parport_pc and lp.Code:lsmod|grep parp => parport 37513 1 lp
If not, try loading it:
Code:
modprobe parport
Make sure they're not blacklisted (prevented from loading):
Code:
Note: the location of your blacklist might be different.Code:grep ^blacklist\ parp /etc/modprobe.d/blacklist.conf => nothing
Make sure the driver has not been disabled at boot-time:
Code:
See if the parallel port has acquired an IRQ:Code:cat /proc/cmdline|grep parport => nothing
Code:
Is there anything else I should try?Code:cat /proc/interrupts |grep parp => nothing
One more thing, in printer configuration, I do not see usb port, too, although my computer has 3 usb ports.
- 10-05-2011 #5Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Hmmm...so the parport kernel driver loaded and what's more the lp driver is using it. But what about parport_pc? Maybe it needs to be loaded (I have no idea), try:
I don't know much about parallel ports, but it seems not good that the parallel port is not getting assigned an IRQ. On my machine w/a parallel port, it is getting an IRQ anyway.Code:modprobe parport_pc
Also, run this to get kernel messages relateted to the parallel port:
Do you have the proper char device available?Code:dmesg|egrep -i 'paral|parp'
Code:ls -l /dev/parport0
- 10-07-2011 #6Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Thanks for your quick reply, atreyu.
Here are the results when I try your suggestion:
Code:
Code:modprobe parport_pc => FATAL: Error inserting parport_pc (/lib/modules/2/6/18-238.el5/kernel/drivers/parport/parport_pc.ko): Invalid argument
Code:
the proper char device available?Code:dmesg|egrep -i 'paral|parp' => (appear 4 lines below) parport_pc: '0x378' invalid for parameter 'io'
Code:
Code:ls -l /dev/parport0 => crw-rw---- 1 root lp 99 0 Oct 7 09:53 /dev/parport0
- 10-07-2011 #7Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I'm not sure what to make of those parport_pc errors. Maybe you have a wacky parallel port that wants to use a different base address? Is the address of the parallel port settable in the BIOS? If it isn't 0x378, try changing it to it.
Also, in any event, reboot and then run the dmesg|egrep -i 'paral|parp' command again.
- 10-11-2011 #8Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
The old address of parallel port is 0x278, I changed to 0x378, but got the same results.
How I change default address 0x378 for parport to 0x278 (default address in bios setting)?
- 10-11-2011 #9Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Check out the kernel parameters listed here. Search for parport= to see the parameters you can pass to the kernel at boot time.


Reply With Quote