Sample Header Ad - 728x90

How to add a USB printer using lpadmin

6 votes
1 answer
19172 views
I'm trying to use this old technology called USB ;) I call it old because all the tutorial that I find on-line deal with wireless printers or IP ones. The man for lpadmin is very unclear how to go about adding a USB printer, and so I come here for some help. When I print dmesg I can see my printer being detected over USB usb 1-1.3: new high-speed USB device number 7 using dwc_otg usb 1-1.3: New USB device found, idVendor=03f0, idProduct=2b17 usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.3: Product: HP LaserJet 1020 usb 1-1.3: Manufacturer: Hewlett-Packard usb 1-1.3: SerialNumber: FN0JW5E usblp 1-1.3:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17 # My question is How can I add it, because it seams this command is adding the printer but there is no communication, and I'm not sure if I have malformed the USB part:
lpadmin -p HP1020 -E -v "usb://Hewlett-Packard/HP%20LaserJet%201020?serial=FN0JW5E" -m lsb/usr/hplip/HP/hp-laserjet_1020-hpijs.ppd
Also, what would be the simplest command to check if I can communicate with the printer. I don't need to print anything, just to be able to see there is communication. This will help me debug the drivers.
Asked by David Gatti (275 rep)
Mar 11, 2017, 10:34 AM
Last activity: Apr 17, 2024, 11:53 AM