LinuxQuestions.org
Help answer threads with 0 replies.
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 06-14-2005, 07:52 PM   #1
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Rep: Reputation: 30
persistent (but unpredictable!) cups problem


hi

i own an HP Deskjet 5650 which has in patches been working in linux with no problems whatsoever. Occassionally CUPS would 'stop' the printer and i would have to restart it, but nothing major.

recently however i have been having more serious problems. the printer wouldnt work unless i turned it on whilst looking at the cups 631 menus a while back, but now the kernel wont assign it an lp device file. it should be /dev/usb/lp0 but cups says it is "not a directory".

Printer State: processing, accepting jobs.
"Unable to open USB device "usb:/dev/usb/lp0": Not a directory"
Device URI: usb:/dev/usb/lp0


i compile my own kernels and currently have a 2.6.11.12 running that is fine apart from this problem. my usb webcam works and is detected on boot up, and i have compiled in all the pertinent modules i could see in the kernel (ohci, uhci, ehci, usblp, usb-core and a few others, including one for USB printers - is there a list anywhere?). i have tried other USB ports, switching it on and off, starting linux with it switched on, starting it, stopping it, installing the HP drivers and running the hpijs command as a daemon, modprobing usblp etc but with no sign of improvement

what is wrong?
 
Old 06-15-2005, 03:14 AM   #2
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 31
I am not quite sure, but is lp0 not a parallel port device (unless it is linked)?
Is the printer perhaps under /dev/sda or sdb, being falsely recognized as just another device on the userial bus? In that case just link the /dev/usb/lp0 file to the /dev/sda, see what happens...
 
Old 06-15-2005, 09:27 AM   #3
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Original Poster
Rep: Reputation: 30
this is really starting to irritate me now. why is it that you can start linux, type a few commands and something works. then, you reboot do exactly the same commands TO THE LETTER, and it doesnt work?

last time i worked out that if i removed the /dev/usb file and modprobed usblp it worked like a charm (created /dev/usb/lp0 as well). so i rebooted to make sure the problem was totally fixed, typed the same commands and ... nothing happens. how does that make sense?

sorry for being annoyed but it just doesnt conform to standard rules of logic! everything else works under linux now which i am grateful for, but why is it that despite all my knowledge of the kernel and everything the same commands sometimes work and sometimes dont?

linux still wipes the floor with windows but i wish this kind of randomness could be resolved.

thanks


EDIT -- this has gotten even more confusing!! it has now created /dev/usb/lp0 (but sometimes doesnt) and cups reckons the printer isnt connected (it doesnt complain about /dev/usb/lp0, ie its either connected and working now or not connected at all). i am past aggression and am now laughing ... this pc actually has a life of its own.

Last edited by darksmiley; 06-15-2005 at 09:34 AM.
 
Old 06-15-2005, 05:13 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Review the following thread for the solution:

http://mialug.org/index.php?option=c...1347&catid=103
 
Old 06-15-2005, 08:27 PM   #5
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Original Poster
Rep: Reputation: 30
thats not really the problem tho - its gotten much worse since then. i had no worries about occassionally restarting it, but now its not working at all. any advice would be appreciated
 
Old 06-16-2005, 08:25 PM   #6
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Original Poster
Rep: Reputation: 30
hmm i managed to get it working for the first time for a while today! I killed cups, restarted the printer, removed the /dev/usb file, loaded usblp, ran cupsd as a daemon and then turned the printer back on!! lol

its very very temperamental atm which is annoying but its the best i can get
 
Old 06-17-2005, 03:16 PM   #7
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 31
have you tried not using cups but lpd?
 
Old 06-17-2005, 09:05 PM   #8
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Original Poster
Rep: Reputation: 30
isnt cups far more developed and used than lpd?
 
  


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
unpredictable wireless behaviour Suse 10.9 ndiswrapper 1.2 davidhilbert Linux - Wireless Networking 1 10-17-2005 04:22 PM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 09:01 AM
NULL buffer in read sys call unpredictable jwstric2 Programming 3 09-02-2004 08:13 PM
Persistent Samba Problem gwroy20 Linux - Networking 11 11-15-2003 10:27 AM
Persistent Error hubergeek Linux - Software 2 03-27-2002 01:45 PM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration