Skip to contentSkip to conversation

Removal of features in CUPS

Printing-architecture Michael Sweet 2 participants 6 messages Feb 3, 2012 – Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

[Sorry, I was just made aware of this message thread or I would have responded sooner since much of this information just isn't correct...]

Quoted 11 lines · Till Kamppeter

...
Here are the dropped features:

1. Filters go to the new cups-filters project
---------------------------------------------

All filters and backends not used by Mac OS X are dropped. These filters, together with the filters for the PDF printing workflow are now hosted as the cups-filters project at OpenPrinting. For a first release only bannertopdf needs to get finished (by Lars Uebernickel).

This part is correct and thank you Till for hosting these filters!

Quoted 2 lines

2. The Linux implementation of the USB backend looses attention
---------------------------------------------------------------

We continue to develop and support the USB backend, although my personal development time is (unfortunately) quite limited. I will be integrating Till's libusb 1.0 patch in the near future, so at least the current functionality will be usable with both the old and new libusb.

For bidirectional printing support, we need to adopt the method used for the Darwin/OS X USB backend where there is a separate read thread that just does a bulk-in every 200ms. That provides good latency for drivers that need it while avoiding the performance hit for printers that just return a copy of their 1284 Device ID with status info every time.

Depending on my time constraints and whether libusb 1.0 has the necessary support (I think so, but it has been a while since I looked), we may be able to get bidi support in CUPS 1.6. The big hurdle was moving to libusb 1.0, and Till has already done that work.

Quoted 2 lines

4. PPD concept will be dropped in CUPS
--------------------------------------

This is just incorrect. PPDs are being *deprecated* in CUPS 1.6, but this just means that we will no longer be extending support for PPDs in CUPS. The APIs are still there, and PPD-based drivers will continue to be supported.

That said, the long-term replacement *is* IPP Everywhere, and to support that we are adding new APIs in CUPS 1.6 (many still just stubs in the current trunk) to deal with dynamic printer availability and capabilities. The goal is to have IPP equivalents for what we currently provide in the PPD APIs, and in 1.6 they will use the information the scheduler (cupsd) already generates from and maps to PPD files since CUPS 1.4.

CUPS 1.6 is just a baby step towards PPD independence, but the new APIs will allow applications (and the common print dialog) to make the transition so that when we are able to pull the plug they won't notice a thing. And in the meantime we will be able to support things like media sensing for new printers on the market...

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#1 lore raw
Quoted 12 lines · Till Kamppeter
Quoted 10 lines · Tim Waugh

I think that CUPS Browsing is also being removed in 1.6, leaving Avahi as the sanest of the remaining discovery methods.

The current state of the Avahi support patches is that service announcement is working in the scheduler, and service discovery is working in the dnssd backend -- i.e. by manual user intervention.

What is currently missing is automatic service discovery in the scheduler, so that shared queues can be discovered by CUPS itself as used to happen with CUPS Browsing.

Quoted 5 lines

Does libdnssd-based upstream CUPS do automatic service discovery by the scheduler, meaning that your Avahi patch is not yet complete in this sense or is automatic service discovery by the scheduler even not implemented at all upstream, meaning that by removing IPP browsing one of the most important features of CUPS gets lost?

No, the scheduler does not maintain a constant browse for shared printers - that is done in libcups, and there are new APIs for dealing with dynamically-available printers in CUPS 1.6. You can also manually add specific shared printers you use, and the CUPS 1.6 web interface will automagically use the "raw" driver for shared printers. The only functionality that is lost is the notion of implicit classes.
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#2 lore raw
In reply to Michael Sweet
Quoted 12 lines · Michael Sweet

We continue to develop and support the USB backend, although my personal development time is (unfortunately) quite limited. I will be integrating Till's libusb 1.0 patch in the near future, so at least the current functionality will be usable with both the old and new libusb.

For bidirectional printing support, we need to adopt the method used for the Darwin/OS X USB backend where there is a separate read thread that just does a bulk-in every 200ms. That provides good latency for drivers that need it while avoiding the performance hit for printers that just return a copy of their 1284 Device ID with status info every time.

Quoted 4 lines

Depending on my time constraints and whether libusb 1.0 has the necessary support (I think so, but it has been a while since I looked), we may be able to get bidi support in CUPS 1.6. The big hurdle was moving to libusb 1.0, and Till has already done that work.

As mentioned, I have done the port of the USB backend from libusb 0.1.x to libusb 1.0.x (http://www.cups.org/str.php?L3477, scheduled for CUPS 1.6). It was no problem to do this port. libusb 1.0.x contains all needed functions. The new libusb-1.0.x-based backend performs as well as the old one not better, not worse, but is now backed by a fully upstream-supported library.

Now I am thinking about adding bi-di support to the USB backend. My first approach was using the new asynchronous API of libusb 1.0.x, doing something similar to the usbmuxd (this is a daemon for Linux to communicate with iOS devices on USB), but comparing the complexity of usbmuxd compared to the Darwin version of the USB CUPS backend (backend/usb-darwin.c) I am tending to do the approach of three threads, generated by libpthread: Job transport, back channel and side channel, including the reading of the back-channel of the device being done only every 200ms and the reading only ebding several seconds after the job transport has finished, to assure to get all the printer's answers and the printer getting back into its initial state for the next job.

Using the libpthread approach will also make the libusb-based backend very similar to the Darwin backend, which should make maintenance of CUPS easier.

Mike, what do you think about that?

I am working on this to get this done before Ubuntu's Feature Freeze on Feb 16, as in Oneiric (11.10) we have lost the USB bi-di feature by deprecating the usblp kernel module, causing bugs with several closed-source manufacturer-supplied drivers.

Till

#3 lore raw
Quoted 4 lines · Till Kamppeter

...
Using the libpthread approach will also make the libusb-based backend very similar to the Darwin backend, which should make maintenance of CUPS easier.

Mike, what do you think about that?

That is exactly how I would do it. And thanks again for working on this!

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

#4 lore raw
Quoted 7 lines · Michael Sweet
Quoted 4 lines · Till Kamppeter

...
Using the libpthread approach will also make the libusb-based backend very similar to the Darwin backend, which should make maintenance of CUPS easier.

Mike, what do you think about that?

That is exactly how I would do it. And thanks again for working on this!

I have implemented it this way now. The result is in

http://www.cups.org/str.php?L2890

With this patch applied to CUPS 1.5.2

echo -en '#CUPS-COMMAND\nAutoConfigure\n' | lpr -P <printer>

works now also for USB-connected PostScript printers when using the libusb-based USB backend.

Till

#5 lore raw

Till,

Quoted 10 lines · Till Kamppeter

...
I have implemented it this way now. The result is in

http://www.cups.org/str.php?L2890

With this patch applied to CUPS 1.5.2

echo -en '#CUPS-COMMAND\nAutoConfigure\n' | lpr -P <printer>

works now also for USB-connected PostScript printers when using the libusb-based USB backend.

Perfect, I'll merge the changes in for 1.5.3 and 1.6 when I get back from this week's PWG meeting.

Thanks!

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair