LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-28-2023, 07:36 PM   #1
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Rep: Reputation: Disabled
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.
 
Old 11-28-2023, 08:07 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,366
Blog Entries: 28

Rep: Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162
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?

As an aside, you can find a list of supported printers at the HPLIP website.
 
Old 11-28-2023, 09:03 PM   #3
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
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?

As an aside, you can find a list of supported printers at the HPLIP website.
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).
 
Old 11-29-2023, 01:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,002

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
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/

Last edited by pan64; 11-29-2023 at 01:07 AM.
 
Old 11-29-2023, 01:10 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,663
Blog Entries: 19

Rep: Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486
I wonder if it has anything to do with this: https://www.linuxquestions.org/quest...re-4175729830/
 
Old 11-29-2023, 06:13 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,770

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
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?
 
Old 11-29-2023, 03:20 PM   #7
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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:

root@W550s:/home/graps/Downloads/hplip-3.23.8# ps -ef | grep -i avah
avahi 717 1 0 Nov28 ? 00:00:00 avahi-daemon: running [W550s-2.local]
avahi 728 717 0 Nov28 ? 00:00:00 avahi-daemon: chroot helper
root 17545 8237 0 13:06 pts/1 00:00:00 grep -i avah
root@W550s:/home/graps/Downloads/hplip-3.23.8# ps -ef | grep -i cups
root 886 1 0 Nov28 ? 00:00:05 /usr/sbin/cupsd -l
root 925 1 0 Nov28 ? 00:00:00 /usr/sbin/cups-browsed
lp 1381 886 0 Nov28 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
root 17547 8237 0 13:07 pts/1 00:00:00 grep -i cups

As for the http://localhost:631/admin results, here is what is showing up (see attachment for the image found).
Attached Thumbnails
Click image for larger version

Name:	W550s-cups_results-112923.jpg
Views:	12
Size:	141.0 KB
ID:	42132  
 
Old 11-29-2023, 03:48 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,770

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
I would try the driverless printer first and see if it works.

If you look at localhost:631/printers are any queues automatically created?

Last edited by michaelk; 11-29-2023 at 03:58 PM.
 
Old 11-29-2023, 09:33 PM   #9
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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.
Attached Thumbnails
Click image for larger version

Name:	W550s-cups_setup-name_description_location_sharing-112923b.png
Views:	7
Size:	238.2 KB
ID:	42137   Click image for larger version

Name:	W550s-cups_setup-additional_options-112923c.jpg
Views:	6
Size:	139.7 KB
ID:	42138  
 
Old 11-29-2023, 09:41 PM   #10
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Printing in linux with HP printers - Third attempt

Here is the http://localhost:631/printers view. First attachment.

Here is the printer (with IPP Everywhere as set) in detail. Second attachment.
Attached Thumbnails
Click image for larger version

Name:	W550s-localhost_631-printers-112923.png
Views:	11
Size:	233.1 KB
ID:	42140   Click image for larger version

Name:	W550s-cups_setup_status-IPP_Everywhere_option-112923.jpg
Views:	8
Size:	147.6 KB
ID:	42141  
 
Old 11-29-2023, 09:52 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,770

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Here is my HP printer on a debian 10 system.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2023-11-29 21-48-14.png
Views:	14
Size:	112.4 KB
ID:	42142  

Last edited by michaelk; 11-29-2023 at 10:06 PM. Reason: wrong version
 
Old 11-30-2023, 07:57 AM   #12
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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).
Attached Thumbnails
Click image for larger version

Name:	W550s-cups_setup_status-IPP_Everywhere_option_2-113023at0543hrs.png
Views:	7
Size:	140.5 KB
ID:	42147  
 
Old 12-03-2023, 03:11 PM   #13
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by G-Raps View Post
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:

root@W550s:/home/graps/Downloads/hplip-3.23.8# ps -ef | grep -i avah
avahi 717 1 0 Nov28 ? 00:00:00 avahi-daemon: running [W550s-2.local]
avahi 728 717 0 Nov28 ? 00:00:00 avahi-daemon: chroot helper
root 17545 8237 0 13:06 pts/1 00:00:00 grep -i avah
root@W550s:/home/graps/Downloads/hplip-3.23.8# ps -ef | grep -i cups
root 886 1 0 Nov28 ? 00:00:05 /usr/sbin/cupsd -l
root 925 1 0 Nov28 ? 00:00:00 /usr/sbin/cups-browsed
lp 1381 886 0 Nov28 ? 00:00:00 /usr/lib/cups/notifier/dbus dbus://
root 17547 8237 0 13:07 pts/1 00:00:00 grep -i cups

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2023-12-03 15-20-19.png
Views:	9
Size:	71.6 KB
ID:	42161  

Last edited by computersavvy; 12-03-2023 at 03:25 PM.
 
Old 12-04-2023, 01:52 PM   #14
G-Raps
Member
 
Registered: Apr 2020
Location: California, USA
Distribution: Debian 12.5, MX Linux 23.2, Ubuntu 22.04
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
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.
 
Old 12-04-2023, 02:27 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,770

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
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.

Last edited by michaelk; 12-04-2023 at 02:28 PM.
 
  


Reply

Tags
debian 11, debian 12, hp, lp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Several Printers to No Printers Working -- Why? wmeler Linux - Hardware 7 02-23-2023 01:32 AM
[SOLVED] Printing on Linux? Experience with printers from HP? Missouri Redneck Linux - Hardware 10 04-03-2018 05:36 AM
Compressing printing between Linux and Windoz Desktop Printers using a filter jeager Linux - Newbie 0 04-10-2007 12:24 PM
sharing printers in linux and windows xp: no printing, yet no errors TheOneAndOnlySM Linux - Networking 1 04-26-2004 07:01 AM
recommendation on photo printers and general purpose printers raminolta Linux - Hardware 3 01-21-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration