LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-15-2002, 01:06 PM   #1
cjdodger
LQ Newbie
 
Registered: Apr 2002
Location: Orange County, Ca
Distribution: Red Hat 7.2
Posts: 1

Rep: Reputation: 0
USB Printer problem


I am using redhat 7.2 and have installed a cannon printer onto my first (of 2)usb port using printtool and device /dev/usb/lp0. Everything is working fine. The problem appears when i reboot. Now the device is not found but when I connect the printer to the second usb port and restart lpd the printer works fine again. Everytime i reboot i have to connect to the other usb port and restart lpd. Does anyone know why the usb port keeps switching on reboots???

TIA.
 
Old 04-15-2002, 07:01 PM   #2
kibble
LQ Newbie
 
Registered: Apr 2002
Posts: 14

Rep: Reputation: 0
Sounds very much like the usb drivers for the printer are not compiled into the kernel, so when lpd starts it won't find one. You are also using Mandrake with it's devfs turned on. That there is the real problem since lpd won't probe /dev/usb/lp0 since that file doesn't exist until the module is loaded. But since it does use devfsd the config daemon for devfs you should be able to fiddle with it's settings in /dev/devfsd.conf. I can't give you any specific examples since while I like devfs most of the time I don't care for devfsd so I don't use it.

Alternatively you might be able to load the usb drivers from a startup script before lpd gets started. It should be in a script /etc/rc.d/rc3.d/S##lpd. or in rc5.d depending on your run level. If you just whip up a script that does /sbin/modprobe modulename or any other settings you require and place it in rc3.d and rc5.d with a file name S##usbmodules or something, so long as the ## is a lower number then the one used for lpd it should work find.

Now the second one should work, but it's more of a kludge then the first which I would suggest over the second.
 
  


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 printer problem. Printing stops arubin Linux - Hardware 7 12-28-2005 04:10 AM
Problem Connecting to USB Printer linuxnewbie24 Linux - Software 0 02-01-2005 11:08 AM
HP usb printer giving problem manishbendre Linux - Hardware 5 07-03-2004 03:01 PM
Printer problem: Couldn't open /dev/usb/lp0 deepika Linux - General 2 09-08-2003 10:25 AM
USB Printer shutdown problem VicF Linux - Software 1 12-13-2001 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:28 AM.

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