error codes for suspended printers

Michael Sweet mike at easysw.com
Fri Oct 6 17:46:09 PDT 2006


Oliver Neukum wrote:
> Michael Sweet wrote:
> 
>> Oliver Neukum wrote:
>>> Hi,
>>>
>>> I am implementing power management for usb printers in the kernel.
>>> Which error code should be returned if CUPS tries to write to a suspended
>>> printer?
>> ENODEV would work with the current USB backend that uses the printer
>> character device - that would trigger the automatic retry after a
>> certain amount of time.  The kernel would need to wake the printer
>> up, however.
> 
> On a related note, how soon will the job be retried?

I believe the current implementation retries after 30 seconds.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list