Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPD for driverless IPP: Poll "media-col-database" separately if needed #599

Merged
merged 2 commits into from
Jan 29, 2023

Commits on Jan 22, 2023

  1. PPD for driverless IPP: Poll "media-col-database" separately if needed

    In the create_local_bg_thread() function for auto-generating a PPD
    file for a CUPS queue for a driverless printer, either via the
    "everywhere" model selection or an auto-created temporary queue we
    need to query the full capabilities information from the printer.
    
    To get the full set of printer properties from a driverless IPP
    printer one does a "get-printer-attributes" IPP request with the
    attribute "requested-attributes" set to "all,media-col-database" (note
    that "all" does not include "media-col-database" because this
    attribute is often very long, it contains all valid combinations of
    media size, media type, media source, and margins). For some printers
    this fails and we fall back to just "all" and lose valuable
    information.
    
    But some of those printers which do not support "requested-attributes"
    set to "all,media-col-database" support "requested-attributes" set to
    "media-col-database" alone and this we now make use of, by polling
    "media-col-database" separately and adding it to the IPP response of
    "all" if needed.
    
    We discovered such a printer here:
    
        OpenPrinting/cups-filters#492
    tillkamppeter committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    cc63bdd View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2023

  1. Configuration menu
    Copy the full SHA
    ecfb030 View commit details
    Browse the repository at this point in the history