LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02:29 PM   #1
spiri13
Member
 
Registered: Jun 2016
Posts: 57

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 02:56 PM.
 
Old 09-28-2016, 03:09 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,159

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
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, 03:11 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
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, 03:40 PM   #4
spiri13
Member
 
Registered: Jun 2016
Posts: 57

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 03:43 PM.
 
Old 09-28-2016, 03:57 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
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, 04:00 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

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

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ 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, 05: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, 06:04 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
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, 06: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, 06:37 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
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, 06:45 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
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, 10:00 AM   #13
spiri13
Member
 
Registered: Jun 2016
Posts: 57

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, 10:34 AM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

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

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 05:40 PM
Printing problem in network printing, strange cups "error" message LightSeeker Linux - Hardware 9 10-27-2013 03:29 PM
12.04 USB printer suddenly stalls "Rendering completed" qianian Ubuntu 3 06-13-2012 03:00 PM
Printing from XP to a Slug via CUPS - "Get-Printer-Attributes successful-ok " wibbleypants Linux - Networking 0 01-28-2009 01:24 PM
CUPS v6 Windows Driver Printing Preferences--"Operation could not be completed" meself88 Linux - General 1 07-12-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

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
Open Source Consulting | Domain Registration