Installing and setting up brand new HP printer for first time and failed!

Remember to install xsane to scan directly with this software

zypper in -y xsane

Hi Sauerland,
The download has installed the drivers but I have no idea where. Wherever they are they are not showing up when I use Yast to install a new printer. I was hoping to find the driver and enter manually.
I can see the printer using browser but cannot set up the printing yet.

Alternatively I should be able to use driverless but still working on that. All above my pay grade I’m afraid.

All the info is in my machine:-

file cups-pdf:/
serial serial:/dev/ttyS0?baud=115200
serial serial:/dev/ttyS1?baud=115200
network dnssd://Brother%20QL-580N._pdl-datastream._tcp.local/
network dnssd://HPC018039F6646%20(HP%20Color%20Laser%20MFP%20178%20179)._printer._tcp.local/
network ipp://HPC018039F6646.local:631/ipp/print
alastair@ibmserv2:~> 

It is just that I have not been able to get the instructions I have tried to work.

Hi Sauerland,
I am stuck. The downloads offered by HP in the link worked but when I then use Yast to add a printer the drivers are not offered by Yast so all my attempts with Yast have failed so far.

Using the driverless solution failed because I am too ignorant to be able to make it work although the documentation is all there.

I would appreciate a bit more help on this please.

Here is the result from the /var/log/cups/error-log:-

E [03/Feb/2023:15:22:45 +0000] [CGI] Cannot connect to remote printer ipp://HPC018039F6646.local:631/ipp/print (HPC018039F6646.local:631)
E [03/Feb/2023:15:22:45 +0000] copy_model: empty PPD file
E [03/Feb/2023:15:22:45 +0000] [Client 587] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/Colour) from localhost
E [03/Feb/2023:15:23:00 +0000] [CGI] Cannot connect to remote printer ipp://HPC018039F6646.local:631/ipp/print (HPC018039F6646.local:631)
E [03/Feb/2023:15:23:00 +0000] copy_model: empty PPD file
E [03/Feb/2023:15:23:00 +0000] [Client 587] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/Colour) from localhost

It seems no PPD file has been created. Will go through the details again.

I used cups-filters PPD Generator to try and create the missing PPD file. This is the result:-

alastair@ibmserv2:~> sudo lpadmin -p printer -v ipp://HPC018039F6646.local:631/ipp/print -E -m driverless:ipp://HPC018039F6646.local:631/ipp/print
lpadmin: Unable to open PPD "/tmp/0351963e496da": Missing PPD-Adobe-4.x header on line 0.
alastair@ibmserv2:~> 

Using CUPS PPD Generator failed thus:-

alastair@ibmserv2:~> sudo lpadmin -p Colour -v ipp://HPC018039F6646.local:631/ipp/print -E -m everywhere
lpadmin: Unable to connect to "HPC018039F6646.local:631": Name or service not known

I hope somebody who knows more than me is following this!

At last success but only just. Now for the scanner! Hui’s link was the right one together with the Sauerland link.
Hope this was not too dull.
Budge

Please forgive the long explanation. I had read and tried many options using command lines from the manual before before I found system-config-printer which is named System>Print Settings in the gui. Using this I managed to get the new HP Color Laser MFP179fnw to work However I couldn’t get the scanner installation to work.

I then tried to set up this printer on another Leap 15.4 machine and having installed the driver package “uld” from the above HPlink, went straight to Print Settings and was able to select and add this printer on the gui. On selection of the device I was offered a choice of two connections; IPP and AppSocket/HP JetDirect. I chose the AppSocket/HP JetDirect option, selected the HP option and the printer was installed OK.

Checked on the Yast>Hardware>Printer and all was well. I then went to Yast>Hardware>Scanner and was able to select the above MFP device. Scanner installed and working. Job done and all is well.

Returning to the original machine which has been the subject of this thread I tried to repeat the scanner installation but I am not offered the above choices. It seems I have, in my ignorance, set up two different options for printer connections, an lpd printer or an ipp printer and it seems I need the JetDirect connection.

These lpd and ipp configurations must be sitting somewhere in my system and must be removed before I can select AppSocket/JetDirect as it is not shown at present. Please could I have help finding and deleting the at least the lpd setting so I can use the JetDirect connection.

You complicate your life a lot.
I gave you simple commands that work every time but you preferred bespectacled bearded guru incantations (and yet I am bearded with glasses, like what).
In a console, do

