Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't get printer to work locally or over network
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
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Mon Oct 04, 2004 2:52 pm    Post subject: can't get printer to work locally or over network Reply with quote

Hi guys,

I have installed KDE on all my team memebers desks, but the 1 thing left that is a big challenge.

I cannot get printing to work. I have cupsd running. It just does not detect the printer locally so therefore I cannot set it to print over the network.

Thanks

Dan
_________________
DannyBoy
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Mon Oct 04, 2004 7:38 pm    Post subject: Reply with quote

Did you configure your parallel port in the kernel?
Back to top
View user's profile Send private message
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Mon Oct 04, 2004 8:54 pm    Post subject: Reply with quote

gentoo_dude wrote:
Did you configure your parallel port in the kernel?


I do believe I did. Is there a way to check?
_________________
DannyBoy
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Oct 04, 2004 10:19 pm    Post subject: Reply with quote

You can check it with:
Code:
grep -i parport /usr/src/linux/.config

And which method did you use to configure your printer: command line or web interface?
Back to top
View user's profile Send private message
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Tue Oct 05, 2004 12:17 am    Post subject: Reply with quote

oumpah-pah wrote:
You can check it with:
Code:
grep -i parport /usr/src/linux/.config

And which method did you use to configure your printer: command line or web interface?


Neither, I just go through the conrol center of kde and do the printer management but it does not detect it.

I did as you said with the above command and this is the output:

grep -i parport /usr/src/linux/.config
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_PC_SUPERIO=y
# CONFIG_PARPORT_PC_PCMCIA is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y


I would not mind knowing what the command line is, or if there is a simple way to get it up. I tried also through webmin then the swat interface but it just does not detect it. do I need to load the module as it was configured as a module. Perhaps it is not loading the module.

Dan
_________________
DannyBoy
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Tue Oct 05, 2004 1:05 am    Post subject: Reply with quote

this is for kernel 2.6.x
Code:

cd /usr/src/linux

Code:

make menuconfig

Code:

Device Drivers -> Parallell Port Support ->
<*>Parallel port support
<*> PC-Style Hardware

Code:

Device Drivers -> Character devices ->
<*> Parallel printer support

Enable those selections in your kernel. Compile it again. boot from the new image and see if it detects your printer. This is only if you use to connect your printer using the lp0 port, not USB.
Back to top
View user's profile Send private message
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Tue Oct 05, 2004 1:44 am    Post subject: Reply with quote

Can I not just load the modules I have already compiled?

dan
_________________
DannyBoy
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Tue Oct 05, 2004 2:03 am    Post subject: Reply with quote

You can, but I know that this way it works. I never tried with the modules.
Back to top
View user's profile Send private message
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Tue Oct 05, 2004 2:04 am    Post subject: Reply with quote

gentoo_dude wrote:
You can, but I know that this way it works. I never tried with the modules.


So what would I be loading as a module for the printers. I understand nvidia, and other modules, but what is the printermodule called and how do I load it?

Thanks

Dan
_________________
DannyBoy
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Tue Oct 05, 2004 2:21 am    Post subject: Reply with quote

That's what I am not sure of. That's why I compile it build in. probably it's lp something.
try the following
Code:
 insmod parport

Code:
 insmod lp

the lp module should be under /lib/modules/2.6.x-version/kernel/drivers/char/lp0
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Tue Oct 05, 2004 8:05 am    Post subject: Reply with quote

You should use modprobe instead of insmod. Insmod is a trivial program, and modprobe is much more clever.
Back to top
View user's profile Send private message
dhewton
Guru
Guru


Joined: 14 Aug 2004
Posts: 461
Location: Canada

PostPosted: Tue Oct 05, 2004 4:05 pm    Post subject: Reply with quote

gentoo_dude wrote:
That's what I am not sure of. That's why I compile it build in. probably it's lp something.
try the following
Code:
 insmod parport

Code:
 insmod lp

the lp module should be under /lib/modules/2.6.x-version/kernel/drivers/char/lp0


I have done everything suggested by everyone. I have also added parport to autoloaded modules and it says it got loaded.

Can you tell me how I can from the command line I can activate the printer? Do I need to run cupsd.. I am, but it does not seem to make a difference.

Thanks.

DAn
_________________
DannyBoy
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Tue Oct 05, 2004 5:05 pm    Post subject: Reply with quote

It should get your printer recognized. Check the /var/log/messages and see if it says anything about your printer after you load the modules.
Also the suggestion of using modprobe instead of insmod is correct. I usually use modprobe to load a module, but everywhere I looked on the web about loading these modules had "insmod" command instead of modprobe, that is the reason why I put "insmod".
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