[CUPS][HP] Printer not working althought "printing completed" message
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[CUPS][HP] Printer not working althought "printing completed" message
Hello,
I'm using HP Envy 4025 via Wi-Fi. I configured the printer with CUPS. When I try to print a test page from CUPS Web Application the printer makes some noise, but the computer says immediately "printing completed" and nothing is printed.
I installed the hplip driver from Arch Linux User Repositories. Should I somehow enable this driver using modprobe? 'modprobe hplip' or 'modprobe hp' isn't working. Is there any other driver, which I must install?
I also tried the hp-setup command. I did 'sudo hp-setup -i' for interactive mode, entered '1' for network printer, then I'm waiting for a few seconds and I get the following error message:
Code:
error: No device selected/specified or that supports this functionality.
I also turned off the router, my computer and the printer for a few seconds, but it is still not working.
The first thing to do is determine if you have a level of HPLIP that supports your printer. If this is a new model, usually only the latest HPLIP will work. Google HP 4025 linux driver, and find out if the one you have can work.
You do not need to modprobe HPLIP. Configure the printer through the CUPS interface. Have you set IP address on the printer? Check your doc on how to do that. Printer work b est on fixed IP addresses, not DHCP. You should be able to ping the IP address of the printer. Does that work?
1) Do you know the printer IP address? It's usually a good idea to consider assigning a static IP address, but if using DHCP, it is usually possible to configure the router to reserve a given address for a particular device (based on its MAC address).
If you're not sure of it's address, check the printer front-panel or via the router config.
2) Can you ping the printer by its IP address successfully?
3) Assuming the last two points hold true, you should then be able to configure the printer with 'hp-setup' (as root). You could do this by referencing the printer IP address specifically eg 'hp-setup 192.168.1.5'
Quote:
I installed the hplip driver from Arch Linux User Repositories. Should I somehow enable this driver using modprobe? 'modprobe hplip' or 'modprobe hp' isn't working. Is there any other driver, which I must install?
No, modprobe is used for kernel drivers. The CUPS drivers are user-space programs called as part of a CUPS filter chain when a print job is processed.
Yes, I know the IP address and ping works with this address.
I don't know if the address is static, but I turned off the router for a few seconds and it's still the same address.
I found a driver for linux here, it's a zip file containing an .RFU file. The file command says 'HP Printer Job Language data'. I don't know what to do with this file. I did 'chmod +x *.rfu && ./*.rfu' but it isn't executable.
Quote:
Have you set IP address on the printer?
CUPS did this automatically, I think. CUPS says 'socket://192.168.1.30:9100' and it's the right address.
Quote:
ou could do this by referencing the printer IP address specifically eg 'hp-setup 192.168.1.5'
Still getting the same error message
Code:
$ sudo hp-setup -i 192.168.1.30
...
error: No device selected/specified or that supports this functionality.
Required by "some" printers, but not installed as a dep of hplip. May not be your issue, but I had an older usb deskjet that needed that little thing or it only "pretended" to print. With a previous issue on it where it would try to print, but didn't, which turned out that the ink was empty (empty by hp standards is < 20%). With recent reports of firmware that specifically fails for non-hp ink cartridges.
Output of lpstat -a? Does it shows your printer?
SELinux enabled? If yes, check /var/log/audit/audit.log and look for cups-related denials. Then issue "setsebool -P cups_execmem 1"
Also, hop into your browser and check http://127.0.0.631 and look for your printer there. I would suggest to change it to something like ipp://<IP-ADDRESS>:631/ipp/port1
Also, hop into your browser and check http://127.0.0.631 and look for your printer there. I would suggest to change it to something like ipp://<IP-ADDRESS>:631/ipp/port1
In order to use HPLIP, the 'hp' backend must be used AFAIU. The generic CUPS network backends can be used in other circumstances however.
I'm not an HP printer user. But I think it supports IPP on port 631. Jetdirect can be used as well on port 9100. And those settings can be configured under the given http link. It's just a matter of modifying the current printer by a) using the current driver; b) choose the PPD at /usr/share/cups/model.
I'm not an HP printer user. But I think it supports IPP on port 631. Jetdirect can be used as well on port 9100. And those settings can be configured under the given http link.
Yes, I think that is the case as well, and it can be checked with a simple nmap scan to find which out which ports the printer is listening on, however the following HPLIP troubleshooting guide mentions the following
Common errors in the printer queue detection area to watch out for:
* Printer is not installed using the hp:/ backend: Setup the printer using "hp-setup" (check the release notes for your HPLIP version for special distro specific considerations, i.e. su or sudo is needed).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.