omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

HP Smart Tank 520/540 USB printer not plug-and-play: driverless queue always fails (universal filter failed), hplip not shipped

Open HIMANSHU11827 opened this issue 2 months ago • 1 comments

Bug report: HP Smart Tank USB printers are not plug-and-play on Omarchy

System

  • Omarchy 4.0.3-1, kernel 7.2.4-arch1-2, CUPS 2.4.19-1, cups-filters 2.0.1-3
  • HP Smart Tank 529 (520_540 series), USB vid:pid 03F0:4554, SN TH48Q4T074, IEEE-1284 MFG:HP;MDL:Smart Tank 520_540 series;CMD:PCL3GUI,...

Summary

Plugging in an HP Smart Tank 529 and using the default CUPS "Add Printer" flow creates a driverless/IPP-Everywhere queue that fails on every job with universal filter failed / pdftopdf stopped with status 1. HP drivers (hplip) are not installed on a fresh image, so there are no PPDs for the device and a normal user cannot print without terminal + pacman + driver setup.

Steps to reproduce (fresh install)

  1. Fresh Omarchy install, plug HP Smart Tank 529 into USB, power on.
  2. Settings → Printers → Add Printer → pick HP Smart Tank 520_540 series (only driverless/IPP option offered).
  3. Print anything (Ctrl+P in LibreOffice/PDF viewer). Every job fails:
cfFilterChain: pdftopdf (PID ...) stopped with status 1
PID ... (/usr/lib/cups/filter/universal) stopped with status 1
printer-state-message="universal filter failed."

Expected

  • Plug in → prints (A4/color), scan works, no terminal, no sudo pacman, no plugin download, no group edits.

Root cause

  • hplip is not shipped (only 29 generic CUPS PPDs on the image), and the driverless queue is broken for this PCL3GUI inkjet class.
  • Enabling ipp-usb fights the kernel usblp driver — the USB device flaps (usblp0: removed repeatedly) and the hplip backend then fails with open device failed stat=12.
  • A queue referencing an hplip PPD disappears entirely from CUPS if hplip is ever uninstalled, which makes PnP state fragile.
  • Bonus: default mirror is a single server (stable-mirror.omarchy.org) that intermittently times out on resolve, so the needed package downloads fail unreliable times.

Verified fix on this machine

sudo pacman -S hplip gutenprint ipp-usb cups-filters sane python-pyqt5 libusb usbutils wget python-pillow python-reportlab foomatic-db-gutenprint-ppds
sudo systemctl disable --now ipp-usb    # stop usblp/ipp friction
sudo lpadmin -p HPSmartTank -E \
  -m drv:///hp/hpcups.drv/hp-smart_tank_520_540_series.ppd \
  -v "hp:/usb/Smart_Tank_520_540_series?serial=TH48Q4T074"
sudo lpadmin -d HPSmartTank

After this, Ctrl+P in any app shows "HPSmartTank" and prints reliably even after USB unplug/replug. hplip 1:3.26.4 supports this model.

Requested

  • Ship hplip + gutenprint + foomatic-db-gutenprint-ppds by default (or auto-suggest installing them when an HP USB printer is detected).
  • When a driverless queue fails with "universal filter failed", fall back to the matching hplip PPD and show a readable hint ("install hplip") instead of a silent failure.
  • Ensure ipp-usb does not break established usblp/hp queues on standard USB printing.
  • Add official Arch mirrors as fallback in the default mirrorlist.

HIMANSHU11827 avatar Sep 14 '26 15:09 HIMANSHU11827

Diagnosed by reading quattro and the related reports. Nothing was reproduced, because that needs this printer. The likely cause of the failed jobs is a known bug in libcupsfilters, not the missing HP driver.

The universal filter failed part. pdftopdf exiting 1 and then universal filter failed is exactly what libcupsfilters 2.2.1-2 does on PDFs whose annotations have no appearance stream. This includes the link annotations that browsers and many apps write. #11186 has a disposable-worker reproduction: that build fails, Arch's fixed build (2.2.1.r28, 2026-10-06, upstream fix OpenPrinting/libcupsfilters#255) passes, and going back fails again. The same failure shows up on Epson and Canon driverless queues in #11186 and #13023. It happens before any printer driver runs, so a driverless queue would fail the same way even if hplip had been installed. Installing hplip also brought in other packages and a different backend and queue at the same time, which is probably why things started working, but it doesn't show that hplip is what fixed it. This report doesn't give the libcupsfilters version, so it isn't confirmed to be the same bug. That is why this stays open rather than being closed as a duplicate of #11186.

What would settle it. Run grep libcupsfilters /var/log/pacman.log | tail -3 to show which version you had when jobs failed. If you still have a failing setup, run lpinfo -v and lpoptions -p <queue> -l | head for the original driverless queue, which show whether it used usb:// or IPP-over-USB. Once a fixed libcupsfilters reaches stable, please also say whether a fresh driverless queue prints without hplip. If it does, this printer needs no extra driver. If the conversion succeeds but the printer still refuses the job, then this printer needs more than the fix, and that is a separate problem.

The rest of the request is decisions for the maintainer, not defects in this repository: shipping hplip, gutenprint and foomatic by default; falling back to an hplip PPD; how ipp-usb and usblp should coexist; and adding Arch mirrors as a fallback for the stable channel. Today quattro ships cups, cups-filters and Print Settings but no model drivers (install/omarchy-base.packages), and stable uses a single mirror (default/pacman/mirrorlist-stable). Shipping the fixed libcupsfilters to stable is already waiting on the maintainer in #11186.

Diagnosed by Claude Opus 5.5. Codex Medium gave a second opinion and agreed: the libcupsfilters bug is the most likely explanation, but it isn't proven to be the same bug, so this shouldn't be closed as a duplicate, and there is no code change to make here. It may have read the earlier diagnosis on #11186, so its agreement is not fully independent. Waiting on the maintainer, and on the version details above if you can share them.

omarchybot avatar Oct 12 '26 00:10 omarchybot