All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Michael Sweet <msweet@apple.com>
Cc: Open Printing <printing-architecture@lists.linux-foundation.org>,
	Marek Kasik <mkasik@redhat.com>
Subject: Re: [Printing-architecture] Some suggestions for the DNS-SD (Bonjour) printer support in the dialog
Date: Fri, 17 May 2013 20:14:09 +0200	[thread overview]
Message-ID: <51967371.5080508@gmail.com> (raw)
In-Reply-To: <2414543F-1C84-41CA-A4C5-4FC127532B73@apple.com>

On 05/17/2013 04:23 PM, Michael Sweet wrote:

> WRT waking up printers, it isn't generally an issue for a print dialog - there you can browse and query TXT records (if needed/desired) without waking the printer up.  Just hold off on doing a Get-Printer-Attributes request until you need it (after printer selection, on bring-up of the dialog for the default printer, etc.)
> 
> Also, CUPS 1.6 and later have CUPS APIs for efficiently browsing for and getting printer capabilities.  I don't know what your requirements are for CUPS versions, but that would save a lot of code right there...

I can perhaps make cups-browsed only poll the printers when they appear
(and then they are recently turned on and awake anyway), by caching the
PPD when the printer disappears (this way also saving system default
changes of the options) before the queue gets removed and when the
printer appears again creating it with the cached PPD (assuming that the
capabilities of a printer do not change during its lifetime).

This way there is no flood of printer wakeups when one boots the machine
and cups-browsed starts or when one arrives with a mobile device with
running cups-browsed in the local network.

So usually only new machines cause printer wakeups.

Only the TXT record does not give enough capabilities to generate a
usable PPD for a CUPS queue.

If I create a raw CUPS queue, can I send a job to it with special IPP
attributes so that CUPS applies a filter chain? This way I could make
cups-browsed only create raw queues to avoit IPP polling and the dialog
then could poll the printer's capabilities when the User selects the
printer, create the option panel PPD-less and send the job with IPP
attributes for the options and for making CUPS applying filters to get
the output into the format needed by the printer.

   Till


  reply	other threads:[~2013-05-17 18:14 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16 19:48 [Printing-architecture] Some suggestions for the DNS-SD (Bonjour) printer support in the dialog Till Kamppeter
2013-05-17  5:32 ` Michael Sweet
2013-05-17  7:21   ` Till Kamppeter
2013-05-17 14:17     ` Michael Sweet
2013-05-18 23:45       ` James Cloos
2013-05-19  6:08         ` Michael Sweet
2013-06-12 22:52           ` Till Kamppeter
2013-06-13 14:05             ` Michael Sweet
2013-05-17 10:02   ` Tim Waugh
2013-05-17 14:20     ` Michael Sweet
2013-06-13 10:01   ` Till Kamppeter
2013-06-13 11:25     ` Michael Sweet
2013-06-13 14:34       ` Till Kamppeter
2013-06-13 14:40         ` Michael Sweet
2013-06-13 11:42     ` Tim Waugh
2013-06-13 12:20       ` Till Kamppeter
2013-06-13 14:08         ` Michael Sweet
     [not found] ` <51962BA7.4030304@redhat.com>
2013-05-17 14:23   ` Michael Sweet
2013-05-17 18:14     ` Till Kamppeter [this message]
     [not found]       ` <D36BAB03-9A91-42E9-A994-DC0D3C6C254D@apple.com>
2013-06-13 10:11         ` Till Kamppeter
2013-06-13 11:39           ` Michael Sweet
2013-06-13 12:49             ` Till Kamppeter
2013-06-13 14:19               ` Michael Sweet
2013-06-13  9:58     ` Till Kamppeter
2013-06-13 11:18       ` Michael Sweet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51967371.5080508@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=mkasik@redhat.com \
    --cc=msweet@apple.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.