Re: [Printing-architecture] high delay while printing

Douglas Kosovic <[email protected]> Mon, 11 Dec 2023 09:31:31 +0000
Newsgroups dev.linux.lists.printing-architecture
Message-ID <SYBP282MB2617F6C75059D1A92D933283878FA@SYBP282MB2617.AUSP282.PROD.OUTLOOK.COM>
Hi Stefan,

The rationale for giving Apple Raster (URF) priority over PDF (by increasing the PDF conversion cost to 200 like it was in your original PPD file) for the driverless PPD generator can be found in this issue :

https://github.com/OpenPrinting/cups-filters/issues/331

Although Apple Raster (URF) should not be computationally intensive for the printer, I suspect if color is involved in combination with some setting, possibly an "auto" setting that causes some printers to do computationally intensive processing for each URF page as if each were a new print job, which for some reason doesn't happen with PDF. Something like the following issue:

https://help.brother-usa.com/app/answers/detail/a_id/145199/~/machine-pauses-between-printed-pages---windows-or-macintosh

Sorry I'm only speculating, not really sure what is happening, but glad to hear switching to PDF solved your issue.



Cheers,
Doug

-----Original Message-----
From: Printing-architecture <[email protected]> On Behalf Of Stefan K via Printing-architecture
Sent: Monday, December 11, 2023 5:35 PM
To: [email protected]
Subject: Re: [Printing-architecture] high delay while printing

Hello Doug,

sorry for the late response.

Thank you very much for your help!
Now it works like a charm.

But I still don't get it.. You said URF is prioritized, and will be rendered by cups, but why is it so slow? It's a potent VM with two cores.

best regards
Stefan

> Gesendet: Dienstag, 05. Dezember 2023 um 11:03 Uhr
> Von: "Douglas Kosovic" <[email protected]>
> An: "Stefan K" <[email protected]>, 
> "[email protected]" 
> <[email protected]>
> Betreff: RE: [Printing-architecture] high delay while printing
>
> Hi Stefan,
>
> You could try changing the following two lines in that PPD :
>
>     *cupsFilter2: "application/vnd.cups-pdf application/pdf 200 -"
>     *cupsFilter2: "image/urf image/urf 0 -"
>
> to:
>
>     *cupsFilter2: "application/vnd.cups-pdf application/pdf 10 -"
>     *cupsFilter2: "image/urf image/urf 100 -"
>
> So that PDF rather than URF raster is preferred to be sent to the printer.
>
> After making changes to the PPD file, you'll need to restart the CUPS server for the changes to take effect.
>
> The driverless PPD generator prioritises URF raster over PDF as many entry level printers have low spec CPUs which can be slow for rasterizing PDF, so pre-rasterized URF is sent instead.
>
> The IPP Everywhere PPD generator prioritises PDF over URF raster, the suggested modifications above is what the IPP Everywhere PPD generator generates.
>
>
>
> Cheers,
> Doug
>
> -----Original Message-----
> From: Printing-architecture 
> <[email protected]> On Behalf 
> Of Stefan K
> Sent: Wednesday, November 29, 2023 7:23 PM
> To: [email protected]
> Subject: Re: [Printing-architecture] high delay while printing
>
> Hi Till,
>
> thanks for your reply, I've attached the logs and PPD file.
>
> best regards
> Stefan
>
> > Gesendet: Dienstag, 28. November 2023 um 19:13 Uhr
> > Von: "Till Kamppeter" <[email protected]>
> > An: [email protected]
> > Betreff: Re: [Printing-architecture] high delay while printing
> >
> > On 28/11/2023 17:59, Stefan K wrote:
> > > Hello guys,
> > >
> > > I hope someone can help me with my problem because I'm a little bit frustrated and I don't have absolutely no clue how to fix that.
> > >
> > > I have a Debian 12 based print server running, all printers are connected via IPP which works so far but it takes a while if we start printing multiple pages and then for each page, it takes >15s for the next page. It doesn't matter if we print PDF or simple text files.
> > >
> > > For me, it looks like that cups is waiting until the printer says 
> > > "I'm done". According to the Documentation I tried 
> > > ?waitjob=false&waitprinter=false at the end of the deviceURI and 
> > > restart cups, but it's still the same. This happens on different 
> > > types of printers eg. HP PageWide Pro 477dw MFP or Kyocera 
> > > TASKalfa 4052ci
> > >
> > > I can attach the error_log with debug information.
> > >
> >
> > Please do so, and also attach the PPD file of the print queue (from 
> > /etc/cups/ppd/).
> >
> >     Till