Unable to setup HP LaserJet Pro MFP M125nw

Asked by Sivarion Anatornel

I have owned an HP LaserJet Pro MFP M125nw for some time. It is connected to my network via WiFi and works perfectly with Windows and Mac OS. Unfortunately, I have never been able to fully set it up for Linux. On Mint I was able to print but not scan, having recently switched to Manjaro I am able to scan but not print.

I have HPLIP 1.3.22.10-3 and hplip-plugin 3.22.10-1 installed. Scanner works without further configuration. Printer is detected, as several devices actually, but all of them report errors when adding or printing jobs queue hangs and nothing is printed.

I have tried running:
hp-setup -i -a 192.168.4.217
in terminal, but this results in an error:
Warning: GUI modules PyQt4 and PyQt5 not installed
Error: hp-systray requires Qt4 GUI and DBus support. Exit.
Warning: Unable to connect to dbus. Is hp-systray running?
Print test page on printer HP_LaserJet_Pro_MFP_M125nw...
Test page sent to printer.

I can see the test page in the queue, but it is not printing, nor is anything else I send to the printer. Running setup manually results in a similar error.

Do you have any suggestions as to what might be causing these problems? What do I need to do to use my printer with Linux?

Question information

Language:
German Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
brian_p
Solved:
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

> Do you have any suggestions as to what might be causing these
> problems?

Sorry, no. I am disinclined to deal with HPLIP.

> What do I need to do to use my printer with Linux?

This device should be capable of using driverless printing. Let's
investigate. Give the outputs of

  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  driverless

Revision history for this message
Sivarion Anatornel (sivarion) said :
#2

OK, so avahi-daemon process was dead. I started it - sadly I can't test now, will check in the morning if starting it helped with the printer. Anyway, below I attach the result of the commands:

avahi-browse -rt _ipp._tcp
+ wlp2s0 IPv6 HP LaserJet Pro MFP M125nw[4C9208] Internet Printer local
+ wlp2s0 IPv4 HP LaserJet Pro MFP M125nw[4C9208] Internet Printer local
= wlp2s0 IPv6 HP LaserJet Pro MFP M125nw[4C9208] Internet Printer local
   hostname = [DEV4C9208.local]
   address = [192.168.4.217]
   port = [631]
   txt = ["note=" "Staple=F" "Sort=F" "Fax=F" "Scan=T" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=29877af9-3405-6462-f6fd-6652a189a84b" "adminurl=http://DEV4C9208.local./SSI/Auth/airprint.htm" "mac=58:20:b1:4c:92:08" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Pro MFP M125nw" "usb_MFG=Hewlett-Packard" "product=(HP LaserJet Pro MFP M125nw)" "ty=HP LaserJet Pro MFP M125nw" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,V1.2,MT1-2-3-4-5-6" "rp=ipp/print" "pdl=image/urf,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]
= wlp2s0 IPv4 HP LaserJet Pro MFP M125nw[4C9208] Internet Printer local
   hostname = [DEV4C9208.local]
   address = [192.168.4.217]
   port = [631]
   txt = ["note=" "Staple=F" "Sort=F" "Fax=F" "Scan=T" "Punch=0" "PaperCustom=F" "Duplex=F" "Copies=F" "Color=F" "Collate=F" "Bind=F" "Binary=T" "Transparent=T" "UUID=29877af9-3405-6462-f6fd-6652a189a84b" "adminurl=http://DEV4C9208.local./SSI/Auth/airprint.htm" "mac=58:20:b1:4c:92:08" "priority=40" "usb_CMD=ZJ/URF" "usb_MDL=HP LaserJet Pro MFP M125nw" "usb_MFG=Hewlett-Packard" "product=(HP LaserJet Pro MFP M125nw)" "ty=HP LaserJet Pro MFP M125nw" "URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,V1.2,MT1-2-3-4-5-6" "rp=ipp/print" "pdl=image/urf,image/jpeg,application/PCLm" "qtotal=1" "txtvers=1"]

avahi-browse -rt _uscan._tcp has empty response.

driverless
ipp://HP%20LaserJet%20Pro%20MFP%20M125nw%5B4C9208%5D._ipp._tcp.local/

Revision history for this message
Best brian_p (claremont102) said :
#3

Thanks for the info.

> URF=CP1,IS1,OB10,PQ3-4-5,RS600,W8,V1.2,MT1-2-3-4-5-6
> pdl=image/urf,image/jpeg,application/PCLm

The printer is AirPrint-capable. It prints Apple raster (image/urf).
CUPS can produce Apple raster. Its URI is

ipp://HP%20LaserJet%20Pro%20MFP%20M125nw%5B4C9208%5D._ipp._tcp.local/

Set up this print queue, substituting for URI in the command:

  lpadmin -p M125nw -v "URI" -E -m everywhere

Test printing with

  lp -d M125nw /etc/nsswitch.conf

Revision history for this message
Sivarion Anatornel (sivarion) said :
#4

Thank you, this actually helped, I'm capable of printing and scanning now! :)

Revision history for this message
Sivarion Anatornel (sivarion) said :
#5

Thanks brian_p, that solved my question.

Revision history for this message
brian_p (claremont102) said :
#6

Splendid!

Note: Printing is taking place without the help of HPLIP.
However, there isn't any uscan output, so scanning
requires libhpaio.

Revision history for this message
brian_p (claremont102) said :
#7

Tat should be libsane-hpaio.