LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2021, 01:42 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Question HP communication issues - "Device communication error"


I notice via HPLIP, that the connection or communication to my printer is randomly lost at times. I have also attributed this perhaps to the firmware updates - sadly these firmware updates are security updates so I cannot really just ignore them, but then again maybe that is not he case I do not know - because usually a security update shouldn't affect functionality, but then again prior me to applying the last security update from HP (firmware) , I did not have this sort of problem.

Since I am on Slackware 14.2 I am using stock HPLIP which is version 3.16.5, and yes after a few minutes, the printer itself does go into 'power saving' or 'sleep' mode by default, however that shouldn't affect me printing, because it is set to wake and print when a print command is sent. Again though I can only attribute to the loss of communication via the last firmware update; and really the only solution is to remove the printer from HPLIP and reinstall it, because the status of the printer always shows 'stopped', and me trying to start the printer gives me an error, as if it isn't a valid command being sent to the printer. I haven't actually tried the diagnostics utility either from HPLIP, I guess I should have.

So I mean my question is what is another way of working around this issue, until Slackware15.0 is out with a later version of HPLIP? Again also to reiterate, normally I don't apply firmware versions for any sort of functionality - the firmware updates I get from HP specifically are just security updates, and if anyone is wondering the type of printer I have is an HP M553 color laserjet.

This is a sample of HPLIP's log:
Click image for larger version

Name:	Screenshot_2021-10-15_13-37-44.png
Views:	57
Size:	186.5 KB
ID:	37472Click image for larger version

Name:	Screenshot_2021-10-15_13-38-03.png
Views:	27
Size:	189.0 KB
ID:	37473
 
Old 10-15-2021, 01:50 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Also I have not had printing issues under Windows (Windows10 VM), it just works, so I am beginning to think that this version of HPLIP is not liking these firmware updates - which is also why in the requests for --Current thread I have been the one requesting the next HPLIP version. I guess if it comes down to it, maybe I should just ignore the security firmware updates? I mean it is a home setting anyways.....
 
Old 10-15-2021, 02:55 PM   #3
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,246

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Unless you have set up this printer in an unusual way, printing on Slackware goes through cups. HPLIP supplies the drivers for each HP supported printer.

As far as I know you can install a later version of HPLIP, however, it won't chnage anything unless the driver for your M553 has been updated. Updates to HPLIP are mostly to add new printers to the archive.

I would suggest you look at the cups logs to see if you can get a handle on the problem.
Could you tell us the type of connection please.
 
Old 10-15-2021, 03:01 PM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by camorri View Post
Unless you have set up this printer in an unusual way, printing on Slackware goes through cups. HPLIP supplies the drivers for each HP supported printer.

As far as I know you can install a later version of HPLIP, however, it won't chnage anything unless the driver for your M553 has been updated. Updates to HPLIP are mostly to add new printers to the archive.

I would suggest you look at the cups logs to see if you can get a handle on the problem.
Could you tell us the type of connection please.
I haven't thought of just CUPS I'll have to look more into that. As for the connection, it is a network only printer - via ethernet to my router. As for HPLIP when I encounter this problem, as stated in my previous post - it shows the printer as "stopped", and me clicking on "start printer" , just gives me a communication error. So for now I can still only conclude that HPLIP (this version), just does not play nice with the firmware updates. As of right now the status shows 'idle', and the queue is normal (not stopped), but it will eventually "stop" at some point, and I will then make a note to show more info. I don't know how to check CUPS itself, if I can be given a clue, I will post logs from that.

