Author Topic: Cups Loses Jobs? (print From Usb)  (Read 3374 times)

alee16

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Cups Loses Jobs? (print From Usb)
« on: July 19, 2006, 10:49:00 am »
The USBlp module is included in the 2.6 kernel in PdaXrom 1.1.0beta4, and I've installed CUPS 1.1.23 from the unstable feed, and it installs a printer fine (sees it in localhost:631 as usb printer #1).

The problem is, when I try to send a job, CUPS "loses" it.  If I tell it to print a test page it says job was started successfully, but no jobs show up under "jobs" tab in localhost:631.  Also, Abiword doesn't see the printer I added, maybe this is why CUPS is in the unstable feed?

I would greatly appreciate any help from anyone who has tried to set this up (whether you had the same problem or got it working?).  Even if it was only over the network, which version of CUPS you are using would be helpful to.  Thanks!

P.S.  Great work on 1.1.0beta4 sashz! (and everyone who helped)
« Last Edit: July 19, 2006, 07:01:51 pm by alee16 »
Sharp C1000 running pdaXrom 1.1.0beta4!
w/Lexar 1GB 40x Compactflash card &
Toshiba 512mb SD card

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Cups Loses Jobs? (print From Usb)
« Reply #1 on: July 19, 2006, 08:03:47 pm »
Quote
The USBlp module is included in the 2.6 kernel in PdaXrom 1.1.0beta4, and I've installed CUPS 1.1.23 from the unstable feed, and it installs a printer fine (sees it in localhost:631 as usb printer #1).

The problem is, when I try to send a job, CUPS "loses" it.  If I tell it to print a test page it says job was started successfully, but no jobs show up under "jobs" tab in localhost:631.  Also, Abiword doesn't see the printer I added, maybe this is why CUPS is in the unstable feed?

I would greatly appreciate any help from anyone who has tried to set this up (whether you had the same problem or got it working?).  Even if it was only over the network, which version of CUPS you are using would be helpful to.  Thanks!

P.S.  Great work on 1.1.0beta4 sashz! (and everyone who helped)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135756\"][{POST_SNAPBACK}][/a][/div]
CUPS 1.1.23 works fine for me - normally the print job disappears because it has been successfully sent to the printer. The definition of successful varies, but I guess I would start with connection issues and go from there...

I haven't tried USB printers; I use it for network printers quite happily, although it did seem to prefer having the drivers on the local CUPS rather than talking to another CUPS server.
SL6000-L, RC12

alee16

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #2 on: July 19, 2006, 08:05:57 pm »
Quote
Quote
The USBlp module is included in the 2.6 kernel in PdaXrom 1.1.0beta4, and I've installed CUPS 1.1.23 from the unstable feed, and it installs a printer fine (sees it in localhost:631 as usb printer #1).

The problem is, when I try to send a job, CUPS "loses" it.  If I tell it to print a test page it says job was started successfully, but no jobs show up under "jobs" tab in localhost:631.  Also, Abiword doesn't see the printer I added, maybe this is why CUPS is in the unstable feed?

I would greatly appreciate any help from anyone who has tried to set this up (whether you had the same problem or got it working?).  Even if it was only over the network, which version of CUPS you are using would be helpful to.  Thanks!

P.S.  Great work on 1.1.0beta4 sashz! (and everyone who helped)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135756\"][{POST_SNAPBACK}][/a][/div]
CUPS 1.1.23 works fine for me - normally the print job disappears because it has been successfully sent to the printer. The definition of successful varies, but I guess I would start with connection issues and go from there...

I haven't tried USB printers; I use it for network printers quite happily, although it did seem to prefer having the drivers on the local CUPS rather than talking to another CUPS server.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135811\"][{POST_SNAPBACK}][/a][/div]

Do you have Ghostscript installed?  I think that might be my problem?

Edit: Ghostscript didn't fix the problem.
Lpstat doesn't show any printers installed, but when I go into localhost:631 (the CUPS manager) it shows the Epson printer installed and configured.  When I try to print a test page, it says "job epson-1 successfully started" but the job dissapears and doesn't show as completed or pending.

