LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-03-2003, 09:22 AM   #1
ixion
Member
 
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Rep: Reputation: 30
usb printing


I want to thank everyone who helped me get printing under CUPS up on my Slack Server. That was a hurdle that had been hanging in my head for quite some time...

anyway, I felt so confident after getting slack setup as my server at home, I'm trying to get my work laptop running it. All is well except printing (of course). I followed the same routine as I did for the server, and CUPS has been installed just fine. The only problem is that my printer is not detected. (By the way, the difference with this install on the laptop is I used the 'usb.i' kernel instead of the 'bare.i' kernel (bare.i was used on the server)). I tried hooking the printer up through the parallel port, but after uncommenting the parallel printing sections of rc.modules, I get an error on boot that 'the device or resource is busy' when loading the parallel script/modules. Back to USB, when installing in CUPS, I tell it to look at USB Printer #1, but it doesn't find anything there. I get an error to the effect of "/dev/usb/lp0: unable to write, no such device". I don't remember the command/string to run in order to see what devices are installed on usb.

My USB keyboard and mouse are working fine, and on boot I see my USB CDRW drive is detected also, so that should mean the correct USB Hub is loaded, right?
 
Old 01-03-2003, 01:16 PM   #2
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
cat /proc/bus/usb/devices

Should show your devices. Also check if usb printer support is enabled in the kernel. Does Slackware support hotplugging of usb devices? If not the printer has to be connected to the computer at boot time and it has to be switched on. Check dmesg if you just booted or your kernel logfile if the machine was on for a while (dmesg is a ringbuffer). You should see a line there that shows your printer name and or manufacturer.

You should find something like this:

kernel: Manufacturer: EPSON
kernel: Product: USB Printer
 
Old 01-03-2003, 02:02 PM   #3
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
vi /etc/printcap

Printcap has all the info on the printer spoolers. First do what dazk said: find if your printer is even detected. Then install the correct driver packages, running the right script. That should add your printer to the /etc/printcap file.
 
Old 01-03-2003, 02:34 PM   #4
ixion
Member
 
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
I doubt that the kernel has usb printing enabled although it does have the usb controller loaded. I loaded the module 'printer' on startup, but I guess that's not enough? Do I need to compile a new kernel? If so, I haven't had much luck doing that. The new kernel boots, but I always end up with module errors all over the place with a custom kernel. What do you guys suggest? Do you know what I might have done wrong to mess up modules with a custom kernel? Is there a way to get the usb printer working without usb printing enabled on the kernel level?

edit: dmesg was able to show me the following couple things I thought might help in the diagnosis:

printer.c: V0.8: USB Printer Device Class driver
(and down quite a ways)
lp: driver loaded but no device found

Last edited by ixion; 01-03-2003 at 02:52 PM.
 
Old 01-03-2003, 10:43 PM   #5
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
Hmm, are you sure your printer is switched on and properly connected since usually loading the module should do the trick. Do you have a very special printer? Try searching google for something containing your printer name and linux. Maybe there is another problem with your printer. Maybe it's not a normal usb printer.

About your module problems, I'm not quite sure. Did you do a make modules ; make modules_install? If so what are the problems? Unresolved Symbols?
 
Old 01-06-2003, 07:32 AM   #6
ixion
Member
 
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
the usb printer works fine in Mandrake 9, and works perfectly in parallel on my Slackware server at home. It's an Epson C62, which the C60 drivers in CUPS work well with it.

I compared 'dmesg' results on my laptop with my server and the laptop doesn't show detecting the printer, while me server identifies it and everything. I even tried hooking the printer directly to my laptop through USB, but it didn't change anything. Do you think I'm loading the wrong USB Hub? When I tried loading other hubs (through rc.modules) I got insmod errors, but don't remember exactly what they were.

I have done 'make modules' and 'make modules_install', but for some reason it never can find the modules when using a custom kernel. Should I manually copy the modules folder to somewhere after setting up the new kernel?
 
Old 01-06-2003, 07:57 AM   #7
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
I'm not the USB guru myself but afaic if the hub works and usb printing also it *sould* work. Obviously it doesn't for you. I never tried usb printing with modules though.

Regarding your kenrel mods, you have to reboot with the new kernel. On reboot there should be a script that calculates module dependendcies for the new kernel. That should be it. The modules get copied to the right location if you do modules_install. You could also try a depmod -a if the modules can't be found.

Other than that, I've no idea myself.
 
Old 01-06-2003, 11:07 AM   #8
ixion
Member
 
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
I posted my kernel compile problems here

another thing to add is Windows 2000 detected the printer on this laptop, so it looks like it's not a printer problem, but a problem with my config.
 
Old 01-07-2003, 05:47 PM   #9
ixion
Member
 
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
it works if I enable usb printing and all the usb hubs in the kernel... I honestly don't know which one exactly fixed it, but it works with all that enabled.... thank you so much for your help! I'm sorry I've been so difficult to work with!
 
  


Reply


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
USB Printing meh1 Linux - Newbie 1 10-04-2004 06:27 PM
USB printing on 9.1 danslinuxbox Mandriva 1 04-20-2004 09:57 PM
usb printer not printing rooman Linux - Hardware 4 02-18-2004 02:56 PM
USB printing Henry_1 Linux - Laptop and Netbook 1 11-12-2003 03:46 PM
Usb printing and camera Penguinfilledsk Slackware 3 09-12-2003 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration