HP Laser 107w printer not working on Ubuntu 20.04
Using HP Laser 107a with Ubuntu 20.04
Recently bought a HP laser 107a as a budget printer on a laptop running Ubuntu 20.04. The reason I bought it was that, I read it was compatible with Linux.
When I received the printed, I tried following the tutoriallinux guide. So, I downloaded the uld driver from the hp site (at that point I found out that HP Laser 107a was basically a rebranded Samsung printer which used the uld driver). When I connected the printer to the laptop, although the printer was recognized I was unable to print. Initially, the "Printing Options" dialog was empty and upon closer inspection I realized that there was no PPD.
Then I came across the following ask ubuntu question which addresses 18.04 LTS and 19.04. I followed as closely as possible the instructions and I managed to select the proper driver (HP Laser 10x Series), either by selecting the database (initially), or by locating the PPD file in the /opt/ folder. In either case the result was the same:
- I managed to get the Printer Options filed
- I was not able to print. Whenever I sent something to the printer, I got the message that the job was submitted and the completed.
Upon closer inspection I realized that the URI of the printer was "file:///dev/null", which explains why everything was submitted. Also, whenever I opened the printer dialog from e.g. Libreoffice or a PDF viewer, and I was trying to select the printer, all I got was "Waiting for printer ...". I suspect this might be also be explained by the URI.
My next step, was to find out whether the printer was OK. Initially, I connected it to a Windows machine, and without no problems I got a test page.
The next step was to try another distribution. I tried Manjaro with a 5.4 kernel and followed a similar path with the tutoriallinux article, running Xcfe. I managed to get the test page without problems or hiccups also. I additionally checked the URI dialog from the CUPS client and saw that the URI was usb:/HP/[....] (i.e. not file:///dev/null)
I've also tried the Debugging Printing Problems page, with limited success, because I can't get lpinfo -v in my Ubuntu 20.04 installation to identify the printer (in Manjaro it was identified).
At this point, I am not sure if its a Ubuntu problem or if its something wrong with my setup from the upgrade or previous HP installations. I would appreciate any guidance on the matter.
=================UPDATE:=====================
lpinfo -v output (# replaces an A-z0-9)
/usr/lib/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 181 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=7
*lsusb -v | grep -A 3 bInterfaceClass.7
can't get debug descriptor: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 2 Bidirectional
iInterface 0
--
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 4
iInterface 0
can't get debug descriptor: Resource temporarily unavailable
--
bInterfaceClass 7 Printer
bInterfaceSubClass 1 Printer
bInterfaceProtocol 4
iInterface 0
systemctl list-units "ippusbxd*"
UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
Here's how I got my HP Laser 107a to work on my freshly installed Ubuntu 20.04.
Step 1: Remove ippusbxd
as mentioned in the previous answer.
sudo apt purge ippusbxd
Step 2: Download and install the HP Laser 10x series drivers.
wget https://ftp.hp.com/pub/softlib/software13/printers/CLP150/uld-hp_V1.00.39.12_00.15.tar.gz
tar -xvf uld-hp_V1.00.39.12_00.15.tar.gz
cd uld/
sudo ./install.sh
Step 3: Open Settings
and remove any existing instance if exists. Select Additional Printer Settings
and click Add
on the next screen.
Step 4: Select the HP Laser 103 107 108
option and click Forward
. This will start searching for drivers. Wait for that to finish.
Step 5: On the next screen with Select printer from database
checked select HP
from the list and click Forward
.
Step 6: Select the Laser 10x
option and click Forward
. On the next screen click Apply
and it is done! You can print a test page from the next screen to verify the setup.