Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/usb/lp0 shows but does not print
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
KurtHarders
n00b
n00b


Joined: 30 Apr 2006
Posts: 7
Location: Germany

PostPosted: Sun Apr 30, 2006 4:49 pm    Post subject: /dev/usb/lp0 shows but does not print Reply with quote

Hello,

i configured a non-modular kernel for a server and want to attach an USB printer. When the printer is connected there is a /dev/usb/lp0 and the lsusb shows the correct information for the printer. But any output to the printer (echo xxx > /dev/usb/lp0...) does nothing, shows no error message or any log file entry.

Is there any idea to solve this problem?

Regards, Kurt
_________________
Kurt Harders
PiN GITmbH
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sun Apr 30, 2006 4:58 pm    Post subject: Reply with quote

Yeah, have you installed CUPS and configured it?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Sun Apr 30, 2006 5:08 pm    Post subject: Reply with quote

Can you see yor printer using lsusb?
Back to top
View user's profile Send private message
KurtHarders
n00b
n00b


Joined: 30 Apr 2006
Posts: 7
Location: Germany

PostPosted: Sun Apr 30, 2006 5:16 pm    Post subject: Reply with quote

didymos wrote:
Yeah, have you installed CUPS and configured it?


Yes and no :-). I started up with cups, then went back to lprng for several reasons. But the issue is not about the spooler or a driver, its about the printer doing really nothing. It should simply print the data i sent to it.

Regards, Kurt
_________________
Kurt Harders
PiN GITmbH
Back to top
View user's profile Send private message
KurtHarders
n00b
n00b


Joined: 30 Apr 2006
Posts: 7
Location: Germany

PostPosted: Sun Apr 30, 2006 5:18 pm    Post subject: Reply with quote

mirojira wrote:
Can you see yor printer using lsusb?


Yes. When the printer is switched off, /dev/usb disappears and after beeing switched on again it shows /dev/usb/lp0. lsusb shows the correct printer information.

Regards, Kurt
_________________
Kurt Harders
PiN GITmbH
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Sun Apr 30, 2006 5:28 pm    Post subject: Reply with quote

KurtHarders wrote:
mirojira wrote:
Can you see yor printer using lsusb?


Yes. When the printer is switched off, /dev/usb disappears and after beeing switched on again it shows /dev/usb/lp0. lsusb shows the correct printer information.

Regards, Kurt


In this case if you have configured your kernel properly you should find:

/lib/modules/'yourkernelname'/kernel/drivers/usb/class/usblp.ko
Back to top
View user's profile Send private message
KurtHarders
n00b
n00b


Joined: 30 Apr 2006
Posts: 7
Location: Germany

PostPosted: Mon May 01, 2006 5:12 am    Post subject: Reply with quote

mirojira wrote:
KurtHarders wrote:

When the printer is switched off, /dev/usb disappears and after beeing switched on again it shows /dev/usb/lp0. lsusb shows the correct printer information.

Regards, Kurt


In this case if you have configured your kernel properly you should find:

/lib/modules/'yourkernelname'/kernel/drivers/usb/class/usblp.ko


Sorry, no, i will not find that module, because my kernel is built without modules. But i will give it a try if it works with modules.

Regards, Kurt
_________________
Kurt Harders
PiN GITmbH
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Mon May 01, 2006 7:05 am    Post subject: Reply with quote

KurtHarders wrote:


Sorry, no, i will not find that module, because my kernel is built without modules. But i will give it a try if it works with modules.



Follow this:

cd /usr/src/linux
make menuconfig

Device drivers--->
USB Support --->
<M> USB Printer Support
Save menuconfig

make modules
make modules_install

Now you should find in /lib/modules/`uname -r`/kernel/drivers/usb/class file usblp.ko
Into file /etc/modules.autoload.d/kernel-2.6 add usblp
Reboot

And you should start printing :D
Back to top
View user's profile Send private message
KurtHarders
n00b
n00b


Joined: 30 Apr 2006
Posts: 7
Location: Germany

PostPosted: Mon May 01, 2006 7:59 am    Post subject: Reply with quote

mirojira wrote:

Follow this:

cd /usr/src/linux
make menuconfig

Device drivers--->
USB Support --->
<M> USB Printer Support
Save menuconfig

make modules
make modules_install

Now you should find in /lib/modules/`uname -r`/kernel/drivers/usb/class file usblp.ko
Into file /etc/modules.autoload.d/kernel-2.6 add usblp
Reboot

And you should start printing :D


I just did a '*' instead of the M, and that gives me the above mentioned problem.

I will give the module a try and keep you informed :)

Thanks so far, Kurt
_________________
Kurt Harders
PiN GITmbH
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