Printing-architecture Digest, Vol 206, Issue 16
I have a couple questions as a user. (I have no special expertise other than having installed various printers on different distributions in different ways over the years.). Please feel free to disregard my email if it is not helpful.
First, take the following example. I have several computers and non-IPP everywhere/Airprint/Mopria, etc. network printers (e.g., old HP Laserjet) in my house. As I understand it, each computer could install a printer application for these printers that effectively shares them as IPP Everywhere printers. I'm assuming that this would mean that the printer application could be made available for printing on iOS/Android. But does that mean that one printer application would show up for each computer, so that there are multiple copies of the same printer application available to mobile? And would these printer applications also show up on the other computers? (For example, Debian currently gives me notifications that it has found and installed one particular network printer.. Would I be getting these notices for printer applications installed on other computers?) I suppose that the printer applications could be installed on only one computer, but then it would need to be on all the time for other computers to print to it. Or is it anticipated that printer applications will only be made available locally? Will there be a way to make printer applications available on the local network on an individual basis? Or would it be all or nothing? I realize that there are settings in the CUPS configuration files currently to make shared printers emulating AirPrint available locally (and that there are various views about whether this particular type of sharing should be supported). But my understand is that such files would no longer be available to edit if this functionality is in a container. Second, would it be possible for the printer applications to have assigned ports in a range so they can be easily found? There could also be another range that is first come first served. I realize that this would require coordination, and that there may be technical reasons why it would not work.
Thanks!
On Friday, February 26, 2021, 07:00:10 AM EST, [email protected] <[email protected]> wrote:
Send Printing-architecture mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture
or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Printing-architecture digest..."
Today's Topics:
1. Re: Automatic printer setup with Printer Applications (Till Kamppeter)
2. Re: Automatic printer setup with Printer Applications (Till Kamppeter)
3. Re: Automatic printer setup with Printer Applications (Johannes Meixner)
4. Re: Automatic printer setup with Printer Applications (Johannes Meixner)
----------------------------------------------------------------------
Message: 1
Date: Thu, 25 Feb 2021 22:51:28 +0100
From: Till Kamppeter <[email protected]>
To: Michael Sweet <[email protected]>
Cc: "[email protected]" <[email protected]>, Jai Luthra <[email protected]>
Subject: Re: [Printing-architecture] Automatic printer setup with Printer Applications
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Quoted 3 lines · Michael Sweet
Quoted 1 line
Or if you do not want to call an external executable via command line, do IPP with libcups to create the queue (with driver selection "auto").
The challenge there is to find the right socket to talk to... :/
Yes, DNS-SD only reveals the host/port access. As every Printer Application which provides a web interface has a host/port, one could use it, but calling the command is probably the most universal.
Till
------------------------------
Message: 2
Date: Thu, 25 Feb 2021 23:54:51 +0100
From: Till Kamppeter <[email protected]>
To: Solomon Peachy <[email protected]>
Cc: Open Printing <[email protected]>, Jai Luthra <[email protected]>
Subject: Re: [Printing-architecture] Automatic printer setup with Printer Applications
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed
Quoted 7 lines · Solomon Peachy
Quoted 2 lines · Till Kamppeter
You probably mean the USB quirks. This is to overcome hardware incompatibilities.
Yeah. Not having something like this is responsible for most of the support headaches I get from MacOS users.
Seems that CUPS has this USB quirk functionality only in the libusb-based incarnation of the USB backend not in the Darwin one which Mac OS uses. The idea of USB quirks comes from me, as Michael put up the first sketch of a libusb-based USB backend it did not work very well for me and I vastly improved it, especially also investigating how the usblp kernel module works and there was this USB quirk handling which I had overtaken into the backend. Michael has then improved it by putting the rules into an editable file.
Quoted 7 lines
Quoted 3 lines
For this we need support prioritization levels, like "generic" (CMD: item match), "third-party" (independent driver, like Gutenprint matches the model), "manufacturer" (manufacturer driver matches the model).
"generic" is going to be so much so that I fear it will be effectively useless for autoconfiguration.
I agree.
Quoted 6 lines
Take Epson printers -- Nearly every model produced in over 25 years claims to support ESCP2, but there's very little beyond "print basic ASCII text" that one can ultimately rely on. You need a more specific model family (dot matrix, mono-only inkjet, X color inkjet, etc) on top of that in order to be remotely useful for raster printing.
In the PostScript Printer Application this works better. A generic PostScript PPD file works with practically all PostScript printers, it only misses support of many printer features, like more than 2 or 3 trays, exotic paper sizes, finishers, ...
Quoted 4 lines
In other words, an application shouldn't claim "support" for a printer unless there's an explicit, positive match; everything else will require some sort of user/admin intervention/configuration.
In the PostScript Printer Application this would mean printers for which there is a corresponding PPD file for exactly this model.
Quoted 8 lines
I'm beginning to come around to the notion that we shouldn't even bother to create an automagic "figure out which printer application supports the printer just plugged in" mechanism, because it's going to take a _lot_ of work, it's nearly entirely an exercise in working around legacy baggage, and as Michael put it, we're not likely to ever see more than half a dozen printer applications anyway, and all of those will be focused around legacy models.
Only for the users not being completely lost with a legacy printer, should we have at least some simple tool which detects printers and lists them and checks installed Printer Applications whether they support it, with an "Add" button for auto-adding it, and also a button for the printer entry which does searches like "Acme LaserStar 1000+" and "Acme Printer" on the Snap Store? (As long as we have no hardware-signature-based search, Printer Applications supporting a few models could list them in their store listing's description, and a manufacturer's Printer Application always contains the manufacturer's name and "printer" somewhere in its title and/or description).
If we have the DNS-SD service lister which I mentioned in other postings on Printer Applications there could be besides the web interface and IPP System Service buttons also an auto-add button.
Quoted 10 lines
I don't see any printer makers bothering to create downloadable/runnable-on-end-user-systems printer applications for their art/speciality models (and definitely not for their legacy models) -- instead they'll sell a little "print server" that can be bolted onto the printer to achieve that functionality.
...and that "print server" will be running legacy CUPS (and hopefully, eventually, PAPPL) along with out-of-band scripts that detect the attached printers at startup time and create/export "queues" in a non-dynamic manner.
OK, let's see.
Till
------------------------------
Message: 3
Date: Fri, 26 Feb 2021 10:17:25 +0100
From: Johannes Meixner <[email protected]>
To: [email protected]
Subject: Re: [Printing-architecture] Automatic printer setup with Printer Applications
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hello,
Quoted 8 lines · Till Kamppeter
Quoted 5 lines · Johannes Meixner
I took me some longer time of experience what works reasonably well in practice out there in real world how to auto-match based on the manufacturer & model strings which is the only data that is always there.
I go a similar way, matching by make and model
...
Quoted 2 lines
What I do is taking the observed make and model,
normalizing it to some form
...
Quoted 2 lines
The names in the list of supported models
I normalize the same way.
I did same i.e.
normalizing make and model what the system reports and normalizing make and model in the PPDs in the same way, then some "fuzzy match" to get a list of PPDs
that "somehow match" the reported make and model with some "special sorting" to put the "somehow best match" on top of that list and
finally show that list to the user so he can select one.
In automated setup case the topmost entry of that list is used.
I vaguely described that in
https://en.opensuse.org/YaST_Printer#Driver
By the way 1:
For my general point of view about
"Automated Printer Configuration" see
https://en.opensuse.org/YaST_Printer#Automated_Printer_Configuration
versus the subsequent section
"Manual Printer Configuration with the YaST Printer Module" therein.
By the way 2:
In practice the current "YaST Printer Module" is dead code, cf.
https://bugzilla.suse.com/show_bug.cgi?id=1175341#c1
I wished those who make the decisions would finally let it RIP.
Kind Regards
Johannes Meixner
Signature · 20 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5 - 90409 Nuernberg - Germany (HRB 36809, AG Nuernberg) GF: Felix Imendoerffer ------------------------------ Message: 4 Date: Fri, 26 Feb 2021 11:03:34 +0100 From: Johannes Meixner <[email protected]> To: [email protected] Subject: Re: [Printing-architecture] Automatic printer setup with Printer Applications Message-ID: <[email protected]> Content-Type: text/plain; charset=US-ASCII; format=flowed Hello On 2021-02-25 15:54, Solomon Peachy wrote (excerpts):
Quoted 8 lines
And much like we've seen multiple distinct models with identical USB VID/PIDs, I've also seen distinct models that share identical IEEE1284 IDs. [2]
And then there's the iManufacturer/iModel/iSerial strings that may or may not match what's in the 1284 data
or what's silkscreened onto the printer itself.. ...Like everything else involving printing, it's a complete mess.
...
Quoted 1 line
[2] They are in the same family, but the PDL is barely incompatible..
for some (older) examples that "similar looking model names" do not mean "same driver works" see the part about "It is crucial to have exact model names!" in
https://en.opensuse.org/SDB:Purchasing_a_Printer_and_Compatibility
I do not agree that everything involving printing is a complete mess but I do fully agree that model->driver matching is a complete mess from which follows "automated printer setup is a complete mess" so my personal conclusion is:
Stay away from automated printer setup
(unless you like complete mess ;-)
I am looking forward to the future where proper
IPP (Everywhere) printer devices provide all what is needed (including spooling and handling many clients simultaneously) so neither printer drivers (and their setup)
nor spooling services (and their setup)
are needed any longer.
Only clients that properly talk IPP directly to
IPP printer devices that properly provide IPP.
Kind Regards
Johannes Meixner
Signature · 19 lines
SUSE Software Solutions Germany GmbH Maxfeldstr. 5 - 90409 Nuernberg - Germany (HRB 36809, AG Nuernberg) GF: Felix Imendoerffer ------------------------------ Subject: Digest Footer _______________________________________________ Printing-architecture mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture ------------------------------ End of Printing-architecture Digest, Vol 206, Issue 16 ******************************************************