Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-18-2003, 07:46 AM   #1
LQ Newbie
Registered: Dec 2002
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
parport_pc not loaded?

This is a particularly newbie question, and I'm dead certain I've missed something obvious, but I need to ask.

I'm running Gentoo 1.4, and have built parallel port support into the kernel as a module. After rebooting, a dmesg gives no sign of anything to do with the parallel port being detected, or the printer (HP Laserjet 4 Plus) being detected.

Additionally, I tried the following:
# modprobe parport_pc
modprobe: Can't locate module parport_pc

# cat /etc/hosts >/dev/lp0
bash: /dev/lp0: Permission denied
It seems like I just haven't loaded the module properly..

Any suggestions?
Old 08-20-2003, 09:50 AM   #2
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
First, use lsmod(8) to see if the module is loaded or not for sure (though it sure sounds like it isn't). Then check /etc/modules.conf to see if parport_pc is listed in there so that it will get loaded automatically. Next run depmod to be sure your module dependencies are up to date. All the above is just to be sure things are set up right: report any problems to this thread.

Now check if that module is really on your system. This should find it:
find /lib/modules/`uname -r` -name parport_pc.o
If there's no output, the module's not there, and you need to run "make modules_install" (or something like that) from your kernel's build directory. If it is there, try installing it with "insmod -v parport_pc" and see if that gives any enlightening output.

Given that modprobe says it can't find it, I suspect that it's really not there and you need to install the modules. Check the Gentoo installation doc again; you may have missed that step which is part of building your new kernel.
Old 08-20-2003, 03:11 PM   #3
LQ Newbie
Registered: Dec 2002
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the advice MacKtheHacK, but I decided I'd make things simpler on myself and used some spare time to compile a new kernel with parallel port support (oh, what a rhyme) built in directly, rather than as a module..

So now the new kernel's in place, but still no sign of it recognising the printer according to dmesg. lp0 doesn't even exist under /dev, which would be why my "cat /etc/hosts > /dev/lp0" didn't work.

Should the printer be automatically recognised on startup, or are there any additional steps I need to take before I can send data to /dev/lp0?

Thanks again.
Old 08-22-2003, 07:41 AM   #4
LQ Newbie
Registered: Dec 2002
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
Did some googling, and others have suggested disabling the PnP on the parallel port, and disabling PnP in the BIOS altogether. I have tried both of these, and there's no difference.

Absolutely no mention of lp at all in dmesg.

I really have no idea what I can do here to get the parallel port recognised..
Old 09-21-2003, 02:05 PM   #5
Registered: Sep 2003
Posts: 71

Rep: Reputation: 15
can't find printer port


I am running RedHat 9 on an Intel 440 SX motherboard, admittedly
an older system. I can' t seem to find the printer port. I've added
this line to my modules.conf:

alias parport_lowlevel parport_pc

and rebooted my system. When I type lsmod, I get a couple of lines
that look like this:

lp 8996 0 (autoclean)
parport 37056 0 (autoclean) [lp]

so I think that the printer port is getting loaded. When I type:

insmod -v parport_pc

I get the following output:

Using /lib/modules/2.4.20-8/kernel/drivers/parport/parport_pc.o
Symbol version prefix ''
/lib/modules/2.4.20-8/kernel/drivers/parport/parport_pc.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg

Then I type dmesg | grep lp, and I get:

lp: driver loaded but no devices found

Any thoughts about any of this? should I just recompile my
kernel with printer support in there? will that solve this problem?



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
Parport_pc driver not correct for the IT8874 serial port card. jimeotis Linux - Hardware 0 04-19-2005 04:39 PM
SL 10; kernel 2.6: parport_pc not loading ruidh Slackware 8 01-29-2005 08:52 AM
paraport_pc module loaded with wrong options, st not loaded adrianmariano Debian 2 12-18-2004 10:37 PM
Modprobe parport_pc vernman Linux - Hardware 1 08-04-2004 05:54 PM
parport, parport_pc, parport_lowlevel modules loaded, now what?! RAYman2k1 Linux - Newbie 1 12-18-2003 10:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

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