PrinterDriverAutoDownload

Revision 23 as of 2007-07-03 15:57:36

Clear message

Automatic download of printer drivers through the internet

Summary

Printer drivers are continually being created or updated - especially as new printers can come out at any time between distribution releases. It is not reasonable to expect all distributions to be completely up to date all of the time, yet users expect to be able to use a brand new printer straight away.

Rationale

Many printers do not get set up automatically straight away due to their drivers not being shipped with the distribution. Giving easy access to drivers from an external source will widen the scope of printers which will 'just work' a lot.

Use cases

  • User A has an uncommon printer for which there are no drivers in their distribution.
  • User B has a printer for which the manufacturer supplies a closed-source driver which distributions cannot ship
  • User C has a new printer whose driver is not yet in the release of the distribution that they are using.

Scope

All Ubuntu distributions, depending on implementation progress Feisty or Feisty+1.

Design

We will add a functionality to our printer setup tool (PrinterDrake) which lets printer drivers automatically being downloaded on request, dependent on the printer model which is detected.

This will be based on a new service provided by [http://www.openprinting.org FSG OpenPrinting]. linuxprinting.org is currently merging with FSG OpenPrinting and with the release of LSB 3.2 next year distribution-independent driver packages will be offered for download from linuxprinting.org. Especially there will be also available drivers directly uploaded from printer manufacturers.

Description of the new printer driver download service at FSG OpenPrinting

Note: This service is completely independent from Ubuntu and is provided to all distributions and also to end users.

This will be implemented as follows:

  • Add requirements for common printer driver interfaces to LSB 3.2: Driver/renderer (currently GhostScript interfaces IJS, CUPS raster, OpenPrinting Vector, FHS (File System Hierarchy) extension for printer drivers and PPDs.

  • Make use of other LSB standards, like packaging
  • Make distribution independent driver packages which work with every LSB-3.2-compliant distro
  • Attach these packages as downloadable files to the driver entries of the Foomatic database at linuxprinting.org (FSG OpenPrinting)

  • Make the access both human- and machine-readable
  • Provide an API for client software to access: List of all printers, drivers, driver packages, available/recommended drivers for a given printer (specified by device ID or Foomatic printer entry), driver free/non-free?, digital signatures, driver download
  • A printer setup tool could for example detect a printer, check local driver availability and in addition ask the FSG OpenPrinting database for available drivers for this printer. Then install the remote driver if there is no local driver is available or if the local driver is older (update).

For more details see:

To give the best possible reliability and integrity every FSG OpenPrinting driver package will provide the following data:

  • Driver name
  • Release version
  • Release date
  • Is it free or non-free?
  • Contact info to get support, report bugs, ...
  • Digital signature of the supplier (for example printer manufacturer)

How we will provide automatic driver download at Ubuntu

For security and stability reasons we do not directly download and install printer driver packages from FSG to the User's system. Instead, we will create a package infrastructure which makes these upstream drivers available as Ubuntu packages in the Ubuntu archive after a QA process.

Implementation

Packaging infrastructure

We will create a source package openprinting-drivers which can automatically

  • download available drivers from upstream,
  • create one binary package per vendor,
  • ensure that there will be no packaging conflicts,
  • run a test suite over all available drivers (set up a temporary print queue for this driver, print some standard PostScript files throuh it into a file, check whether the driver finished successfully and the resulting binary blob has a reasonable size).

This package should be updated several times during the release cycle until UVF. Those drivers should also be considered for *-updates if we can get reliable test results on real hardware.

Printer setup tool integration

If there is no matching driver installed, the printer setup tool will check the apt database for available ones. If there is one, ask the user and call the package manager for installing it (synaptic supports this mode with some special command line arguments).

The user can still (on his own responsibility) download drivers directly from FSG OpenPrinting and install them by explicitly enabling this functionality in the printer setup tool and confirm that this mode is entirely unsupported by Ubuntu.

Assignments

Implementation on the OpenPrinting side done by Till Kamppeter.

Implementation on the Ubuntu will start as soon as all needed APIs and specs are published by OpenPrinting, at least in a testing state.

Printer setup tool in which the implementation of this feature will be done principally is PrinterDrake.

The drivers for the most important printers (HPLIP, Gutenprint, ...) will be provided on the CDs, so that users without internet connection or with only dial-up will be able to set up their most printers without needing to download anything from the internet.

The existing printer driver packages should be dropped to the extent possible and their equivalent functionality be provided by the automatically generated packages.

-- CategorySpec