Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-04-2014, 05:35 PM
|
#1
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
HP Envy 110 Printer, Device Communication Error (5012)
Hi:
The last time I had my Slackware machine on my HP Envy Printer worked fine. Since than there have been a few nasty thunderstorms with lightning. I hope it didn't destroy my printer.
It made a copy for me a while ago so that's working.
It just won't print any job so I cancelled them.
The HP Device Manager says:
Code:
the queue Envy_110 is not enabled /usr/lib64/cups/backend/hpfailed
It's suggested when I troubleshoot with the HP Device Manager to enable it select the 'Enable' checkbox in the "Polices" tab for the printer in the printer administration tool to start.
I do not have a policies tab Took a screenshot to show you what's going on.
http://s1052.photobucket.com/user/Ul...Error.png.html
http://s1052.photobucket.com/user/Ul...nter2.png.html
I have been in the Settings>Print Settings twice and ensured that it is enabled but it doesn't make any difference.
Any help would be greatly appreciated-
|
|
|
07-05-2014, 02:07 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
Hey Zt,
Really interesting examination of a related problem
I'm not sure if it's 'cupsd.conf' or 'printers.conf' but check and see if
Code:
cat /etc/cups/printers.conf (or maybe cupsd.conf) | grep -n ' /usr/lib64/cups/backend/hpfailed'
returns anything interesting.
What may have happened when you had a power outage is cups marked the printer as failed and now HP Device Manager cannot get it to reconsider that hasty decision. The line number will be helpful in locating it to fix it.
BTW, did you ever flash that bios on the new mother board? How did that work out?
|
|
|
07-05-2014, 08:22 AM
|
#3
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
Something you might want to try... you have HPLIP on your system, so:
It can't hurt to simply delete a printer and re add it with hp-setup (part of HPLIP); you do not need to be logged in as root to do this (you'll be prompted for the password when it's needed).
Open CUPS in your browser ( http://localhost:631) then select Printers. Select the printer, then Maintenance, then Cancel all Jobs (just to make sure there are no pending jobs). Then select Administration, then Delete Printer.
Exit CUPS.
Open a terminal window and enter
This will walk you through discovery of the printer (which reads all the information from the printer) and creates the CUPS entries for you. You might want to use a short name for the printer on the window that displays the information read from the printer.
If hp-setup can't see the printer, exit hp-setup and disconnect the USB cable, wait a few seconds and plug it back in in either the same jack or a different USB jack and restart hp-setup. You may want to shut the printer off and then turn it back on (wait while it goes through its little start up sequence before executing hp-setp).
Most of the time, this will "fix" the problems you're describing.
By the way, once you've installed an H-P printer with hp-setp you'll notice a blue circle with the H-P logo on your panel. You can manage the printer from that and do all sorts of things. Also, once HPLIP is running, if you plug in another H-P device it will be automatically configured and added to CUPS for you.
The final step is to open CUPS again, select Printers, select the printer, select Administration and select Set As Server Default. That way, you can do things like
Code:
lp filename
cat filename | lp
awk -f filename.awk file | lp
and things like that.
Your printer may have gotten fried (may!). In that case, well, it's a copy machine or a doorstop, sorry.
Hope this helps some.
|
|
1 members found this post helpful.
|
07-05-2014, 09:47 AM
|
#4
|
Member
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 955
|
The printer is stopped, according to the screenshot.
This happens to me sometimes too, I don't know why.
Note that even if the printer is turned off, it will appear as "started/idle".
Click on the "Start printer", I think it will ask for root password.
There is also a command line option
http://www.linuxquestions.org/questi...6/#post5111483
|
|
|
07-05-2014, 11:39 AM
|
#5
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by dijetlo
Hey Zt,
Really interesting examination of a related problem
I'm not sure if it's 'cupsd.conf' or 'printers.conf' but check and see if
Code:
cat /etc/cups/printers.conf (or maybe cupsd.conf) | grep -n ' /usr/lib64/cups/backend/hpfailed'
returns anything interesting.
What may have happened when you had a power outage is cups marked the printer as failed and now HP Device Manager cannot get it to reconsider that hasty decision. The line number will be helpful in locating it to fix it.
BTW, did you ever flash that bios on the new mother board? How did that work out?
|
I see the reason paused and the type # in the readout, not sure what that means--
Code:
root@redhatcat:~# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.5.4
# Written by cupsd on 2014-07-04 08:38
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer ENVY_110>
UUID urn:uuid:52ab4cc6-31cd-321c-6657-f33a2c17d0e7
Info ENVY_110
MakeModel HP Envy 110 Series, hpcups 3.13.10
DeviceURI hp:/net/ENVY_110_series?ip=192.168.254.9
State Stopped
StateMessage /usr/lib64/cups/backend/hp failed
StateTime 1404477454
Reason paused
Type 36892
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
BTW this printer is not connected to my desktop tower via usb.
It is connected to my wireless network.
Haven't flashed the BIOS yet as MSI just made a new BIOS update and I haven't been able to find the box the mobo came in. MSI needs the model and serial number to give me confirmation for the correct BIOS Update.
|
|
|
07-05-2014, 11:57 AM
|
#6
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by tronayne
Something you might want to try... you have HPLIP on your system, so:
It can't hurt to simply delete a printer and re add it with hp-setup (part of HPLIP); you do not need to be logged in as root to do this (you'll be prompted for the password when it's needed).
Open CUPS in your browser ( http://localhost:631) then select Printers. Select the printer, then Maintenance, then Cancel all Jobs (just to make sure there are no pending jobs). Then select Administration, then Delete Printer.
Exit CUPS.
Open a terminal window and enter
This will walk you through discovery of the printer (which reads all the information from the printer) and creates the CUPS entries for you. You might want to use a short name for the printer on the window that displays the information read from the printer.
If hp-setup can't see the printer, exit hp-setup and disconnect the USB cable, wait a few seconds and plug it back in in either the same jack or a different USB jack and restart hp-setup. You may want to shut the printer off and then turn it back on (wait while it goes through its little start up sequence before executing hp-setp).
Most of the time, this will "fix" the problems you're describing.
By the way, once you've installed an H-P printer with hp-setp you'll notice a blue circle with the H-P logo on your panel. You can manage the printer from that and do all sorts of things. Also, once HPLIP is running, if you plug in another H-P device it will be automatically configured and added to CUPS for you.
The final step is to open CUPS again, select Printers, select the printer, select Administration and select Set As Server Default. That way, you can do things like
Code:
lp filename
cat filename | lp
awk -f filename.awk file | lp
and things like that.
Your printer may have gotten fried (may!). In that case, well, it's a copy machine or a doorstop, sorry.
Hope this helps some.
|
Your Instructions worked! Thank You so much!
Opening Cups in my browser going through Maintenance, cancelling all jobs and deleting the printer is just what I did. After doing so I used the terminal to reset "hp-setup"
As soon as I closed the terminal I went directly to the document I needed printed and it was a success!
|
|
|
07-05-2014, 11:59 AM
|
#7
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by Paulo2
The printer is stopped, according to the screenshot.
This happens to me sometimes too, I don't know why.
Note that even if the printer is turned off, it will appear as "started/idle".
Click on the "Start printer", I think it will ask for root password.
There is also a command line option
http://www.linuxquestions.org/questi...6/#post5111483
|
I tried 'Start Printer' several times and it did ask for the root psswrd but for some reason it didn't help.
Thanks for the link-
|
|
|
07-05-2014, 12:09 PM
|
#8
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
It nice to have a working printer!
http://s1052.photobucket.com/user/Ul...nCups.png.html
http://s1052.photobucket.com/user/Ul...Setup.png.html
@dijetlo:
Is it possibly that when the lights flickered a few times during the thunderstorm is that what made cups hick-cup or short circuit? (like you said cups couldn't reconsider)
I'm thinking that your correct because my internet did go down for maybe 2-5 min's and than the network was back up and running again.
Last edited by Ztcoracat; 07-05-2014 at 12:11 PM.
|
|
|
All times are GMT -5. The time now is 10:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|