Solved I can' t print anything (HP Deskjet F4210), ulpt0: output error

Hi, I'm new to FreeBSD, and I have resolved several things by myself, but I can't resolve this one.

My printer is a HP Deskjet F4210, and I can't print anything. When I turn on the device (or plug in the USB port) I can see it with "usbconfig":

Code:
ugen1.2: <DeskJet F4200 series HP, Inc> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

the two device entries are created (/dev/ulpt0 and /dev/unlpt0).

and the next appears in /var/log/messages:

Code:
Mar 22 23:37:25 x kernel: ugen1.2: <HP Deskjet F4200 series> at usbus1
Mar 22 23:37:25 x kernel: ulpt0 on uhub0
Mar 22 23:37:25 x kernel: ulpt0: <HP Deskjet F4200 series, class 0/0, rev 2.00/1.00, addr 1> on usbus1
Mar 22 23:37:25 x kernel: ulpt0: using bi-directional mode
Mar 22 23:37:25 x kernel: ulpt0: output error
Mar 22 23:37:25 x webcamd[2451]: webcamd: Cannot find USB device
Mar 22 23:37:25 x webcamd[2474]: webcamd: Cannot find USB device

Apparently, that "output error" is the cause. If I plug the device in another USB port I obtain the same text.

and I can't print:

Code:
cp file.txt /dev/unlpt0

then no result and no messages.

After following the quick start steps:

Code:
$ printf hello | lpr
lpr: Error - No default destination.


Thank you for your help.
 
Thank you, I will try. I should say that I tried installing hplips and then the commands "hp-print" or "hp-scan", but no success, gave an error that I can't remember right now, so I uninstalled hplips until basic functioning (mi first post) can work.
 
There is scant information on your printer from HP or the Web. Assuming it only has a usb connection and no ethernet/wireless capablility, the reason two usb ports are created is some printers need to reset the connection:
https://docs.freebsd.org/en/books/handbook/printing/#printing-connections

Also could not find the type of Print Descriptive Language (PDL) it uses - your best bet is cups/hplip as scottro suggested and try the different usb ports in the configuration interface.
 
After installing cups and hplip, and configuring cups then I can print perfectly with applications. Cups alone was not sufficient, it needed hplip too.

The "basic printing" described in my first post still not working, maybe because my printer does not accept that functioning. The "ulpt0: output error" still appearing when I turn on the printer, but I will ignore it.

Problem solved, thank you for your help.
 
Back
Top