USB printer && ulpt.ko

Matthias Apitz guru at unixarea.de
Mon Mar 21 11:01:09 UTC 2016


Hello,


The pkg message of the pkh hplip says:

$ pkg info --pkg-message hplip-3.14.10_1 
hplip-3.14.10_1:
Always:
=====================================================================

HPLIP expects printers to be attached as a ugen(4) devices.  This
means that you must NOT have "device ulpt" in your kernel and ulpt
must NOT be loaded as a kernel module (you may also want to compile
...

and I do not have compiled in the device and not lodaded at boot:

# kldload ulpt
# 

i.e. I could load it fine which shows that ulpt is not loaded.

It seems that on device attach the devd fires up the loading of it:

# tail /var/log/messages
Mar 20 20:21:00 freeyaz kernel: ugen0.3: <HP> at usbus0
Mar 20 20:21:00 freeyaz root: Unknown USB device: vendor 0x03f0 product 0xac11 bus uhub0
Mar 20 20:21:00 freeyaz kernel: ulpt0: <HP Deskjet 2510 series, class 0/0, rev 2.00/1.00, addr 3> on usbus0
Mar 20 20:21:00 freeyaz kernel: ulpt0: using bi-directional mode
...

How is the correct way to avoid this loading via /etc/devd/usb.conf?

Thanks

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045


More information about the freebsd-questions mailing list