WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: CUPS error log with new generated PPD  (Read 3634 times)

aus9

  • Guest
CUPS error log with new generated PPD
« on: April 08, 2013, 09:49:20 AM »
Hi

I have posted in the forums as I have pulled all my shiny black hair out.

https://www.cups.org/newsgroups.php?s25909+gcups.general+v25928+T0

If anyone can spot what is going wrong, feel free to suggest, comment etc

The link contains links that you can view in your web browser of the driver, PPD and error log.

I am attempting to use the ghostscript stuff to print, but if you realise that and can see I am not doing it, again please speak up.

2) Eventually when we resolve this, I would like to submit new PPDs for some printers.

cheers and thanks for reading

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: CUPS error log with new generated PPD
« Reply #1 on: April 08, 2013, 11:23:55 AM »
this is some stuff i had to put manually so that it would work with my printer:
libcups.tcz
dbus.tcz
file.tcz
ghostscript_common.tcz
ghostscript.tcz

it seems like I made my own cups.tcz, don't remember why!
« Last Edit: April 08, 2013, 11:27:47 AM by hiro »

aus9

  • Guest
Re: CUPS error log with new generated PPD
« Reply #2 on: April 08, 2013, 07:21:13 PM »
hiro

all of your tcz suggestions are loaded (new was file), no apparent difference detected.

I have now modded my driver so that for each custom filter it has a command pathway

cups thinks its printed!
Code: [Select]
▲ ID ▲ Name User Size Pages State Control
HP_Deskjet_3050_J610_series-1 Leafpad job #1 tc 6k Unknown completed at
Tue Apr 9 11:50:12 2013

my debug log is here
http://ompldr.org/vaTFjOA/error_log2.txt

my driver is here
Quote
// Include standard font and media definitions
#include <font.defs>
#include <media.defs>

// List the fonts that are supported, in this case all standard fonts
Font *

// Custom driver
DriverType custom

// Manufacturer, model name, and version
Manufacturer "HP"
ModelName "Deskjet 3050 "
Version 1.0

// Supported page sizes
*MediaSize A4

// Supported resolutions
*Resolution k 8 0 0 0 "300dpi/300 DPI"

// Each filter provided by the driver...
Filter application/vnd.cups-postscript   66   pdftops
Filter application/vnd.cups-postscript   66   pstops
Filter application/vnd.cups-postscript   66   imagetops
Filter application/postscript      33   texttops
Filter application/postscript      33   bannertops

// command to filter
Filter application/vnd.cups-command  66 /usr/local/lib/cups/filter/pdftops
Filter application/vnd.cups-command  66 /usr/local/lib/cups/filter/pstops
Filter application/vnd.cups-command  66 /usr/local/lib/cups/filter/imagetops
Filter application/vnd.cups-command  33 /usr/local/lib/cups/filter/texttops
Filter application/vnd.cups-command  33 /usr/local/lib/cups/filter/bannertops

// Specify the name of the PPD file we want to generate...
PCFileName "hp3050.ppd"

my PPD is too big so link
http://ompldr.org/vaTFjOQ/hp3050.ppd

I am so close I can smell it.

OFFTOPIC I have seen an error for file before, it read something like......file type not detected. I solved it without file loaded by saving the text file that I had opened with filename.txt
« Last Edit: April 09, 2013, 12:00:13 AM by aus9 »

aus9

  • Guest
Re: CUPS error log with new generated PPD
« Reply #3 on: April 09, 2013, 08:39:37 PM »
Yesterday I was able to generate a file type not detected error

Being lazy instead of creating a local.convs file, I deleted mime.convs and swapped in a new mime.convs with filters to foomatic-rip

using a foo-rip PPD failed, I then went back to hplip PPD without reversing my mime file and got the error.

So it looks like file type error points to a bad syntax mime or local (.convs) files or
-- missing attribute in one of them

so if you try to print a pdf and you have no mention of what filter to use with pdf files you are likely to see that error
"file type not detected"