Comment 11 for bug 139317

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: system-config-printer problem

How it should work is that if an already installed USB printer is disconnected or turned off that its queue is automatically disabled by hal-cups-utils and if it is turned on again that its queue gets enabled again. This avoids that CUPS resends jobs periodically to printers which are turned off

This is done by the script /usr/lib/hal/scripts/hal_lpadmin which is triggered by HAL.

I attach a replacement for this script where I have done the following improvements: No call of a scan of all available printers by CUPS is done any more. This took a rather long time and then enabling and disabling of the queues happens long after the power on/off events and this can cause confusion when the printer is power-cycled quickly. Plug'n'Print is also much faster now. I have also fixed a bug of queues with another than the default name not being re-enabled.

Tim, can you add the new version upstream into the hal-cups-utils package? Or better give me SVN write access there, too? Thanks.

Mikko, can you download the attached script and replace /usr/lib/hal/scripts/hal_lpadmin by it enabling and disabling of your printer should happen much more quickly after plugging it now, And if you have manually assigned a name to your queue (or the queue is created by a pre-Gutsy Ubuntu) now re-enabling should really work.