Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Apr 2006 01:46:27 +0100
From:      Carlos Silva <security@yourdot-mail.com>
To:        "Jin Guojun [VFFS]" <j_guojun@lbl.gov>
Cc:        freebsd-hardware@freebsd.org
Subject:   Re: cups
Message-ID:  <442F1EE3.8050904@yourdot-mail.com>
In-Reply-To: <442F1DB5.8090003@lbl.gov>
References:  <442DFEE5.4040407@yourdot-mail.com>	<442E82F2.8040702@bah.homeip.net>	<442EACAF.4010606@yourdot-mail.com>	<442EAEF1.5050307@bah.homeip.net> <442EB292.1000007@yourdot-mail.com> <442F15C6.4070409@lbl.gov> <442F1698.5050500@yourdot-mail.com> <442F1DB5.8090003@lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
my logs from the error are:

D [25/Mar/2006:23:37:55 +0000] [Job 7] Flushing FIFO.
D [25/Mar/2006:23:37:55 +0000] [Job 7]
D [25/Mar/2006:23:37:55 +0000] [Job 7] Starting renderer
D [25/Mar/2006:23:37:55 +0000] [Job 7]
D [25/Mar/2006:23:37:55 +0000] [Job 7] Closing renderer
D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer PID kid4=20689
D [25/Mar/2006:23:37:55 +0000] [Job 7] JCL: <job data>
D [25/Mar/2006:23:37:55 +0000] [Job 7]
D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer command: gs -q -dBATCH 
-dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs 
-sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="PHOTOSMART 1115" 
-dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dDuplex=false -r300 
-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 
-dIjsUseOutputFD -sOutputFile=- -
D [25/Mar/2006:23:37:55 +0000] [Job 7] perl: warning: Setting locale failed.
D [25/Mar/2006:23:37:55 +0000] [Job 7] perl: warning: Please check that 
your locale settings:
D [25/Mar/2006:23:37:55 +0000] [Job 7] LC_ALL = (unset),
D [25/Mar/2006:23:37:55 +0000] [Job 7] LANG = "en"
D [25/Mar/2006:23:37:55 +0000] [Job 7] are supported and installed on 
your system.
D [25/Mar/2006:23:37:55 +0000] [Job 7] perl: warning: Falling back to 
the standard locale ("C").
D [25/Mar/2006:23:37:55 +0000] [Job 7] foomatic-gswrapper: gs '-dBATCH' 
'-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' 
'-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' 
'-sDeviceModel=PHOTOSMART 1115' '-dDEVICEWIDTHPOINTS=595' 
'-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' 
'-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7' 
'-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2
D [25/Mar/2006:23:37:55 +0000] [Job 7] **** Unable to open the initial 
device, quitting.
D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer return value: 1
D [25/Mar/2006:23:37:55 +0000] [Job 7] renderer received signal: 1
D [25/Mar/2006:23:37:55 +0000] [Job 7] tail process done writing data to 
STDOUT
D [25/Mar/2006:23:37:55 +0000] [Job 7] KID4 exited with status 0
D [25/Mar/2006:23:37:55 +0000] [Job 7] KID3 exited with status 3
D [25/Mar/2006:23:37:55 +0000] [Job 7] Renderer exit stat: 3
D [25/Mar/2006:23:37:55 +0000] [Job 7] KID4 finished
D [25/Mar/2006:23:37:55 +0000] [Job 7] Process dying with "Possible 
error on renderer command line or PostScript error. Check options.", 
exit stat: 3
D [25/Mar/2006:23:37:55 +0000] [Job 7] error: No such file or directory (2)
D [25/Mar/2006:23:37:55 +0000] [Job 7] Possible error on renderer 
command line or PostScript error. Check options.
D [25/Mar/2006:23:37:55 +0000] [Job 7] Renderer process finished
D [25/Mar/2006:23:37:55 +0000] [Job 7] Killing process 20688 (KID3)
D [25/Mar/2006:23:37:55 +0000] [Job 7] Process dying with "Error closing 
renderer", exit stat: 3
D [25/Mar/2006:23:37:55 +0000] [Job 7] error: No such file or directory (2)
D [25/Mar/2006:23:37:55 +0000] [Job 7] Error closing renderer
E [25/Mar/2006:23:37:55 +0000] PID 20686 stopped with status 3!
D [25/Mar/2006:23:37:55 +0000] UpdateJob: job 7, file 0 is complete.
D [25/Mar/2006:23:37:55 +0000] CancelJob: id = 7
D [25/Mar/2006:23:37:55 +0000] StopJob: id = 7, force = 0
D [25/Mar/2006:23:37:55 +0000] StopJob: printer state is 3
I [25/Mar/2006:23:42:34 +0000] Scheduler shutting down normally.
D [25/Mar/2006:23:42:34 +0000] StopListening: closing all listen sockets.
D [25/Mar/2006:23:42:34 +0000] PauseListening: clearing input bits...

