Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Rep:
Printing in linux with HP printers
Hi all in LinuxQuestions.org,
I used to print from my Lenovo laptop with an older Debian distribution (or maybe Ubuntu) to my HP printers. Support for the HP printers was through hplip, and they seemed well suited for my use cases.
The problem started when I upgraded my linux distribution to a newer Debian distribution. Debian v11.8. Hplip suddenly did not work for my needs, and despite downloading the latest hplip version (3.23.8), does not fully support a Debian setup I currently have.
On the other hand, I can still print via mobile device (Android phone, Samsung print service app), and through another laptop...an Apple Macbook Pro running macOS Monterey. Also, the printer is directly connected to a Windows 10 desktop via USB cable, so that is another outlet.
My use case is such that I am either waiting for a software update, or I relegate using linux (Debian, Ubuntu) and use an Android device, an Apple device (iOS or macOS), or a Windows device (laptop or desktop).
The ideal use case is: 1) wirelessly print using a linux command-line command, 2) wirelessly print using an hplip distribution, or (best case) 3) wirelessly print using cups support in a desktop/laptop app like LibreOffice.
HPLIP is still working fine for me with my HP printer on Debian Sid, Mageia v. 9, and Ubuntu MATE (I forget the version number, but it's the latest LTR).
It might help to know the model of your printer. Also, is your printer directly on the netwwork or are connecting to through a computer host?
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Original Poster
Rep:
Quote:
Originally Posted by frankbell
HPLIP is still working fine for me with my HP printer on Debian Sid, Mageia v. 9, and Ubuntu MATE (I forget the version number, but it's the latest LTR).
It might help to know the model of your printer. Also, is your printer directly on the netwwork or are connecting to through a computer host?
The printers are: 1) HP Officejet Pro 9018, and 2) HP Deskjet 2652.
I've been visiting the HP Developers Linux supported site. The particular printers were supported previously in older Debian distributions, but have not been mentioned in HP's latest hplip version in a fully supported role. The printers are probably 5-7+ years old.
Right now, I would welcome a method to print via command-line instructions, or use a linux-supported application programming interface (API) to wirelessly print various documents (pdf, odt, odf, doc, docx, and so on).
would be nice to see the logs, probably it is just a configuration error. Probably a full remove/reinstall of hplip helps.
Probably you can try an older version: https://sourceforge.net/projects/hplip/files/hplip/
Yes, because I am assuming that since the printers are supported by IPP Everywhere it appears they are not supported by hplip anymore. If the printers are connected by wireless to your network I would guess they should be able to be automatically detected by cups via its web configuration page. Is avahi and cups-browsed running?
Look at http://localhost:631/admin and select add printer ( Use username root and its password ). Are your printers displayed?
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Original Poster
Rep:
Quote:
Originally Posted by michaelk
Yes, because I am assuming that since the printers are supported by IPP Everywhere it appears they are not supported by hplip anymore. If the printers are connected by wireless to your network I would guess they should be able to be automatically detected by cups via its web configuration page. Is avahi and cups-browsed running?
Look at http://localhost:631/admin and select add printer ( Use username root and its password ). Are your printers displayed?
I am focusing on one printer at this time, and have found the following information. avahi-daemon and cups-browsed are running in the following forms:
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Original Poster
Rep:
Quote:
Originally Posted by michaelk
I would try the driverless printer first and see if it works.
If you look at localhost:631/printers are any queues automatically created?
I am continuing to set up the HP printer, for a second/third time. In the next setup screen (after entering the printer Name, Description, Location, sharing), there is a set of about three different options (IPP Everywhere, driverless cups filters 1.28.7, Fax cups filters 1.28.7).
This first one was tried (IPP Everywhere), and I tried to send a job to the printer, but with no success. At the time, my wireless network was improperly configured, but there were other issues (bandwidth pirates - stealing internet; smart TV, Netflix channel misconfigurations) pressing.
I tried the driverless cups filters 1.28.7, but there was no success, at least no printout.
I don't think the Fax cups filters 1.28.7 is any different from the driverless cups filters 1.28.7 option.
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Original Poster
Rep:
Quote:
Originally Posted by michaelk
Here is my HP printer on a debian 10 system.
Since the "Local raw printer" was not the final print device, I made another pass at adding a printer with the cups setup. In the next-to-final screen of configuration, I chose the IPP Everywhere option, then set the printer preferences (letter, duplex (long-edge portrait), color, etc.) in the final screen.
Thanks all, I was finally able to get the printer to receive and print jobs (used GIMP and LibreOffice applications to print).
As for the http://localhost:631/admin results, here is what is showing up (see attachment for the image found).
I have an HP Laserjet that is considerably older than your inkjet printers and it is still very much supported by hplip.
I did have a problem for some short time where I had problems with it and through trial and error was able to figure out that avahi was interfering with config and printing using the hplip config with the hp driver. At that time I removed avahi and it removed the interference.
Since then with newer upgrades (I am on fedora) avahi is now installed again and I have no problems. Don't know if that could be your issue but Maybe??
Note that the image below is mine for the cups --> admin --> add printer page that shows the connected printers.
The one where I clicked the radio button is the printer definition that works (configured with hplip). The one above it is the one configured automatically by cups/avahi and it has never worked for me.
Last edited by computersavvy; 12-03-2023 at 03:25 PM.
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43
Original Poster
Rep:
Quote:
Originally Posted by computersavvy
I have an HP Laserjet that is considerably older than your inkjet printers and it is still very much supported by hplip.
I did have a problem for some short time where I had problems with it and through trial and error was able to figure out that avahi was interfering with config and printing using the hplip config with the hp driver. At that time I removed avahi and it removed the interference.
Since then with newer upgrades (I am on fedora) avahi is now installed again and I have no problems. Don't know if that could be your issue but Maybe??
Note that the image below is mine for the cups --> admin --> add printer page that shows the connected printers.
The one where I clicked the radio button is the printer definition that works (configured with hplip). The one above it is the one configured automatically by cups/avahi and it has never worked for me.
From my current setup of each printer mentioned, avahi doesn't appear to have influenced the connectivity for either printer. For the HP OfficeJet Pro 9018, the wireless connectivity and the IPP Everywhere options matched up accordingly, and printing was possible. For the HP DeskJet 2652, this was a different outcome.
I was able to get the second printer (HP DeskJet 2652) to print using a USB cable directly connected. However, for the wireless printing capability of the HP DeskJet 2652, there is a flashing blue light on the wireless indicator. If I recall from a prior setup, the light should be steady blue, for the wireless connectivity to be successful.
I did some research online, and found that the HP DeskJet 2652 was manufactured around 2017, so that makes it an approximately six year old printer. Did this printer work on home networks with more than one network ?
One printer connected is good, but the second printer connected as well would be better.
The printer should work with whatever wireless is configured (2.4 GHz only in your case) but in the old days that could be configured from hplip-setup when connected via USB. You can try running hplip-set just to see what happens. Otherwise you will need to use the HP smart app from Windows or maybe a smart phone.
I don't think wireless managed mode can be configured from its wifi direct mode web server page but it might be worth a look.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.