LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-28-2016, 01:29 PM   #1
spiri13
Member
 
Registered: Jun 2016
Posts: 53

Rep: Reputation: Disabled
[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.

How to print this test page?
Please help.

Last edited by spiri13; 09-28-2016 at 01:56 PM.
 
Old 09-28-2016, 02:09 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
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?
 
Old 09-28-2016, 02:11 PM   #3
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
 
Old 09-28-2016, 02:40 PM   #4
spiri13
Member
 
Registered: Jun 2016
Posts: 53

Original Poster
Rep: Reputation: Disabled
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.

Last edited by spiri13; 09-28-2016 at 02:43 PM.
 
Old 09-28-2016, 02:57 PM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
CUPS did this automatically, I think. CUPS says 'socket://192.168.1.30:9100' and it's the right address.
If you're using HPLIP, the 'hp' backend should be in use and the URI should look more like
'hp:/net/<printer_model>?ip=192.168.1.30'
 
Old 09-28-2016, 03:00 PM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
Try like this
Code:
sudo hp-setup 192.168.1.30
If that doesn't work, run
Code:
hp-doctor
 
Old 09-28-2016, 04:32 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,973
Blog Entries: 1

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
$ sudo apt-get install pnm2ppa

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.
 
Old 09-28-2016, 04:42 PM   #8
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
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

Hope it helps.
 
Old 09-28-2016, 05:04 PM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
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.
 
Old 09-28-2016, 05:16 PM   #10
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
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.
 
Old 09-28-2016, 05:37 PM   #11
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
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

http://hplipopensource.com/node/332

Quote:
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).
 
Old 09-28-2016, 05:45 PM   #12
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
Further to this HPLIP provides the hp-makeuri utility which can be used to manually generate a printer URI eg
Code:
hp-makeuri 192.168.1.30
It will generate a URI with 'hp:/...' backend.
 
Old 09-29-2016, 09:00 AM   #13
spiri13
Member
 
Registered: Jun 2016
Posts: 53

Original Poster
Rep: Reputation: Disabled
I made a mistake.

I first configured the printer and after that I installed hplip.

I just used hp-makeuri and now it's working!

Thank you for the support.
 
Old 09-29-2016, 09:34 AM   #14
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 1,940

Rep: Reputation: 286Reputation: 286Reputation: 286
It's good to read of your success with this.
 
Old 09-29-2016, 02:00 PM   #15
spiri13
Member
 
Registered: Jun 2016
Posts: 53

Original Poster
Rep: Reputation: Disabled
I have also another canon printer at home.

I installed the capt drivers from canon and I know the IP address of the device.

But there is no 'capt-makeuri' or something like this.

How do I generate a URL for this printer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CUPS printing - "System V Printer" JoseKreif Linux - Newbie 4 08-19-2016 04:40 PM
Printing problem in network printing, strange cups "error" message LightSeeker Linux - Hardware 9 10-27-2013 02:29 PM
12.04 USB printer suddenly stalls "Rendering completed" qianian Ubuntu 3 06-13-2012 02:00 PM
Printing from XP to a Slug via CUPS - "Get-Printer-Attributes successful-ok " wibbleypants Linux - Networking 0 01-28-2009 12:24 PM
CUPS v6 Windows Driver Printing Preferences--"Operation could not be completed" meself88 Linux - General 1 07-12-2006 07:44 AM


All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration