[cups] adding delay between print job.

Dil Lee dillee1 at gmail.com
Wed Dec 2 19:21:09 PST 2015


the /usr/lib/cups/filter/wait script

#!/usr/bin/bash
# wait time in seconds
sleep 30;


On 12/3/15, Dil Lee <dillee1 at gmail.com> wrote:
> snippet of the altered ppd file
>
> *FormatVersion: "4.3"
> *FileVersion: "1.5"
> *LanguageVersion: English
> *LanguageEncoding: ISOLatin1
> *PCFileName: "generic.ppd"
> *Product: "(PostScript Printer)"
> *Manufacturer: "Generic"
> *ModelName: "Generic PostScript Printer"
> *ShortNickName: "Generic PostScript Printer"
> *NickName: "Generic PostScript Printer"
> *PSVersion: "(2016.0) 0"
> *LanguageLevel: "2"
> *ColorDevice: True
> *cupsFilter: "application/vnd.cups-postscript  0  wait“
>         <=== added line
> *DefaultColorSpace: RGB
> *FileSystem: False
> *Throughput: "8"
> *LandscapeOrientation: Plus90
> *TTRasterizer: Type42
> *% Driver-defined attributes...
> *1284DeviceID: "CMD:PS;"
> *cupsBackSide: "Normal"
> *cupsLanguages: "en"
> *UIConstraints: *Duplex *Option1 False
> *UIConstraints: *Option1 False *Duplex
> *OpenUI *PageSize/Media Size: PickOne
> *OrderDependency: 10 AnySetup *PageSize
> *DefaultPageSize: A4
>
>
> On 12/3/15, Dil Lee <dillee1 at gmail.com> wrote:
>> Sorry for late reply. Took a while before new toner arrive.
>> 1) I tested the IPP protocol eqv. (IPP seems to work better than
>> socket:// somehow).
>> http://129.1.1.10:631/ipp/?waitjob=true&waitprinter=true
>>
>> The printer still sporadically receive multiple jobs from CUPS
>> *simultaneously*. So that wait mechanism doesn't seems to work
>> properly.
>>
>> 2) Does the filter script has to be perl? Cause there is no perl on
>> this machine I make a bash eqv. CUPS does seems to run the wait
>> script, but when the processing finish the job disappears and never
>> sent to printer. (new jobs never visible on the job queue of the
>> printer's management webpage).
>> Thank you.
>> DIL
>>
>> On 11/27/15, Dil Lee <dillee1 at gmail.com> wrote:
>>> Thanks a lot. Will post back result later. Happen to run out of toner
>>> now.
>>> *DUH*
>>> Regards,
>>> DIL
>>>
>>> On 11/27/15, Helge Blischke <helgeblischke at web.de> wrote:
>>>> Change the deviceURI to
>>>> socket://129:1.1.10?waiteof=true <socket://129:1.1.10?waiteof=true>
>>>>
>>>> If that does not solve the problem (it should be the default as shown
>>>> by
>>>> the
>>>> sources),
>>>> write a little filter (here a Perl script):
>>>>
>>>> —— snip ——
>>>> #!/usr/bin/perl -w
>>>> # modify the following as for your needs
>>>> $wait_at_endofjob = 5;		# wait time in seconds
>>>> sleep $wait_at_endofjob;
>>>> —— snip ——
>>>>
>>>> put it into /usr/lib/cups/filter/wait
>>>>
>>>> and insert into the printer’s PPD near the "*ColorDevice“ keyword
>>>> the line
>>>> *cupsFilter: "application/vnd.cups-postscript  0  wait“
>>>>
>>>> and restart cups.
>>>>
>>>> Let me know which of the suggestions works.
>>>>
>>>> Helge
>>>>
>>>>> Am 27.11.2015 um 05:08 schrieb Dil Lee <dillee1 at gmail.com>:
>>>>>
>>>>> printers.conf autodiscovered/generated by cups
>>>>>
>>>>> <Printer FUJI_XEROX_DocuPrint_CM225_228_fw_01>
>>>>> UUID urn:uuid:c12b6830-f492-3cc7-4160-ae5569c18c3b
>>>>> Info FUJI XEROX DocuPrint CM225/228 fw
>>>>> Location ho
>>>>> MakeModel Generic PostScript Printer
>>>>> DeviceURI socket://129.1.1.10
>>>>> State Idle
>>>>> StateTime 1448591763
>>>>> Type 8400972
>>>>> Accepting Yes
>>>>> Shared Yes
>>>>> JobSheets none none
>>>>> QuotaPeriod 0
>>>>> PageLimit 0
>>>>> KLimit 0
>>>>> OpPolicy default
>>>>> ErrorPolicy stop-printer
>>>>> Attribute marker-colors \#00FFFF,#FF00FF,#FFFF00,#000000
>>>>> Attribute marker-levels 6,16,27,35
>>>>> Attribute marker-names Cyan Toner Cartridge,Magenta Toner
>>>>> Cartridge,Yellow Toner Cartridge,Black Toner Cartridge
>>>>> Attribute marker-types toner,toner,toner,toner
>>>>> Attribute marker-change-time 1448591761
>>>>> </Printer>
>>>>>
>>>>>
>>>>>
>>>>> On 11/27/15, Helge Blischke <helgeblischke at web.de> wrote:
>>>>>> Before I do any suggestions, please tell how the printer is connected
>>>>>> to your print server and what PDL you use.
>>>>>>
>>>>>>> Am 26.11.2015 um 16:40 schrieb Dil Lee <dillee1 at gmail.com>:
>>>>>>>
>>>>>>> Hi,
>>>>>>> I have a Fuji-Xerox CM225fw connected to CUPS 1.6.3.
>>>>>>> TLDR I think CUPS is sending new jobs to it before it is fully
>>>>>>> ready.
>>>>>>> Is there a way to artificially add some wait period between print
>>>>>>> jobs?
>>>>>>> Thank you for your attention.
>>>>>>> Dil
>>>>>>> _______________________________________________
>>>>>>> cups mailing list
>>>>>>> cups at cups.org
>>>>>>> https://www.cups.org/mailman/listinfo/cups
>>>>>>
>>>>>> _______________________________________________
>>>>>> cups mailing list
>>>>>> cups at cups.org
>>>>>> https://www.cups.org/mailman/listinfo/cups
>>>>>>
>>>>> _______________________________________________
>>>>> cups mailing list
>>>>> cups at cups.org
>>>>> https://www.cups.org/mailman/listinfo/cups
>>>>
>>>> _______________________________________________
>>>> cups mailing list
>>>> cups at cups.org
>>>> https://www.cups.org/mailman/listinfo/cups
>>>>
>>>
>>
>



More information about the cups mailing list