As for the 'driver' - no change as far as I know either, as HPLIP shows the driver "lsb/usr/HP/hp-color_laserjet_m553-ps.ppd.gz" (doesn't show what version number, so all I can say it is what is included with Slackware 14.2) - I never updated any actual drivers on Slackware itself - perhaps maybe I should ? I don't know.

Last edited by Jeebizz; 10-15-2021 at 03:02 PM.
 
Old 10-15-2021, 03:06 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Bleh brainfart on my last post , this is cups error log and access if that matters?
 
Old 10-15-2021, 03:07 PM   #6
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,246

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
For the error log, look in /var/log/cups/ the error log should be there.
 
Old 10-15-2021, 03:08 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by camorri View Post
For the error log, look in /var/log/cups/ the error log should be there.
Yea brainfart - I posted the logs check post6292403
 
Old 10-15-2021, 03:20 PM   #8
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,246

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
It looks to me as if something is not correct in the IPP setup for your printer. There is a how to at https://www.howtoforge.com/ipp_based_print_server_cups that might help. Right now, im away from home where I have a HP printer, it is not set up with IPP however. It is USB attached to a rasberry pi 3 that acts as a print server.

Possibly someone else with more experience with Cups and Ipp will chime in.
 
Old 10-15-2021, 03:23 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by camorri View Post
It looks to me as if something is not correct in the IPP setup for your printer. There is a how to at https://www.howtoforge.com/ipp_based_print_server_cups that might help. Right now, im away from home where I have a HP printer, it is not set up with IPP however. It is USB attached to a rasberry pi 3 that acts as a print server.

Possibly someone else with more experience with Cups and Ipp will chime in.
Thank you , I will still look into that just to cover all bases. Not sure how IPP is misconfigured but suffice to say hopefully that link gives an answer; as since right now all I have to go by, is that I didn't experience any real issues until this last firmware update (security update); and again rather sad that HPLIP itself can't even restart the printer.
 
Old 10-15-2021, 03:37 PM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
So I haven't changed anything but poking around suddenly I just now came across this:
Code:
▼ Queue Name ▼	Description	Location	Make and Model	Status
HP_Color_LaserJet_M553	HP_Color_LaserJet_M553		HP Color LaserJet M553 Postscript (recommended)	Idle - "Filter failed"
So far that link though hasn't really given me anything useful yet, and now I am trying to see if I can get CUPS itself to start the queue again without removing the printer in HPLIP (though I refreshed HPLIP, and it reports the printer as idle, so I am even more confused as to just what the hell is going on right now).

-edit

While going through the motions, I also got a copy of the troubleshoot log:

Last edited by Jeebizz; 10-15-2021 at 03:41 PM.
 
Old 10-15-2021, 03:47 PM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Also while while CUPS reports 'stopped' , I clicked diagnose queue in the HPLIP utility and says it is configured correctly - soo..... yea something still doesn't seem right, since HPLIP reports nothing is wrong, CUPS says otherwise...
 
Old 10-15-2021, 03:54 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
I just told CUPS to print a test page, and that worked .... so yea..... what the hell *IS* exactly going on? I am just getting more and more confused - perhaps I will just not do anything further until someone has another suggestion.....
 
Old 10-15-2021, 11:40 PM   #13
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 935

Rep: Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527
Sometimes my HP printer gets stopped or disabled. When the hplip gui doesn't work (it crashes often),
I start (enable) the printer again running as root 'cupsenable <printer>'.
Run 'lpstat -t' to get the printer name (is case insensitive).
 
Old 10-15-2021, 11:58 PM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,198

Original Poster
Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by Paulo2 View Post
Sometimes my HP printer gets stopped or disabled. When the hplip gui doesn't work (it crashes often),
I start (enable) the printer again running as root 'cupsenable <printer>'.
Run 'lpstat -t' to get the printer name (is case insensitive).
I'll look into that, I took also another risk - and decided to compile and install CUPS 2.3.3 - and the status right now after a while shows this:
Code:
Queue Name	Description	Location	Make and Model	Status
HP_Color_LaserJet_M553			HP Color LaserJet M553 Postscript (recommended)	Idle
However, now HPLIP can't get any sort of status:
Click image for larger version

Name:	Screenshot_2021-10-15_23-51-13.png
Views:	26
Size:	36.0 KB
ID:	37483

I also decided, hey maybe I should try to compile hplip 3.21.8 -- but nah, HP keeps giving me the finger and laughing at me:
Code:
hpijs-ijs_server.o hpijs-ijs.o hpijs-hpijsfax.o hpijs-services.o hpijs-hpiom.o hpijs-utils.o libapdk.la -ljpeg -ldl libhpip.la libhpmud.la -ldbus-1 -lavahi-common -lavahi-client -lcrypto 
libtool: link: x86_64-slackware-linux-g++ -DAPDK_DJ660 -DAPDK_DJ6xx -DAPDK_DJ6xxPhoto -DAPDK_DJ8xx -DAPDK_DJ9xx -DAPDK_DJ9xxVIP -DAPDK_DJ630 -DAPDK_APOLLO2XXX -DAPDK_APOLLO21XX -DAPDK_APOLLO2560 -DAPDK_DJ600 -DAPDK_DJ350 -DAPDK_DJ8x5 -DAPDK_PSP100 -DAPDK_AUTODUPLEX -DAPDK_HIGH_RES_MODES -DAPDK_LJMONO -DAPDK_DJ540 -DAPDK_DJ850 -DAPDK_DJ890 -DAPDK_DJ3320 -DAPDK_LJCOLOR -DAPDK_DJGENERICVIP -DAPDK_LJJETREADY -DAPDK_LJFASTRASTER -DAPDK_BUFFER_SEND -DAPDK_LDL_COMPRESS -DAPDK_EXTENDED_MEDIASIZE -DAPDK_MLC_PRINTER -DAPDK_DJ3600 -DAPDK_LJZJS_MONO -DAPDK_LJZJS_COLOR -DAPDK_LJM1005 -DAPDK_QUICKCONNECT -DAPDK_LITTLE_ENDIAN -DAPDK_AUTO_INCLUDE -DAPDK_LINUX -DNDEBUG -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -O2 -fPIC -DCONFDIR=\"/etc/hp\" -o .libs/hpijs hpijs-hpijs.o hpijs-ijs_server.o hpijs-ijs.o hpijs-hpijsfax.o hpijs-services.o hpijs-hpiom.o hpijs-utils.o  ./.libs/libapdk.a -lpthread /usr/lib64/../lib64/libssp.so /usr/lib64/../lib64/libstdc++.so /usr/lib64/libjpeg.so -ldl ./.libs/libhpip.so ./.libs/libhpmud.so /usr/lib64/libdbus-1.so /usr/lib64/libavahi-common.so /usr/lib64/libavahi-client.so -lcrypto -pthread -Wl,-rpath -Wl,/usr/lib64/../lib64
./.libs/libhpmud.so: undefined reference to `ipAddressBuff'
./.libs/libhpmud.so: undefined reference to `avahi_lookup'
collect2: error: ld returned 1 exit status
Makefile:5629: recipe for target 'hpijs' failed
make: *** [hpijs] Error 1
root@slackmachine:/home/slackuser/source/hplip#
I don't know how to solve this hpjis issue, so now I have CUPS 2.3.3 which says the printer is just idle, and now a version of HPLIP (stock that was included in 14.2) that now can longer get any info from my printer, since CUPS 2.3.3 is too new... fscking hell -- and I still can't print, stating queue is stopped..

I also for curiosity ran the lpstat command and it shows this:
Code:
slackuser@slackmachine:~/source/hplip$ lpstat -t
scheduler is running
system default destination: HP_Color_LaserJet_M553
device for HP_Color_LaserJet_M553: hp:/net/HP_Color_LaserJet_M553?ip=192.168.1.3
HP_Color_LaserJet_M553 accepting requests since Fri 15 Oct 2021 11:55:02 PM CDT
printer HP_Color_LaserJet_M553 disabled since Fri 15 Oct 2021 11:55:02 PM CDT -
	Filter failed
HP_Color_LaserJet_M553-39 slackuser        70656   Fri 15 Oct 2021 11:54:58 PM CDT
slackuser@slackmachine:~/source/hplip$
I don't know anymore, I am just so confused - and I am wondering again maybe I shouldn't ever bother applying even firmware updates even though those are specifically security updates, if I am going to continue running into this issue.........

Last edited by Jeebizz; 10-16-2021 at 12:01 AM.
 
Old 10-16-2021, 09:11 AM   #15
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 935

Rep: Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527
I used to build new versions of hplip but now I wait for the -current upgrade.
I think hplip has a dependency on avahi for network.


Quote:
Originally Posted by Jeebizz View Post
Code:
slackuser@slackmachine:~/source/hplip$ lpstat -t
scheduler is running
system default destination: HP_Color_LaserJet_M553
device for HP_Color_LaserJet_M553: hp:/net/HP_Color_LaserJet_M553?ip=192.168.1.3
HP_Color_LaserJet_M553 accepting requests since Fri 15 Oct 2021 11:55:02 PM CDT
printer HP_Color_LaserJet_M553 disabled since Fri 15 Oct 2021 11:55:02 PM CDT -
	Filter failed
HP_Color_LaserJet_M553-39 slackuser        70656   Fri 15 Oct 2021 11:54:58 PM CDT
slackuser@slackmachine:~/source/hplip$
Yes it shows all printers.
Maybe the "filter failed" message is because of the new cups version.
Try rebuild the stock 14.2 hplip to get the new cups version.

If you run as root
Code:
cupsenable HP_Color_LaserJet_M553-39
does the printer get enabled/started?

Last edited by Paulo2; 10-16-2021 at 09:20 AM. Reason: add "as root"
 
  


Reply



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] Slackware-current kde audio settings - only "PulseAudio Sound Server" device seen in "Device preference" tab alekow Slackware 6 05-26-2020 07:24 AM
[SOLVED] CUPS HPLIP communication failures under -current causing communication errors. bamunds Slackware 10 09-24-2016 06:02 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
Fault in KDE processes communication: Could not read network communication list Magnus Johansson MEPIS 0 03-30-2008 12:50 PM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration