I have configured my Pi model B running Raspbian to act as a printer server on the home network. The printer is a USB connected HP Color Laserjet CP1215 and to make the Pi work as a print server I installed CUPS. The Pi printer is shared via samba on the network with basically no restrictions for usage. The computers using the printer run Windows 7.
All of this works fine except for one very annoying thing:
Whenever I or my wife needs to print there is a 25-30 second delay during which the Windows 7 application more or less becomes unresponsive. As soon as this connection has been established everything is back to normal again and we can repeat printing without this delay unless we wait some time (uncertain of the length of this) after which the delay appears again.
My feel is that somehow the printing subsystem on the Pi is not really running all the time and needs to be loaded when a client requests service. The load may require some extra actions, I don't know, which takes the long time.
So my question is really what I can look for in Raspbian, samba or CUPS to pinpoint what is going on that causes the delays?
Is there some way to make the Pi not to unload the service after some idle time? (If that is what happens)
Regarding samba I just tested to enter \\raspbian-pi in Windows explorer and after about 6-8 s the existing shares and the printer appear in the Explorer pane. Slow but nowhere near 25-30 seconds.
Yesterday I even did an apt-get upgrade in order to see if a newer Raspbian would help, but it did not...
Any ideas???