hp-setup address of your printer (ex: hp-setup 192.168.1.23)

leave the default options.
To note that

  • ipp is the communication protocol for network printers
  • jetdirect is a direct communication with your printer, practical only if it is close to you because it is the printer that serves as a wifi router to communicate with your computer.

For your scanner, did you install the plugin as I advised you, otherwise the scanner will not work?
To install it, in a console do

hp-plugin

It’s quite simple.

Hi straight_ahead,
The reason for my post is that the simple commands did not work, possibly because the printer is not yet in hplip.
I know nothing about jetdirect other than it is an HP tool which I have used in the past to connect printers and I am not sure where wifi fits in here because my printer is not connected to wifi.

@Budgie2
Hello,

In your case, it would be efficient to remove your hplip installation with

zypper rm hplip

then reinstall it, which will call the latest updates with

zypper in hplip

then do not touch ANYTHING except open a console in user mode and enter to install your printer whose drivers are included in hplip (I checked)
hp-setup address of your printer (ex: hp-setup 192.168.1.23)

to install your scanner next:

hp-plugin

Install xsane which also installs its drivers with

zypper in -y xsane

There have been big updates including hplip, you should find what you’re looking for.
Update regularly with

zypper up -y

If your scanner driver is not included, you can only wait for the HP teams to integrate it into hplip, this is the only final solution.

When I buy a new car, I don’t disassemble the clutch box to check that the disc is in place. I’m just waiting for it to work, that’s all.

@straight_ahead

Do not think, every Hp Printer is supported by hplip.

Its a HP Printer which is not supported by hplip, it is supported by the uld driver from earlier Samsung, now HP.

Hi and many thanks for your help and news of the update which I have on my system. Just in case I have followed you advice and re-installed exactly as you suggested. To check that the printer was up and running I checked before running hp-setup. Here are the results so far.

alastair@ibmserv2:~> ping 192.168.105.141
PING 192.168.105.141 (192.168.105.141) 56(84) bytes of data.
64 bytes from 192.168.105.141: icmp_seq=1 ttl=62 time=0.720 ms
64 bytes from 192.168.105.141: icmp_seq=2 ttl=62 time=0.432 ms
64 bytes from 192.168.105.141: icmp_seq=3 ttl=62 time=0.423 ms
^C
--- 192.168.105.141 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2038ms
rtt min/avg/max/mdev = 0.423/0.525/0.720/0.137 ms
alastair@ibmserv2:~> hp-setup 192.168.105.141

HP Linux Imaging and Printing System (ver. 3.22.10)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Searching for device...
error:  Device not found.   Please make sure your printer is properly connected and powered-on.

This brought up a Device Discovery pop up which gave me a network issue:-

HPLIP cannot detect printers in your network.
This may be due to existing firewall settings blocking the required ports. When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link. https://developers.hp.com/hp-linux-imaging-and-printing/KnowledgeBase/Troubleshooting/TroubleshootNetwork

I have tried all the options I can think of and have done all the options with the firewall stopped just in case I have the settings wrong, but still no progress. Manual Discovery does not work and I am short of ideas for the search term using mDNS/Bonjour, SLP or Avahi having tried all the usual suspects.

Do you have anything to add which might help from here please?

Hi Sauerland and thanks for following this. I agree with you and share your understanding of the situation regarding the uld driver.

There clearly are some problems with this printer at present. I have only had it a couple of weeks and wondered if there might be an issue with the firmware. From the HP website I saw that a firmware update was available if searched from a windows system, dated from Nov 29, 2022 and which fixed some minor issues so thought I would install it, hoping this might make a difference.

I wasted a great deal of time trying to do the firmware upgrade and failed, so I went to HP support site and asked them to help. In short, working on a windows 10 system, they failed too whilst the printer was connected to my network. We were able to upgrade the firmware with an usb connection but even after then, once put back onto the network, they still could not log into the machine web system. They are hoping to call me on Tuesday to tell me if they have found a solution.

HP did offer to exchange the machine but pointed out that it would likely be a refurbished machine and likely to have the same problem. I am thinking of asking for my money back but will wait until Tuesday. My problem is trying to decide what to get as a replacement!

As far as the printer working is concerned, windows works fine but openSUSE sadly not reliably. Just about OK on some hardware and not on others. I have still not found the underlying logic as to why the HP Z640 machines work better than the IBM machines but none give me rock solid installations.

