Solved

CUPS "lost" connection to my printer

Posted on 2006-11-23
7
2,604 Views
Last Modified: 2013-12-15
Hi experts !

    I have a Kyocera FS-820 (BW Laser Printer) that worked for a long time on my Linux distro.  I bought a new computer, re-installed my distro, and now, I have problems with my printer.  On three different Linux install (two Gentoo, one archLinux).  My goal is to install it on my Gentoo server.

    The problem I have is that Cups "lost" the connection to my USB printer after a short time.  If I power down and then power up my pinter, Cups will see it, and I will be able to print, and the result is perfect.  But if I wait like 30sec or 1min, and I try to print again, Cups will tell me "printer not connected; will retry in 30 seconds".

    If I do: "lpinfo -v"

The result after I started the printer:
------------------------------------------------
network socket
network beh
network http
network ipp
direct usb://Kyocera/FS-820
network lpd
direct parallel:/dev/lp0
direct scsi
serial serial:/dev/ttyS0?baud=115200
------------------------------------------------

After about 30sec:
------------------------------------------------
network socket
network beh
network http
network ipp
network lpd
direct parallel:/dev/lp0
direct scsi
serial serial:/dev/ttyS0?baud=115200
------------------------------------------------

    As you can see, the USB printer is not there anymore.  The "usblp" module is compiled directly in my kernel (not as a module).

    It was working in the past, and I've even installed a Windoz to validate that it's not my printer, and it work great in Windoz.

Any idea ?
Thanks a lot !
Have a nice day !
Xor
0
Comment
Question by:BGMi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:BGMi
ID: 18008572
Ok ... tried something new.  If I do: "echo "test" > /dev/usb/lp0", it will wake up the printer and print the result with success.  But still won't print if I try via Cups.

Thanks for your help !
Xor
0
 
LVL 40

Expert Comment

by:noci
ID: 18019529
gentoo recently (last weeks) upgraded the cups system from 1.1.23 -> 1.2.6,
have you tried that one allready?

0
 
LVL 40

Expert Comment

by:noci
ID: 18019752
And what does lsusb show when the printer is offline.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:BGMi
ID: 18020968
Thanks for your answers.

  I currently have Cups 1.2.7.  The latest build under "unstable".

  The "lsusb" command return:

Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 019: ID 0482:0010 Kyocera Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

  And the "lpinfo -v" command still don't see it.

Thanks for your help !
Xor
0
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 18021867
For the USB system it is not off-line, that definitely makes it a cups issue.

It might be that the usb code does a check wrong, as "printing" to the file
/dev/usb/lp0 works.

Can you try to use the url: "file:/dev/usb/lp0"
it might help. The problem then is that is there are more printers
the order might change, and that shouldn't be the case with usb:/...

If the Kyocera can handle HP compatibility, you could try the hplip package.
(that's an intermediate between cups and hp printers).
0
 
LVL 40

Expert Comment

by:noci
ID: 18021875
The hplip might need some tweeking for usb-id etc.
0
 

Author Comment

by:BGMi
ID: 18024041
Thanks a lot Noci !

    The "file:/dev/usb/lp0" workaround did the trick !  In my case, I will not connect other printers to this computer/server ... so the printer address shouldn't change in the future.

    I think my printer is HP compatible ... remember seing that on linuxprinting.org.  But I don't really have a lot of time for that ... and prefer a "faster" way to do it !

    So, for other passing by, what I did, is change the line "DeviceURI usb://Kyocera/FS-820" to "DeviceURI file:/dev/usb/lp0" in file "/etc/cups/printers.conf" (I already had earlier the printer via CUPS, as an USB printer).  I've restarted Cups, and everything works nice now, thanks to Noci :)

Thanks again !
Xor
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question