Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printer install problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dragonx
n00b
n00b


Joined: 17 Apr 2003
Posts: 62

PostPosted: Wed Apr 30, 2003 10:05 pm    Post subject: Printer install problems Reply with quote

I just installed Gentoo with parallel support compiled into the kernel. I was trying to configure cups and Gentoo will not see /dev/lp0. Here is the dmesg after boot which shows my parallel port was detected

Code:

devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Printer, HEWLETT-PACKARD DESKJET 950C


Now I noticed it sees the port as parport0. Is there a way to alias it to /dev/lp0. That is the device that all the KDE printer programs need including cups. Or is there something I am doing wrong?


Thanks
Back to top
View user's profile Send private message
peepsalot
n00b
n00b


Joined: 05 Apr 2003
Posts: 52
Location: Texas

PostPosted: Wed Apr 30, 2003 11:10 pm    Post subject: Re: Printer install problems Reply with quote

In my dmesg, in addition to two parport lines like you have there is a line:
Code:
lp0: using parport0 (polling).

Do you have one of those?

Also, is /dev/lp0 totally absent on your computer or can it just not read the device correctly? /dev/lp0 should be a symlink to /dev/printers/0.
do an "ls -l /dev/lp0" to see if it is the correct link.

If the device files do not exist on your box, you can see if this fixes it:
Code:
su
cd /dev
./MAKEDEV lp

This should make the correct device files and links.
Alternatively you can try:
Code:
ln -s /dev/printers/0 /dev/lp0

which should create the symbolic link you need. I'm not sure, but there might be more to it than that though.

Once the device files are setup, you can configure cups by running as root and doing "lynx 127.0.0.1:631" or whatever browser you want instead of lynx.

then test it all with "lpr sometext.txt"

Hope that helps.
_________________
Call me butter, 'cause I'm on a roll!
Back to top
View user's profile Send private message
dragonx
n00b
n00b


Joined: 17 Apr 2003
Posts: 62

PostPosted: Thu May 01, 2003 3:29 pm    Post subject: Reply with quote

Quote:
In my dmesg, in addition to two parport lines like you have there is a line:
Code:
lp0: using parport0 (polling).

Do you have one of those?


Nope all it says is whats in the above dmesg. When I try to configure the printer in cups kde. It shows the printer, but on the url to the device it shows /dev/unknown-parrallel0 or something like that. If I try to change it it doesn't work. If I leave it cups works fine but nothing goes to my printer. I was noticing that some things work better as modules. I was thinking of recompiling as modules. If I do what are the module names I have to load in order to get lp0. Also, I tried what you said. It added an lp0 to my /dev directory, but still the same problem. Also upon looking at my /dev directory, I don't have a /dev/printers/0 device listed.

Also, I noticed in my menuconfig when making my kernel under parralel support there is no printer option. Is that accurate?

Thanks for the help so far, any more help would be greatly appreciated. One of the things I love about gentoo is the user comunity!

Thanks
Back to top
View user's profile Send private message
GaryGNU
n00b
n00b


Joined: 10 Apr 2002
Posts: 8
Location: Toronto ON

PostPosted: Sat May 03, 2003 5:05 pm    Post subject: Reply with quote

This may help, under 'character devices' in the kernel config, try enabeling 'Parallel printer support' I have it as a module, and when that is done the module is called 'lp' load that and you should produce a lp0 entry in /dev.

Let me know if you need anymore help.

HTH
CM
Back to top
View user's profile Send private message
dragonx
n00b
n00b


Joined: 17 Apr 2003
Posts: 62

PostPosted: Sun May 04, 2003 12:37 am    Post subject: Reply with quote

Thanks,

I got it working. I always make these stupid mistakes. Compiled printer in and everything works great!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum