LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2004, 09:56 AM   #1
ussishkin118
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 2

Rep: Reputation: 0
Possibly Defective USB Printer Module in Slackware 9.1


I am running Slackware 9.1, kernel 2.4.22, on a P4. Among other peripherals connected to it is a Samsung ML-1210 Laser Printer. It is attached to a 4-port USB hub with a UHCI interface. The interface, hub, and printer are all recognized at startup. However, although I can establish communication with the printer by echoing a string to /dev/usb/lp0, no data are transmitted to it. Neither CUPS nor the kde printer installation utility recognize the existence of /dev/usb/lp0, although kdeinfocenter (correctly) shows the printer attached to USB hub 1.

I know that the printer can work properly under Linux because I am able to print to it after booting from a Knoppix CD with kernel 2.4.20. Comparing the output of dmesg in Knoppix and Slackware, the only possibly relevant difference I see is in the absence in Slackware of the second line below:

printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04E8 pid 0x300C
printer.c: v0.11: USB Printer Device Class driver #THIS LINE IS ABSENT IN DMESG FROM SLACKWARE

In other words, under Slackware my kernel is not loading "USB Printer Device Class driver". The absence of the driver is confirmed by the output of var/log/messages after detaching and reattaching the printer: "missing kernel or user mode driver printer".

My kernel is configured to load usb printer support as a module; the kernel configuration for usb support is identical to the one that successfully drives the printer under Knoppix. Evidently the Slackware module (printer.o) either did not compile correctly or is defective; after recompiling the kernel three times with the same results, I am more inclined to believe the latter.

Questions:
1. Is there any way to check the printer.o module for a defect that might be causing the problem?
2. If the module is defective, is it possible to obtain a properly-functioning one for kernel 2.4.22 and simply substitute it for the one currently in /lib/modules/2.4.22/kernel/drivers/usb, without rebuilding the entire kernel?
3. Would adding a patch or patches to bring the kernel to a higher patch number be likely to help?
4. Would it make a difference if usb printer support were compiled directly into the same kernel instead of as a module?
5. Would I be better off downloading, configuring, and installing a new generic kernel? If so, is there anyone successfully using this printer who can recommend a kernel? I am reluctant to take this route if I can avoid it, not only because of the time involved but because I also run win4lin and, after configuring and installing a new kernel, will have to recompile it yet again after adding the win4lin patch.

Any suggestions will be appreciated.
 
Old 05-27-2004, 11:42 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You say you have the printer connected to /dev/usb/lp0 . My experience with USB printers has been that the node that works is /dev/usblp0 . If it doesn't exist, create it with
mknod -m 666 /dev/usblp0 c 180 0
reboot and then configure the printer. Your message from Knoppix shows it using usblp0.
 
Old 05-27-2004, 02:35 PM   #3
ussishkin118
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
Possibly Defective USB Printer Module in Slackware 9.1

I've done this already, to no avail. Just as with /dev/usb/lp0, I can establish contact with the printer, but no data are transmitted. Clearly the problem is reflected in the absence of the second line in the dmesg output, not in the designation of the printer device file.

In any case, thanks for the response.
 
Old 05-27-2004, 03:38 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well, the other thing is we have a Samsung ML-1210 and we connect it as a line printer to the parallel port. My first response when I saw your post was to say "of course it won't work as a USB printer" because I didn't know it could work that way, but then I googled on it and found a review which said it could be connected either way. I'm babbling nonesense here aren't I? Clearly it's not a hardware problem if it works in Knoppix.

Once I installed Slackware 9.1 and I couldn't get my printers to work at all. The solution was to reinstall it and during the setup process there's a screen to choose which services are started at boot. Some of them are samba and stuff but there are two to do with printing. One of them is cups and I forget what the other is called. Anyway, the solution was to enable them both. Then the printers worked no problem. I'm sorry if I'm rambling but for me printing is like the intenet connection, it's a total showstopper if it's not working. It does my head in just thinking about it. I don't use Slack much so (as you've no doubt gathered) I don't have much experience with it. But I wish I could help.
 
Old 06-13-2004, 07:07 PM   #5
berrold
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
RIGHT SOLUTION TO CUPS/LPRNG:-)

Quote:
Originally posted by Andrew Benton
Well, the other thing is we have a Samsung ML-1210 and we connect it as a line printer to the parallel port. My first response when I saw your post was to say "of course it won't work as a USB printer" because I didn't know it could work that way, but then I googled on it and found a review which said it could be connected either way. I'm babbling nonesense here aren't I? Clearly it's not a hardware problem if it works in Knoppix.

Once I installed Slackware 9.1 and I couldn't get my printers to work at all. The solution was to reinstall it and during the setup process there's a screen to choose which services are started at boot. Some of them are samba and stuff but there are two to do with printing. One of them is cups and I forget what the other is called. Anyway, the solution was to enable them both. Then the printers worked no problem. I'm sorry if I'm rambling but for me printing is like the intenet connection, it's a total showstopper if it's not working. It does my head in just thinking about it. I don't use Slack much so (as you've no doubt gathered) I don't have much experience with it. But I wish I could help.
RIGHT SOLUTION :
IT DOES NOT MATTER WHICH DEVICE YOU USE:-)
Just leave it.
Run pkgtool and remove package lpr*.tgz
Move to / and find ALL links content `->lprng` and move them to `->cups`.
That's all guys:-)
 
Old 12-31-2004, 06:15 AM   #6
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
Re: RIGHT SOLUTION TO CUPS/LPRNG:-)

Quote:
Originally posted by berrold
RIGHT SOLUTION :
IT DOES NOT MATTER WHICH DEVICE YOU USE:-)
Just leave it.
Run pkgtool and remove package lpr*.tgz
Move to / and find ALL links content `->lprng` and move them to `->cups`.
That's all guys:-)
sorry, what?

i've removed lprng*tgz using pkgtool, but am not sure what you say to do next. from looking at it, all symlinks to lprng should point to cups instead. this isn't in / is it? should it be in /dev instead?
is there an easy way to accomplish this? i imagine it can be done in a one-liner.

thanks for your solution.
 
  


Reply



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
How can I use my canon i865 usb printer with slackware 10.1? siggiae Slackware 1 04-09-2005 10:38 AM
USB printer installation in Slackware 10.1 scorpion77 Linux - Hardware 2 03-03-2005 02:10 AM
usb wireless networking issues possibly related to ehci_hcd module! GrayGh0st Fedora 4 12-29-2004 11:07 AM
how i can configure my hp usb printer in slackware paulmedic555 Slackware 5 06-08-2004 07:48 AM
(usb)printer module not compiled.. What now ? Dark Carnival Slackware 14 02-07-2004 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:41 PM.

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