-
Notifications
You must be signed in to change notification settings - Fork 124
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
[RFE] Check for driverless support and set device-info accordingly #235
[RFE] Check for driverless support and set device-info accordingly #235
Conversation
Thank you very much for your patch, I have merged it. Some remarks:
|
Thank you for merging it @tillkamppeter !
Or if you want to have 'permanent' queue for IPP everywhere supported device being installed automatically (without g-c-c or s-c-p), which is sometimes needed when you need to print via GTK print dialog in certain network setups. I'm working on more generic solution (hopefully using CUPS API) in gtk in https://bugzilla.redhat.com/show_bug.cgi?id=1784449 with Marek Kasik, who is in gtk upstream.
To be honest, I always use 'lpadmin' with 'everywhere' model, so I hit the issue when printer does not support IPP everywhere as whole. Thanks for the tip about model 'driverless:' for lpadmin!
I did not test it with GUI apps yesterday, but today I did - it works correctly. Do you want to propagate the info into a created PPD too? I can update the patch. |
Not really needed. Important is that it actually works. |
Note that there is also work in progress on support for the Common print Dialog Backends (CPDB) in the GTK print dialog, the CPDB (exactly the CUPS backend) also support temporary CUPS queues. |
Removed this feature again (master: 3fddcf5; 1.x: aae86d2), as the check takes too long time, making CUPS failing. See OpenPrinting/cups#65. |
Hi,
I encountered this problem several times during debugging printing issues with older printers - the device is capable to advertise itself via Avahi but its IPP response is not enough for CUPS temporary queue, either if it does not support IPP 2.0 or it's missing some required attributes.
Fortunately those printers can be driverless with help of cups-browsed, which has those two fallbacks available so even older IPP printers can be supported as driverless.
The problem is when you run 'sudo lpinfo -l -v', driverless backend says 'driverless' in device-info text - but it indicates only the device is available on avahi-browse, because driverless backend calls ippfind tool for the job and it just checks Avahi.
So you don't know (until you try to install it with 'everywhere' model) if the device is capable of being CUPS temporary queue or if cups-browsed is needed for working.
The patch is about propagation of info which fallback was used during get-printer-attributes request (called during running driverless backend) and it sets the part of device-info string about driverless to one of following 4 strings:
I tested it with my fully driverless HP LaserJet and with Canon printer of my colleague, which has incomplete IPP request. I wrote a basic sanity test for driverless backend in the past and it passes too.
What do you think about it? Is it a usable for the project? Please let me know if I should change something.
Thank you in advance!