Why is there a 10 second delay when printing on Ubuntu Server 10.04? The 2019 Stack Overflow Developer Survey Results Are InWhere is This Mystery Print Job Hiding?Let Mac users unclog print queuesPrinter Won't Print! Long and weird sagaMacs not printing to new printer via Windows 2008 R2 Print ServerLocal printing from Citrix, job is paused and sends 128KB on each resumePrinting fails after first print with Centos 6 and HP LaserJet P3015dn printerCan we improve printing spooling speeds in our high volume printing environment?Ubuntu 10.04 server delay when POST to mySQLCUPS Printing: Is there a way to get total page count when print job beginWindows Terminal Server printer selection dialog delayed in Microsoft Office

Is it safe to harvest rainwater that fell on solar panels?

Why doesn't shell automatically fix "useless use of cat"?

The phrase "to the numbers born"?

How much of the clove should I use when using big garlic heads?

Cooking pasta in a water boiler

Is there a way to generate a uniformly distributed point on a sphere from a fixed amount of random real numbers?

A word that means fill it to the required quantity

What is the most efficient way to store a numeric range?

Falsification in Math vs Science

Worn-tile Scrabble

How to translate "being like"?

How do PCB vias affect signal quality?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

What do I do when my TA workload is more than expected?

How to quickly solve partial fractions equation?

Dropping list elements from nested list after evaluation

"as much details as you can remember"

Getting crown tickets for Statue of Liberty

Correct punctuation for showing a character's confusion

What is the meaning of Triage in Cybersec world?

How can I have a shield and a way of attacking with a ranged weapon at the same time?

Match Roman Numerals

Alternative to の

Deal with toxic manager when you can't quit



Why is there a 10 second delay when printing on Ubuntu Server 10.04?



The 2019 Stack Overflow Developer Survey Results Are InWhere is This Mystery Print Job Hiding?Let Mac users unclog print queuesPrinter Won't Print! Long and weird sagaMacs not printing to new printer via Windows 2008 R2 Print ServerLocal printing from Citrix, job is paused and sends 128KB on each resumePrinting fails after first print with Centos 6 and HP LaserJet P3015dn printerCan we improve printing spooling speeds in our high volume printing environment?Ubuntu 10.04 server delay when POST to mySQLCUPS Printing: Is there a way to get total page count when print job beginWindows Terminal Server printer selection dialog delayed in Microsoft Office



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















I've seen tons of posts asking this and similar questions on various forums, but no one seems to be able to provide a solution.



The basic problem goes like this:




Printing worked fine on [Insert Old Version of Linux Distro], but after updating to [Newer version of Linux Distro], there's now a [5,10,15] second delay between sending a file to the print cue and when the printer actually starts printing.




In my particular case, printing started immediately on Ubuntu 8.04, but after upgrading to 10.04, has a 10 second delay. I'm doing this on Ubuntu Server, printing with the lpr command, but the problem is present on 10.04 desktop as well. From what I've read, it also affects newer versions of MOST linux distros. Fedora, OpenSUSE, Arch, etc.



The printers are all network printers. Printing from Windows is also immediate. The light on the printer starts blinking immediately, but nothing comes out for 10-15 seconds.



Ubuntu 10.04 uses CUPS 1.4.3. I thought it might be a bug in CUPS, so I compiled CUPS 1.4.5 (latest stable) to replace Ubuntu's 1.4.3. But there's still a delay.



Any idea what might be causing this? Or a way to troubleshoot the problem to figure out what's causing it?




UPDATE: I set loglevel to debug and got about 660 lines of output in my log for a single job. The test file I sent took 10 seconds from the time it was added to the cue to when it came out.



I won't post the whole thing here (unless you really want it!), but here's the highlights:



The job is cued and a bunch of things happen in that same second. The last line for that second is:



D [28/Nov/2010:14:44:19 -0500]
Discarding unused printer-state-changed event...


The next log line occurs a full 4 seconds later:



D [28/Nov/2010:14:44:23 -0500]
[Job 3071] prtGeneralCurrentLocalization type is 0, expected 2!


So we have a 4 second delay here for some reason.



1 second latter we get:




D [28/Nov/2010:14:44:23 -0500] PID 15448 (/usr/lib/cups/filter/pdftoraster) exited with no errors.
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Read 8192 bytes of print data...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 57% complete...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 59% complete...
D [28/Nov/2010:14:44:24 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:24 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 60% complete...


Which repeats until:




I [28/Nov/2010:14:44:26 -0500] [Job 3071] Printing page 1, 99% complete...
D [28/Nov/2010:14:44:26 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:26 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:26 -0500] [Job 3071] Ready to print.


Then it goes on to:




D [28/Nov/2010:14:44:26 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:26 -0500] [Job 3071] Read 8192 bytes of print data...


Over and over again until:




D [28/Nov/2010:14:44:29 -0500] [Job 3071] Read 3361 bytes of print data...
D [28/Nov/2010:14:44:29 -0500] [Job 3071] Wrote 3361 bytes of print data...
I [28/Nov/2010:14:44:29 -0500] [Job 3071] Print file sent, waiting for printer to finish...


Which is the point at which the printer actually starts producing output. A full 10 seconds later.










share|improve this question
























  • If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

    – pjz
    Dec 7 '10 at 16:08












  • Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

    – Nick
    Feb 18 '11 at 7:10

















5















I've seen tons of posts asking this and similar questions on various forums, but no one seems to be able to provide a solution.



The basic problem goes like this:




Printing worked fine on [Insert Old Version of Linux Distro], but after updating to [Newer version of Linux Distro], there's now a [5,10,15] second delay between sending a file to the print cue and when the printer actually starts printing.




In my particular case, printing started immediately on Ubuntu 8.04, but after upgrading to 10.04, has a 10 second delay. I'm doing this on Ubuntu Server, printing with the lpr command, but the problem is present on 10.04 desktop as well. From what I've read, it also affects newer versions of MOST linux distros. Fedora, OpenSUSE, Arch, etc.



The printers are all network printers. Printing from Windows is also immediate. The light on the printer starts blinking immediately, but nothing comes out for 10-15 seconds.



Ubuntu 10.04 uses CUPS 1.4.3. I thought it might be a bug in CUPS, so I compiled CUPS 1.4.5 (latest stable) to replace Ubuntu's 1.4.3. But there's still a delay.



Any idea what might be causing this? Or a way to troubleshoot the problem to figure out what's causing it?




UPDATE: I set loglevel to debug and got about 660 lines of output in my log for a single job. The test file I sent took 10 seconds from the time it was added to the cue to when it came out.



I won't post the whole thing here (unless you really want it!), but here's the highlights:



The job is cued and a bunch of things happen in that same second. The last line for that second is:



D [28/Nov/2010:14:44:19 -0500]
Discarding unused printer-state-changed event...


The next log line occurs a full 4 seconds later:



D [28/Nov/2010:14:44:23 -0500]
[Job 3071] prtGeneralCurrentLocalization type is 0, expected 2!


So we have a 4 second delay here for some reason.



1 second latter we get:




D [28/Nov/2010:14:44:23 -0500] PID 15448 (/usr/lib/cups/filter/pdftoraster) exited with no errors.
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Read 8192 bytes of print data...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 57% complete...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 59% complete...
D [28/Nov/2010:14:44:24 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:24 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 60% complete...


Which repeats until:




I [28/Nov/2010:14:44:26 -0500] [Job 3071] Printing page 1, 99% complete...
D [28/Nov/2010:14:44:26 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:26 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:26 -0500] [Job 3071] Ready to print.


Then it goes on to:




D [28/Nov/2010:14:44:26 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:26 -0500] [Job 3071] Read 8192 bytes of print data...


Over and over again until:




D [28/Nov/2010:14:44:29 -0500] [Job 3071] Read 3361 bytes of print data...
D [28/Nov/2010:14:44:29 -0500] [Job 3071] Wrote 3361 bytes of print data...
I [28/Nov/2010:14:44:29 -0500] [Job 3071] Print file sent, waiting for printer to finish...


Which is the point at which the printer actually starts producing output. A full 10 seconds later.










share|improve this question
























  • If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

    – pjz
    Dec 7 '10 at 16:08












  • Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

    – Nick
    Feb 18 '11 at 7:10













5












5








5


1






I've seen tons of posts asking this and similar questions on various forums, but no one seems to be able to provide a solution.



The basic problem goes like this:




Printing worked fine on [Insert Old Version of Linux Distro], but after updating to [Newer version of Linux Distro], there's now a [5,10,15] second delay between sending a file to the print cue and when the printer actually starts printing.




In my particular case, printing started immediately on Ubuntu 8.04, but after upgrading to 10.04, has a 10 second delay. I'm doing this on Ubuntu Server, printing with the lpr command, but the problem is present on 10.04 desktop as well. From what I've read, it also affects newer versions of MOST linux distros. Fedora, OpenSUSE, Arch, etc.



The printers are all network printers. Printing from Windows is also immediate. The light on the printer starts blinking immediately, but nothing comes out for 10-15 seconds.



Ubuntu 10.04 uses CUPS 1.4.3. I thought it might be a bug in CUPS, so I compiled CUPS 1.4.5 (latest stable) to replace Ubuntu's 1.4.3. But there's still a delay.



Any idea what might be causing this? Or a way to troubleshoot the problem to figure out what's causing it?




UPDATE: I set loglevel to debug and got about 660 lines of output in my log for a single job. The test file I sent took 10 seconds from the time it was added to the cue to when it came out.



I won't post the whole thing here (unless you really want it!), but here's the highlights:



The job is cued and a bunch of things happen in that same second. The last line for that second is:



D [28/Nov/2010:14:44:19 -0500]
Discarding unused printer-state-changed event...


The next log line occurs a full 4 seconds later:



D [28/Nov/2010:14:44:23 -0500]
[Job 3071] prtGeneralCurrentLocalization type is 0, expected 2!


So we have a 4 second delay here for some reason.



1 second latter we get:




D [28/Nov/2010:14:44:23 -0500] PID 15448 (/usr/lib/cups/filter/pdftoraster) exited with no errors.
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Read 8192 bytes of print data...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 57% complete...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 59% complete...
D [28/Nov/2010:14:44:24 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:24 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 60% complete...


Which repeats until:




I [28/Nov/2010:14:44:26 -0500] [Job 3071] Printing page 1, 99% complete...
D [28/Nov/2010:14:44:26 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:26 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:26 -0500] [Job 3071] Ready to print.


Then it goes on to:




D [28/Nov/2010:14:44:26 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:26 -0500] [Job 3071] Read 8192 bytes of print data...


Over and over again until:




D [28/Nov/2010:14:44:29 -0500] [Job 3071] Read 3361 bytes of print data...
D [28/Nov/2010:14:44:29 -0500] [Job 3071] Wrote 3361 bytes of print data...
I [28/Nov/2010:14:44:29 -0500] [Job 3071] Print file sent, waiting for printer to finish...


Which is the point at which the printer actually starts producing output. A full 10 seconds later.










share|improve this question
















I've seen tons of posts asking this and similar questions on various forums, but no one seems to be able to provide a solution.



The basic problem goes like this:




Printing worked fine on [Insert Old Version of Linux Distro], but after updating to [Newer version of Linux Distro], there's now a [5,10,15] second delay between sending a file to the print cue and when the printer actually starts printing.




In my particular case, printing started immediately on Ubuntu 8.04, but after upgrading to 10.04, has a 10 second delay. I'm doing this on Ubuntu Server, printing with the lpr command, but the problem is present on 10.04 desktop as well. From what I've read, it also affects newer versions of MOST linux distros. Fedora, OpenSUSE, Arch, etc.



The printers are all network printers. Printing from Windows is also immediate. The light on the printer starts blinking immediately, but nothing comes out for 10-15 seconds.



Ubuntu 10.04 uses CUPS 1.4.3. I thought it might be a bug in CUPS, so I compiled CUPS 1.4.5 (latest stable) to replace Ubuntu's 1.4.3. But there's still a delay.



Any idea what might be causing this? Or a way to troubleshoot the problem to figure out what's causing it?




UPDATE: I set loglevel to debug and got about 660 lines of output in my log for a single job. The test file I sent took 10 seconds from the time it was added to the cue to when it came out.



I won't post the whole thing here (unless you really want it!), but here's the highlights:



The job is cued and a bunch of things happen in that same second. The last line for that second is:



D [28/Nov/2010:14:44:19 -0500]
Discarding unused printer-state-changed event...


The next log line occurs a full 4 seconds later:



D [28/Nov/2010:14:44:23 -0500]
[Job 3071] prtGeneralCurrentLocalization type is 0, expected 2!


So we have a 4 second delay here for some reason.



1 second latter we get:




D [28/Nov/2010:14:44:23 -0500] PID 15448 (/usr/lib/cups/filter/pdftoraster) exited with no errors.
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:24 -0500] [Job 3071] Read 8192 bytes of print data...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 57% complete...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 59% complete...
D [28/Nov/2010:14:44:24 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:24 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:24 -0500] [Job 3071] Printing page 1, 60% complete...


Which repeats until:




I [28/Nov/2010:14:44:26 -0500] [Job 3071] Printing page 1, 99% complete...
D [28/Nov/2010:14:44:26 -0500] Discarding unused job-progress event...
D [28/Nov/2010:14:44:26 -0500] Discarding unused printer-state-changed event...
I [28/Nov/2010:14:44:26 -0500] [Job 3071] Ready to print.


Then it goes on to:




D [28/Nov/2010:14:44:26 -0500] [Job 3071] Wrote 8192 bytes of print data...
D [28/Nov/2010:14:44:26 -0500] [Job 3071] Read 8192 bytes of print data...


Over and over again until:




D [28/Nov/2010:14:44:29 -0500] [Job 3071] Read 3361 bytes of print data...
D [28/Nov/2010:14:44:29 -0500] [Job 3071] Wrote 3361 bytes of print data...
I [28/Nov/2010:14:44:29 -0500] [Job 3071] Print file sent, waiting for printer to finish...


Which is the point at which the printer actually starts producing output. A full 10 seconds later.







linux ubuntu cups printing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 '10 at 19:59







Nick

















asked Nov 28 '10 at 18:00









NickNick

2,053245984




2,053245984












  • If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

    – pjz
    Dec 7 '10 at 16:08












  • Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

    – Nick
    Feb 18 '11 at 7:10

















  • If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

    – pjz
    Dec 7 '10 at 16:08












  • Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

    – Nick
    Feb 18 '11 at 7:10
















If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

– pjz
Dec 7 '10 at 16:08






If you queue two jobs simultaneously, does the second job have an additional 10-15s wait? or does it come out immediately after the first?

– pjz
Dec 7 '10 at 16:08














Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

– Nick
Feb 18 '11 at 7:10





Each job has the delay. I've managed to shave 4 seconds off via a comment from one of the CUPS devs on the official mailing list. I'll post his answer below.

– Nick
Feb 18 '11 at 7:10










4 Answers
4






active

oldest

votes


















3














I experience some of the same. I'm not sure if this is the same problem as you, but we experince that with receipt-printers, some of them suddenly started having a 4 seconds delay when printing, while others came straight away.



This was after an Cups upgrade (Slackware linux).



After a lot of debugging, we have found that the printers supporting SNMP doesn't have the delay, while printers not supporting SNMP does have the delay.



It seems cups, after the upgrade, is trying to fetch info from the printer by SNMP before sending the actual printjob.



I'm now looking for a way to disable this feature... Will try to write back if I find a solution.



I should mention that we are using raw/socket connection to these printers. I see RedHat has a reported bug about this, but I'm not allowed to view it (BZ#709896)



I can't really find out how I can disable the SNMP-communication in Cups. :






share|improve this answer




















  • 1





    Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

    – user127222
    Jul 5 '12 at 13:31



















1














I would suggest looking at the following post in ubuntuforums, as they seem to have a communication issue with the printer too.



http://ubuntuforums.org/showthread.php?t=1101273



hope that helps,
RayQuang






share|improve this answer























  • I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

    – Nick
    Feb 18 '11 at 7:08


















1














I have same experience with user127222. For some printers with no SNMP supported, the print jobs will have 4 seconds delay. After study those code in CUPS:



 if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")))

ppdClose(ppd);
return;



I find that I could disable these SNMP requests by updating PPD file for that printer.
Using:



*cupsSNMPSupplies: False


Ref: CUPS PPD Extensions






share|improve this answer






























    1














    A potential unrelated answer to your question but was certainly the answer to my question was for a local USB thermal printer -- why was it causing a delay of 5 seconds between prints.



    The solution turned out to be that not all USB printers should be setup as bi-directional communication like CUPS wants to do. So setting up a "quirk" for the printer in the /usr/share/cups/usb area of cups to include the specific printer "ID"and setting flags such as "unidir" "no-reattach" "soft-reset" seemed to entirely fix the issue for me. Hopefully anyone looking for the same issue can save a few hours debugging into the cups code to understand what was obvious once i keyed in on the debug output that said it was waiting for the USB read thread to exit (apparently 5 seconds).






    share|improve this answer








    New contributor




    Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "2"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f206751%2fwhy-is-there-a-10-second-delay-when-printing-on-ubuntu-server-10-04%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      I experience some of the same. I'm not sure if this is the same problem as you, but we experince that with receipt-printers, some of them suddenly started having a 4 seconds delay when printing, while others came straight away.



      This was after an Cups upgrade (Slackware linux).



      After a lot of debugging, we have found that the printers supporting SNMP doesn't have the delay, while printers not supporting SNMP does have the delay.



      It seems cups, after the upgrade, is trying to fetch info from the printer by SNMP before sending the actual printjob.



      I'm now looking for a way to disable this feature... Will try to write back if I find a solution.



      I should mention that we are using raw/socket connection to these printers. I see RedHat has a reported bug about this, but I'm not allowed to view it (BZ#709896)



      I can't really find out how I can disable the SNMP-communication in Cups. :






      share|improve this answer




















      • 1





        Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

        – user127222
        Jul 5 '12 at 13:31
















      3














      I experience some of the same. I'm not sure if this is the same problem as you, but we experince that with receipt-printers, some of them suddenly started having a 4 seconds delay when printing, while others came straight away.



      This was after an Cups upgrade (Slackware linux).



      After a lot of debugging, we have found that the printers supporting SNMP doesn't have the delay, while printers not supporting SNMP does have the delay.



      It seems cups, after the upgrade, is trying to fetch info from the printer by SNMP before sending the actual printjob.



      I'm now looking for a way to disable this feature... Will try to write back if I find a solution.



      I should mention that we are using raw/socket connection to these printers. I see RedHat has a reported bug about this, but I'm not allowed to view it (BZ#709896)



      I can't really find out how I can disable the SNMP-communication in Cups. :






      share|improve this answer




















      • 1





        Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

        – user127222
        Jul 5 '12 at 13:31














      3












      3








      3







      I experience some of the same. I'm not sure if this is the same problem as you, but we experince that with receipt-printers, some of them suddenly started having a 4 seconds delay when printing, while others came straight away.



      This was after an Cups upgrade (Slackware linux).



      After a lot of debugging, we have found that the printers supporting SNMP doesn't have the delay, while printers not supporting SNMP does have the delay.



      It seems cups, after the upgrade, is trying to fetch info from the printer by SNMP before sending the actual printjob.



      I'm now looking for a way to disable this feature... Will try to write back if I find a solution.



      I should mention that we are using raw/socket connection to these printers. I see RedHat has a reported bug about this, but I'm not allowed to view it (BZ#709896)



      I can't really find out how I can disable the SNMP-communication in Cups. :






      share|improve this answer















      I experience some of the same. I'm not sure if this is the same problem as you, but we experince that with receipt-printers, some of them suddenly started having a 4 seconds delay when printing, while others came straight away.



      This was after an Cups upgrade (Slackware linux).



      After a lot of debugging, we have found that the printers supporting SNMP doesn't have the delay, while printers not supporting SNMP does have the delay.



      It seems cups, after the upgrade, is trying to fetch info from the printer by SNMP before sending the actual printjob.



      I'm now looking for a way to disable this feature... Will try to write back if I find a solution.



      I should mention that we are using raw/socket connection to these printers. I see RedHat has a reported bug about this, but I'm not allowed to view it (BZ#709896)



      I can't really find out how I can disable the SNMP-communication in Cups. :







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jul 5 '12 at 21:21









      mgorven

      26.4k755108




      26.4k755108










      answered Jul 5 '12 at 13:22









      user127222user127222

      313




      313







      • 1





        Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

        – user127222
        Jul 5 '12 at 13:31













      • 1





        Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

        – user127222
        Jul 5 '12 at 13:31








      1




      1





      Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

      – user127222
      Jul 5 '12 at 13:31






      Ah, I found the solution to our problem! cups.org/str.php?L3809 We need to upgrade from Cups 1.4.6 to at least Cups 1.4.7 !

      – user127222
      Jul 5 '12 at 13:31














      1














      I would suggest looking at the following post in ubuntuforums, as they seem to have a communication issue with the printer too.



      http://ubuntuforums.org/showthread.php?t=1101273



      hope that helps,
      RayQuang






      share|improve this answer























      • I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

        – Nick
        Feb 18 '11 at 7:08















      1














      I would suggest looking at the following post in ubuntuforums, as they seem to have a communication issue with the printer too.



      http://ubuntuforums.org/showthread.php?t=1101273



      hope that helps,
      RayQuang






      share|improve this answer























      • I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

        – Nick
        Feb 18 '11 at 7:08













      1












      1








      1







      I would suggest looking at the following post in ubuntuforums, as they seem to have a communication issue with the printer too.



      http://ubuntuforums.org/showthread.php?t=1101273



      hope that helps,
      RayQuang






      share|improve this answer













      I would suggest looking at the following post in ubuntuforums, as they seem to have a communication issue with the printer too.



      http://ubuntuforums.org/showthread.php?t=1101273



      hope that helps,
      RayQuang







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Dec 14 '10 at 13:28









      RayQuangRayQuang

      5591616




      5591616












      • I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

        – Nick
        Feb 18 '11 at 7:08

















      • I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

        – Nick
        Feb 18 '11 at 7:08
















      I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

      – Nick
      Feb 18 '11 at 7:08





      I think that's an issue with delay between pages? And I can't use a generic printer since my problem printer is a 4x6 thermal laser. It won't work correctly with a generic .ppd.

      – Nick
      Feb 18 '11 at 7:08











      1














      I have same experience with user127222. For some printers with no SNMP supported, the print jobs will have 4 seconds delay. After study those code in CUPS:



       if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
      ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
      ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")))

      ppdClose(ppd);
      return;



      I find that I could disable these SNMP requests by updating PPD file for that printer.
      Using:



      *cupsSNMPSupplies: False


      Ref: CUPS PPD Extensions






      share|improve this answer



























        1














        I have same experience with user127222. For some printers with no SNMP supported, the print jobs will have 4 seconds delay. After study those code in CUPS:



         if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
        ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
        ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")))

        ppdClose(ppd);
        return;



        I find that I could disable these SNMP requests by updating PPD file for that printer.
        Using:



        *cupsSNMPSupplies: False


        Ref: CUPS PPD Extensions






        share|improve this answer

























          1












          1








          1







          I have same experience with user127222. For some printers with no SNMP supported, the print jobs will have 4 seconds delay. After study those code in CUPS:



           if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
          ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
          ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")))

          ppdClose(ppd);
          return;



          I find that I could disable these SNMP requests by updating PPD file for that printer.
          Using:



          *cupsSNMPSupplies: False


          Ref: CUPS PPD Extensions






          share|improve this answer













          I have same experience with user127222. For some printers with no SNMP supported, the print jobs will have 4 seconds delay. After study those code in CUPS:



           if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL ||
          ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL &&
          ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")))

          ppdClose(ppd);
          return;



          I find that I could disable these SNMP requests by updating PPD file for that printer.
          Using:



          *cupsSNMPSupplies: False


          Ref: CUPS PPD Extensions







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 11 '15 at 4:01









          soniclisonicli

          111




          111





















              1














              A potential unrelated answer to your question but was certainly the answer to my question was for a local USB thermal printer -- why was it causing a delay of 5 seconds between prints.



              The solution turned out to be that not all USB printers should be setup as bi-directional communication like CUPS wants to do. So setting up a "quirk" for the printer in the /usr/share/cups/usb area of cups to include the specific printer "ID"and setting flags such as "unidir" "no-reattach" "soft-reset" seemed to entirely fix the issue for me. Hopefully anyone looking for the same issue can save a few hours debugging into the cups code to understand what was obvious once i keyed in on the debug output that said it was waiting for the USB read thread to exit (apparently 5 seconds).






              share|improve this answer








              New contributor




              Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                1














                A potential unrelated answer to your question but was certainly the answer to my question was for a local USB thermal printer -- why was it causing a delay of 5 seconds between prints.



                The solution turned out to be that not all USB printers should be setup as bi-directional communication like CUPS wants to do. So setting up a "quirk" for the printer in the /usr/share/cups/usb area of cups to include the specific printer "ID"and setting flags such as "unidir" "no-reattach" "soft-reset" seemed to entirely fix the issue for me. Hopefully anyone looking for the same issue can save a few hours debugging into the cups code to understand what was obvious once i keyed in on the debug output that said it was waiting for the USB read thread to exit (apparently 5 seconds).






                share|improve this answer








                New contributor




                Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  1












                  1








                  1







                  A potential unrelated answer to your question but was certainly the answer to my question was for a local USB thermal printer -- why was it causing a delay of 5 seconds between prints.



                  The solution turned out to be that not all USB printers should be setup as bi-directional communication like CUPS wants to do. So setting up a "quirk" for the printer in the /usr/share/cups/usb area of cups to include the specific printer "ID"and setting flags such as "unidir" "no-reattach" "soft-reset" seemed to entirely fix the issue for me. Hopefully anyone looking for the same issue can save a few hours debugging into the cups code to understand what was obvious once i keyed in on the debug output that said it was waiting for the USB read thread to exit (apparently 5 seconds).






                  share|improve this answer








                  New contributor




                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  A potential unrelated answer to your question but was certainly the answer to my question was for a local USB thermal printer -- why was it causing a delay of 5 seconds between prints.



                  The solution turned out to be that not all USB printers should be setup as bi-directional communication like CUPS wants to do. So setting up a "quirk" for the printer in the /usr/share/cups/usb area of cups to include the specific printer "ID"and setting flags such as "unidir" "no-reattach" "soft-reset" seemed to entirely fix the issue for me. Hopefully anyone looking for the same issue can save a few hours debugging into the cups code to understand what was obvious once i keyed in on the debug output that said it was waiting for the USB read thread to exit (apparently 5 seconds).







                  share|improve this answer








                  New contributor




                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Apr 7 at 21:33









                  Michael SmithMichael Smith

                  111




                  111




                  New contributor




                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Michael Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Server Fault!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f206751%2fwhy-is-there-a-10-second-delay-when-printing-on-ubuntu-server-10-04%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                      Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                      Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020