Thanks again for the interest.
Regards,
Budge

There is a Color Laserjet MFP M177fw printer driver available. I have found in the past that, with HP, if there is not an exact match, you can get away with the nearest match. You would probably need to go into CUPS and choose the Modify Printer option to install this driver and then see if it worked.

Hi Budgie2. You have another thread dealing with your laser printer (albeit regarding the scanner functionality)

I note in that thread that you installed ULD software. (It is essentially using the Samsung printer protocol under the hood rather than provided by HPLIP drivers.)

Many thanks to John and Dean for continuing interest and help. As I noted earlier I have had varying success with this printer on different machines, with more reliable installations on the HP workstations. This was with printing but not the scanning and, apart from one happy moment when I managed to get one IBM server printing, but not scanning, I couldn’t repeat the installation process. This was using the uld installation but I have also been trying with the recently updated hplip package from the SUSE repo to no avail.
As you know there are many ways to skin a cat so I have been looking at various tools and options going back to fundamentals with some time reading up on this. I note that there are a bunch of updates to Cups and the related tools in the obs repo and am pondering whether I should install these. Beyond my paygrade here so have asked for a bit of advice in another thread.
Many thanks again,
Budge.

Since HP provide a link to the ULD package for that model, I would think that is the best way to proceed. Of course your new network printer is likely capable of driverless printing (via IPP), and that is easily checked using

sudo lpinfo -lv
ippfind

Hi Dean,
Many thanks. I seem to have gone backwards with hplip and today I tried to find the driverless info and couldn’t find it. I shall resume trying the manual methods with the uld drivers again. I had been working from the driverless printing explanation given in the link from hui above.

I had tried using cups-filters to create the PPD but as I reported earlier, it failed. I am now going to try with the ODS repo cups files because they are significantly later than those in the suse repo.

BTW as I believe you already know, the drivers offered by HP on hplip do not include the drivers for this printer as has been suggested by others above. There are several MFP printers listed but none have the same description and those with similar numbers such as M179fp are not of the same series of printers as may be seen from pictures of the actual machines.

Hello,
Yes indeed, there seems to be a hardware problem with your printer.
I note that the ping passes but not the protocol of the printer, it seems to me to be a targeted blocking otherwise you would have a message from hp-setup telling you that the printer is not supported.
You had the same network problem for the firmware while the update is done from the touch screen of the printer.

However, it would be interesting to try after disabling your firewall on your internet box (if that scares you, put the equivalent of means) and on your computer to disable firewald because Opensuse is very restricted
systemctl stop firewalld
systemctl disable firewalld

Restart your computer and retry the hp-setup and tell us again

Don’t forget to re-enable firewalld once the installations are complete
systemctl enable firewalld
systemctl start firewalld

Hi Dean,
I agree and this is what I meant by going back to fundamentals. Unfortunately I may have added to my problems because the printer was needed by the office, which uses windows, (that is why we bought it!) and I had to configure the printer to work on a different subnet. This may have introduced some obstacles in the switches and firewalls between the printer and my workstation system firewall. I mention this because, although I can still ping the printer, the commands I needed for setting up driverless printing no longer give me the info I need. Here are the results:-

alastair@ibmserv2:~> sudo lpinfo -lv
Device: uri = beh
        class = network
        info = Backend Error Handler
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = hp
        class = direct
        info = HP Printer (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = serial:/dev/ttyS0?baud=115200
        class = serial
        info = Serial Port #1
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = serial:/dev/ttyS1?baud=115200
        class = serial
        info = Serial Port #2
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet Printing Protocol (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = smb
        class = network
        info = Windows Printer via SAMBA
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = cups-pdf:/
        class = file
        info = CUPS-PDF
        make-and-model = Virtual PDF Printer
        device-id = MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;
        location = 
Device: uri = ipps
        class = network
        info = Internet Printing Protocol (ipps)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = lpd
        class = network
        info = LPD/LPR Host or Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = https
        class = network
        info = Internet Printing Protocol (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = xpraforwarder
        class = direct
        info = Direct pdf/postscript printing/forwarding to host via xpra
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = hpfax
        class = direct
        info = HP Fax (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
alastair@ibmserv2:~> 
alastair@ibmserv2:~> 
alastair@ibmserv2:~> sudo ippfind
alastair@ibmserv2:~> 

I can only resume this exercise after the office has closed but the above may be some help. FYI are other printers on the network which work on all systems including another hp machine.