I have tried to setup an USB HP Laserjet Professional P1102w printer on Slackware 15.0 32 bit Intel using
hp-setup, but everytime I used the program, I obtained an error message saying that no device could be found on port usb:
Using
lsusb, I could detect the printer and find its bus and USB id. There were also entries under
/sys/bus/usb/devices/1-2/uevent that matched lsusb output, but giving bus id and device id did not help with hp-setup.
Instead, I used directly
Code:
seamonkey http://localhost:631
hp-plugin
to set up the print queue with hpcups as driver and download the HP proprietary plugin. I could successfully print a test page, and print
as a regular user with the web browser. But hp-setup kept indicating it could not find a printer.
I have found in
/var/log/syslog the folllowing entries
Code:
hp-setup: io/hpmud/model.c 532: no HP_LaserJet_Professional_P1102w attributes found in /usr/share/hplip/data/models/models.dat
Mar 4 17:48:05 sashimi hp-setup: io/hpmud/model.c 543: no HP_LaserJet_Professional_P1102w attributes found in /usr/share/hplip/data/models/unreleased/unreleased.dat
Mar 4 17:48:05 sashimi hp-setup: io/hpmud/musb.c 2129: ignoring hp:/usb/HP_LaserJet_Professional_P1102w?serial=000000000Q91VDW2SI1c support=0
Mar 4 17:48:05 sashimi hp-setup: hp-setup[3650]: error: No devices found on bus: usb
The file
/usr/share/hplip/data/models/models.dat actually contains an entry
Code:
[hp_laserjet_professional_p1102w]
align-type=0
clean-type=0
color-cal-type=0
copy-type=0
embedded-server-type=0
fax-type=0
fw-download=False
icon=HP_LaserJet_1012.png
io-mfp-mode=6
io-mode=1
io-support=10
job-storage=0
linefeed-cal-type=0
model1=HP LaserJet Professional P1102w Printer
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=1
plugin-reason=1
power-settings=0
pq-diag-type=0
r-type=0
so I don't understand what is the cause of the message in syslog.
The error log for CUPS contains
Code:
DEVICE_URI=usb://HP/LaserJet%20Professional%20P1102w?serial=000000000Q91VDW2SI1c
PID 3396 (/usr/lib/cups/filter/hpcups) exited with no errors.
So it looks like the HPLIP plugin and the driver are correctly configured
by CUPS, but for some reason, the hp-setup and all other HP utilities fail
to detect that.
On Ubuntu 18.04 LTS and Ubuntu 20.04 LTS, the same printer can be configured
with CUPS and a
foo2zjs driver or
hp-setup -i.
Is there some missing dependency in the HPLIP python code on Slackware 15.0 ?