Edit2:  Installed cups 1.2.0.  Jobs are working "ok", but I don't know what packages to install to allow lpr to interpret files.  If I try to print a text file it says "lpr: Unsupported format 'text/plain'!".  Anyone have a guess as to what packages are necessary?
« Last Edit: July 19, 2006, 10:17:04 pm by alee16 »
Sharp C1000 running pdaXrom 1.1.0beta4!
w/Lexar 1GB 40x Compactflash card &
Toshiba 512mb SD card

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Cups Loses Jobs? (print From Usb)
« Reply #3 on: July 19, 2006, 11:34:05 pm »
Quote
Do you have Ghostscript installed?  I think that might be my problem?

Edit: Ghostscript didn't fix the problem.
Lpstat doesn't show any printers installed, but when I go into localhost:631 (the CUPS manager) it shows the Epson printer installed and configured.  When I try to print a test page, it says "job epson-1 successfully started" but the job dissapears and doesn't show as completed or pending.

Edit2:  Installed cups 1.2.0.  Jobs are working "ok", but I don't know what packages to install to allow lpr to interpret files.  If I try to print a text file it says "lpr: Unsupported format 'text/plain'!".  Anyone have a guess as to what packages are necessary?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135813\"][{POST_SNAPBACK}][/a][/div]
No ghostscript.

Using the web interface, the jobs should just disappear from the active list when completed/sent, but they should be available under completed jobs (unless you've restarted cups).

I do recall that I had some difficulty with printing from the command line using lpr (even the cups version), but I just used lp instead.

The only other thing is that I have copied over a specific driver/ppd file for the printer I'm using; do you have one specific for your printer or are you just using a generic one? Some printers just dump jobs they don't like.
SL6000-L, RC12

alee16

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #4 on: July 20, 2006, 08:19:03 am »
It just seems to "lose" the jobs.  Nothing under pending or completed jobs.
Sharp C1000 running pdaXrom 1.1.0beta4!
w/Lexar 1GB 40x Compactflash card &
Toshiba 512mb SD card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #5 on: July 20, 2006, 11:44:02 am »
You need 'ESP Ghostscript' not regular ghostscript. CUPS uses pstoraster from that package. Without it that step fails and you get no output.


-Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

alee16

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #6 on: July 20, 2006, 11:51:41 am »
Quote
You need 'ESP Ghostscript' not regular ghostscript. CUPS uses pstoraster from that package. Without it that step fails and you get no output.


-Andy
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135857\"][{POST_SNAPBACK}][/a][/div]

Can I just copy the "pstoraster" filter from my PC, or will that not work?  (It would save compiling ESP Ghostscript, because I don't think it is compiled into an ipkg)
Sharp C1000 running pdaXrom 1.1.0beta4!
w/Lexar 1GB 40x Compactflash card &
Toshiba 512mb SD card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #7 on: July 20, 2006, 12:06:31 pm »
pstoraster is a script that calls ghostscript with some options that aren't in the normal version.

ESP provides a patch set against ghostscript to enable these options.

EDIT: Or you can download espgs from the ESP website and build from source... really easy.

http://www.cups.org/espgs/software.php

-Andy
« Last Edit: July 20, 2006, 12:17:39 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

alee16

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Cups Loses Jobs? (print From Usb)
« Reply #8 on: July 20, 2006, 08:00:30 pm »
Quote
pstoraster is a script that calls ghostscript with some options that aren't in the normal version.

ESP provides a patch set against ghostscript to enable these options.

EDIT: Or you can download espgs from the ESP website and build from source... really easy.

http://www.cups.org/espgs/software.php

-Andy
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135860\"][{POST_SNAPBACK}][/a][/div]

So I can just copy pstoraster?

I had the instructions for building from source yesterday, but I can't find them today  .  If I do need to build it, could you give a quick rundown of how to build, or just point me in the right direction as to instructions that are already written  .  Thanks for all your help!
Sharp C1000 running pdaXrom 1.1.0beta4!
w/Lexar 1GB 40x Compactflash card &
Toshiba 512mb SD card