I am no longer able to detect my HP Color Laser MFP 179fnw scanner after doing emerge update. It was working just a few weeks ago. In /usr/portage/net-print/hplip/ I can see that hplip-3.20.11-r2 is the oldest version available, so I can't even try to roll back to an older version.. Printing works (via cups). I have tried to delete the printer from cups and use hp-setup 10.0.0.157 to configure it, but it does not work. hp-probe -bnet fails to detect it. hp-setup 10.0.0.157 fails. Note: avahi-discover-standalone can detect it. Reproducible: Always
Created attachment 760219 [details] emerge --info
Created attachment 760220 [details] hp-check -t
If you want to test it again with the old ebuild, you can restore the old ebuild from the mirror https://github.com/gentoo/gentoo for example.
(In reply to Jonas Stein from comment #3) > If you want to test it again with the old ebuild, you can restore the old > ebuild from the mirror https://github.com/gentoo/gentoo for example. Hm, ok, but last change in hplip was done Nov. 21? Definitely had my scanner working after that and I do emerge update almost daily.
Created attachment 760582 [details] dumpcap -f "port 5353" output Using dumpcap/wireshark I looked at the packet flow when using hp-setup. hp-setup using SLP: An SLP request is sent out, but no reply is seen. hp-setup using mDNS/Bonjour: See attached wireshark_wlan02LYSE1.pcapng file. The printer/scanner replies to the query, but hp-setup sends 2 more queries as if it does not get the response or does not like/understand it? hp-setup using Avahi: Fails immediately. Console shows error "Failed to create client object: Daemon not running". Ok, after starting the avahi-daemon I see MDNS query+response packets, but hp-setup dies with: Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=avahi) Traceback (most recent call last): File "/usr/share/hplip/ui5/setupdialog.py", line 1340, in NextButton_clicked self.showDevicesPage() File "/usr/share/hplip/ui5/setupdialog.py", line 565, in showDevicesPage self.devices = device.probeDevices([self.bus], self.timeout, self.ttl, File "/usr/share/hplip/base/device.py", line 497, in probeDevices detected_devices = avahi.detectNetworkDevices(ttl, timeout) File "/usr/share/hplip/base/avahi.py", line 63, in detectNetworkDevices log.debug("ip=%s hn=%s ty=%s" %(ip,y['hn'], y['mdns'])) KeyError: 'mdns'
This is the line /usr/share/hplip/base/avahi.py gets from the printer (that starts with '='): =;wlan0;IPv4;HPB0227A5494EE\032\040HP\032Color\032Laser\032MFP\032178\032179\041;_printer._tcp;local;HPB0227A5494EE.local;10.0.0.157;515;"rfo=ipp/faxout" "Staple=F" "Sort=F" "Fax=T" "Scan=T" "Punch=0" "PaperMax=legal-A4" "PaperCustom=T" "Duplex=F" "Copies=T" "Color=T" "Collate=F" "Bind=F" "kind=document,envelope,label" "MDL=HP Color Laser MFP 179fnw" "MFG=HP" "usb_CMD=MFG:HP;CMD:SPLC,URF,FAX,FWV,PIC,RDS,AMPV,PWGRaster,EXT;PRN:4ZB97A;MDL:HP Color Laser MFP 178 179;CLS:PRINTER;CID:HPLJPCLMSV1;MODE:FAX3,SCN,SPL5,R000102;" "usb_MDL=HP Color Laser MFP 179fnw" "usb_MFG=HP" "adminurl=http://HPB0227A5494EE.local./sws/index.html?link=/sws/app/settings/network/AirPrint/AirPrint.html" "pdl=application/octet-stream,application/x-COLOR-GDI,image/jpeg,image/urf,application/PCLm" "product=(HP Color Laser MFP 179fnw)" "priority=49" "qtotal=1" "rp=auto" "ty=HP Color Laser MFP 178 179" "note=" "txtvers=1" The details = bits[9].split('" "') part of that line is: "rfo=ipp/faxout" "Staple=F" "Sort=F" "Fax=T" "Scan=T" "Punch=0" "PaperMax=legal-A4" "PaperCustom=T" "Duplex=F" "Copies=T" "Color=T" "Collate=F" "Bind=F" "kind=document,envelope,label" "MDL=HP Color Laser MFP 179fnw" "MFG=HP" "usb_CMD=MFG:HP; Note how the "ty" key is not found here, but in bits[16]: " "usb_MDL=HP Color Laser MFP 179fnw" "usb_MFG=HP" "adminurl=http://HPB0227A5494EE.local./sws/index.html?link=/sws/app/settings/network/AirPrint/AirPrint.html" "pdl=application/octet-stream,application/x-COLOR-GDI,image/jpeg,image/urf,application/PCLm" "product=(HP Color Laser MFP 179fnw)" "priority=49" "qtotal=1" "rp=auto" "ty=HP Color Laser MFP 178 179" "note=" "txtvers=1"
Possible clue here for MDNS with hp-probe -bnet -mmdns -ldebug : hp-probe[22323]: debug: Found 1 devices hp-probe[22323]: debug: Cache miss: hp_color_laser_mfp_179fnw hp-probe[22323]: debug: Reading file: /usr/share/hplip/data/models/models.dat hp-probe[22323]: debug: Searching for section [hp_color_laser_mfp_179fnw] in file /usr/share/hplip/data/models/models.dat
With this hack hp-setup was able to "detect" the printer (but only printer, not scanner): /usr/share/hplip/base/models.py def __getitem__(self, model): model = model.lower() # hack: if model == "hp_color_laser_mfp_179fnw": model = "hp_colorlaserjet_mfp_m178-m181"
Tried to copy old versions of /usr/share/hplip from my backup going months back - no luck. So I think something else must have been changed/updated, but I have no clue what it could be? I am thinking this is the problem: hp-probe[32167]: debug: Found 1 devices hp-probe[32167]: debug: Cache miss: hp_color_laser_mfp_179fnw hp-probe[32167]: debug: Reading file: /usr/share/hplip/data/models/models.dat hp-probe[32167]: debug: Searching for section [hp_color_laser_mfp_179fnw] in file /usr/share/hplip/data/models/models.dat It is unable to find "hp_color_laser_mfp_179fnw" in models.dat, but that would also be the case in earlier versions of hplip? The printer's system firmware version says JAN-27-2021, so I don't think the printer firmware has changed. Please let me know if there is anything I can provide or try out to help debug this.
Fixed the problem. I downloaded the printer/scanner driver again from https://support.hp.com/vn-en/drivers/selfservice/hp-color-laser-mfp-170-printer-series/24494365/model/24494369 (uld-hp_V1.00.39.12_00.15.tar.gz). Running an install said both printer and scanner driver was already installed and had no effect. So I did an uninstall and then install again and that fixed the problem. So it seems something in the emerge updates wiped something that is now fixed by a reinstall of the driver.