what is the problem?

Best Regards,

Carlos Silva, CSilva
Web: http://www.csilva.org/



Jin Guojun [VFFS] escreveu:
> This helps a little bit, but not every printing jobs.
> If you just need to print text to this printer via CUPS,
> you do not need any filter or (may not need a pdd either,
> but I need to verify it). By default, CUPS convert text to postscript,
> then to printer coded file via a proper pdd filter.
>
> That you got errors may be because your printer probably received
> a postscript coded file or even further converted to some common HP
> coded file, which may not suitable for every HP printer.
>
> To remove a text filter, either change /usr/local/etc/cups/mime.convs
> something like
>    application/vnd.cups-text 0 texttops
> to
>    application/vnd.cups-text 0 -
> "-" means do nothing;
>
> or change /usr/local/libexec/cups/filter/texttops
> mv texttops text2ps
> echo "cat -" > texttops
> chmod +x texttops
>
> If this works, this only fixes your text print problem. You may still 
> not be
> able to print other files, such graphics or postscript files.
> You need to find a proper filter for this printer, maybe try it via
>    "gs -sDEVICE=ijs --sOutputFile=/tmp/test  A_POSTSCRIPT_FILE"
> or other filters (in -sDEVICE= line) to convert a postscript file to 
> /tmp/test file,
> and try to print /tmp/test file to your printer via lpr command.
> If you can find a working filter in gs, then find a match filter in CUPS.
> Then reverse the change made above back, and install proper pdd for CUPS.
>
> Best regards,
>
>    -Jin
>
> Carlos Silva wrote:
>
>> hi,
>>
>> I have printed a plain text file with lpr..
>> And, as I said I have a ppd from hpijs, footmatic, etc packages...
>>
>> Best Regards,
>>
>> Carlos Silva, CSilva
>> Web: http://www.csilva.org/
>>
>>
>>
>> Jin Guojun [VFFS] escreveu:
>>
>>> Carlos Silva wrote:
>>>
>>>> No, but i'll try this.
>>>>
>>>> I don't understand why lpr prints and cups not :(
>>>
>>>
>>> It is not clear how you printed via lpr. Unless you have a postscript
>>> (with .ps files) or plain text (for text only) printer, lpr will not 
>>> print
>>> correctly except printing some garbages.
>>>
>>> If you used gs to convert .ps files to hp 1115 coded files, then you
>>> may use "lpr" command to print. Is this the way you printed?
>>> If so, the DeviceFILTER you used in gs option
>>>    -sDEVICE=DeviceFILTER
>>> indicates the printer driver you need to use for CUPS. If CUPS has
>>> no related filter, then you need to write a filter/PDD file to invoke
>>> gs to do the conversion job for CUPS to print.
>>> It needs some work, but it is not too bad.
>>>
>>> I have a MFC 420n printer, I could not find a filter in either gs
>>> or CUPS, so I cannot use this printer under Unix/FreeBSD via
>>> lpr or CUPS :-)
>>>
>>> Since you said that you can print via lpr, then you should be able
>>> to print via CUPS. Just need a more clear picture on how you printed
>>> by using lpr.
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442F1EE3.8050904>