HP printer driver problem (solved)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

Again I misinterpreted what I was supposed to do:
Screenshot at 2019-12-18 14-29-56.png
Tried several guesses at the syntax to add output.pnm as posted by brian_p
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

So I will use: <xsane hpaio/net/HP_Laserjet_M1522nf_MFP?ip=192.168.4> upper/lower case like example on HP site, this exact command?
[/quote]

Not quite. Do not use the angle brackets. Upper or lower case should not matter. You have also left out a ":" after hpaio (not good typo). Go for

Code: Select all

xsane hpaio:/net/HP_Laserjet_M1522nf_MFP?ip=192.168.4
This is my last offer. I am out of here afterwards.

(But you can check you have the plugin. How to do this with ls -l was given in another post).
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

We crossed posts, I noticed the missing : and submitted an edit. Latest terminal:
Screenshot at 2019-12-18 14-48-44.png
System said yesterday, plugin installation successful. I'll try to confirm.
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

I made a mistake or two. I wish you had picked up on both.

Code: Select all

xsane hpaio:/net/HP_Laserjet_M1522nf_MFP?ip=192.168.4 > output.pnm
That assumes the IP address is still 192.168.1.4 (not 192.168.4).
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

Entered command as typed, saw popup- xsane looking for scanners- then error message:
Screenshot at 2019-12-18 15-20-06.png
Also tried with the .1 inserted- no response, just waiting for more input (blinking cursor).
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

192.168.1.4 evidently isn't the correct IP. Run hp-set-up again to get it.
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

brian_p wrote:
Wed Dec 18, 2019 4:34 pm
192.168.1.4 evidently isn't the correct IP. Run hp-set-up again to get it.
That comes back as correct. Someone suggested that mismatched old/newer versions of :Python" might be the snag- no idea what that is, but I was going to try an older version of hplip, but one that has the plugin available. The repo version does not.
jglen490
Level 5
Level 5
Posts: 998
Joined: Sat Jul 15, 2017 9:57 pm

Re: HP printer driver problem

Post by jglen490 »

hp-check will tell you if there is a python mismatch, or a different/additional version of python is required.
I feel more like I do than I did when I got here.
Toshiba A135-S2386, Intel T2080, ATI Radeon® Xpress 200M Chipset, 2GB RAM, 500GB
jglen490
Level 5
Level 5
Posts: 998
Joined: Sat Jul 15, 2017 9:57 pm

Re: HP printer driver problem

Post by jglen490 »

Slowpoke47 wrote:
Wed Dec 18, 2019 3:34 pm
Again I misinterpreted what I was supposed to do:
Screenshot at 2019-12-18 14-29-56.png

Tried several guesses at the syntax to add output.pnm as posted by brian_p
In the screenshot, your third entry showed all the correct inputs for IP and the output file, and most important showed no errors. Was there any result from the scanner?
I feel more like I do than I did when I got here.
Toshiba A135-S2386, Intel T2080, ATI Radeon® Xpress 200M Chipset, 2GB RAM, 500GB
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

jglen490 wrote:
Wed Dec 18, 2019 6:12 pm
Slowpoke47 wrote:
Wed Dec 18, 2019 3:34 pm
Again I misinterpreted what I was supposed to do:
Screenshot at 2019-12-18 14-29-56.png

Tried several guesses at the syntax to add output.pnm as posted by brian_p
In the screenshot, your third entry showed all the correct inputs for IP and the output file, and most important showed no errors. Was there any result from the scanner?
No, scanner has never worked in Mint. Now when I selected Simple Scan, the pop-up briefly shows "Ready to Scan" only for a second or so, but then displays the familiar "No Scanners Found" message. Same for xsane. And the HP tray icon shows or doesn't at various times today. But if I right-click it and select HP Device Manager, it shows a pop-up, No HP devices found, and wants to run me through the hplip installation from the beginning. The printer does in fact print. Also ongoing conflicting pop-up messages, plugin needed and plugin successfully installed.
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

Let us try a different approach. You claim that the IP address of the device is 192.168.1.4.

Set up a print queue with

Code: Select all

lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -m hp-laserjet_m1522_mfp-ps.ppd
Does

Code: Select all

lp -d testq /etc/nsswitch.conf
print?
--
Brian.
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

brian_p wrote:
Wed Dec 18, 2019 7:07 pm

Set up a print queue with

Code: Select all

lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -m hp-laserjet_m1522_mfp-ps.ppd
A correction to the command. Sorry for any wasted time.

Code: Select all

lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -m postscript-hp:0/ppd/hplip/HP/hp-laserjet_m1522nf_mfp-ps.ppd
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

brian_p wrote:
Wed Dec 18, 2019 7:07 pm
You claim that the IP address of the device is 192.168.1.4.

/quote]

I got that from Control Center>Printers>double click on printer. Perhaps I'm not interpreting correctly?
Printer ID at 2019-12-19 07-36-31.png
I'll enter the text in brian's most recent post and report back.

With the multiple conflicting results, messages and pop-ups I'm seeing, I'm considering a complete uninstall of the HP files and starting over with older driver/ plugin files on the theory that there is some incompatibility between this version and the printer. This whole effort began because the repo version of hplip does not have a corresponding plugin, needed for scanning per HP, but the following version offers that plugin.

Although we've had it for several years, this exact model is still on the market. Amazon has it $800+ with shipping.
For that kind of money, HP must be quite proud of it!
Amazon at 2019-12-19 08-06-33.png
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

brian_p wrote:
Thu Dec 19, 2019 3:36 am
brian_p wrote:
Wed Dec 18, 2019 7:07 pm

Set up a print queue with

Code: Select all

lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -m hp-laserjet_m1522_mfp-ps.ppd
A correction to the command. Sorry for any wasted time.

Code: Select all

lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -m postscript-hp:0/ppd/hplip/HP/hp-laserjet_m1522nf_mfp-ps.ppd
Results of terminal command. done via copy-and-paste:
Unable to copy.png
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

We know you have the printer working via a socket://... connection. That means you also have a working PPD to suit the printer's operation. This PPD is in /etc/cups/ppp/. I do not kow the name of the file, so we will call it 1522.ppd. (You of course will use its correct name later on).

Test printing still works with your present queue. Then set up this queue:

Code: Select all

sudo lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -P /etc/cups/ppp/1522.ppd
and print as indicated earlier.

Also give the output of

Code: Select all

grep NickName /etc/cups/ppp/1522.ppd
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

brian_p wrote:
Thu Dec 19, 2019 11:33 am
We know you have the printer working via a socket://... connection. That means you also have a working PPD to suit the printer's operation. This PPD is in /etc/cups/ppp/. I do not kow the name of the file, so we will call it 1522.ppd. (You of course will use its correct name later on).

Test printing still works with your present queue. Then set up this queue:

Code: Select all

sudo lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -P /etc/cups/ppp/1522.ppd
and print as indicated earlier.

Also give the output of

Code: Select all

grep NickName /etc/cups/ppp/1522.ppd
Result of copy and paste for first line of code:
PPD error at 2019-12-19 10-55-15.png
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

I tried my best to avoid your making this mistake. Please read the last three sentences of the first paragraph of my previous post. Your PPD file in /etc/cups/ppp/ is not called 1522.ppd.
--
Brian.
Slowpoke47
Level 4
Level 4
Posts: 304
Joined: Sun Aug 07, 2016 12:41 pm

Re: HP printer driver problem

Post by Slowpoke47 »

brian- you have a right to be frustrated with me and I am frustrated with myself due to my lack of experience with Mint. My current grasp of proper syntax details and procedures is inadequate for the instructions you have been patient enough to provide. I do think that the conflicting messages I've been seeing re this scanner issue could point to some mismatch in the software. In addition, there are inconsistent results when I poke around the system trying to determine the printer and scanner status. I did figure out that you meant for me to navigate the file system and edit your command line. This s/shot is the result of going to /etc/cups, which generated this screen, and then adding ppp to the address bar since I didn't see that designation in the list.
etc-cups2019-12-19 11-31-13.png
What do you think of my idea to replace this effort with the current hplip file with an installation of the oldest version that has a matching plugin? That file dates back less than three years. If that enables scanning, all well and good. If not, then at least I would have proved that my thought of a software incompatibility is wrong.

My reading tells me that, for complete removal of the current driver and plugin packages, I would use sudo apt-get --purge remove (name of package), once for the drivers and once for the plugin.
brian_p
Level 7
Level 7
Posts: 1546
Joined: Thu Jan 17, 2019 9:20 am

Re: HP printer driver problem

Post by brian_p »

Yet another of my typos. It's ppd , not ppp.

Try both the first and third PPDs in the lpadmin and grep commands.

Code: Select all

sudo lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.1.4 -E -P /etc/cups/ppd/1522.ppd
I am not particulary taken by your idea. But it your choice.
--
Brian.
User avatar
majpooper
Level 6
Level 6
Posts: 1421
Joined: Thu May 09, 2013 1:56 pm
Location: North Carolina, USA

Re: HP printer driver problem

Post by majpooper »

Slowpoke47 wrote:
Thu Dec 19, 2019 12:54 pm
brian- you have a right to be frustrated with me and I am frustrated with myself due to my lack of experience with Mint.
Slowpoke no need to keep apologizing - this forum has always been a friendly and patient with new Mint users even ones who have little or no computer skills. How on earth are you going to spot a typo in syntax or know where to find the exact name of a file? Good on you for keeping at it - that says a lot.

brian certainly seems to know way more than I do on this topic but I guessed assumed that you would know how to get the .ppd file name and as it happens - we are all human after all - he unintentionally threw you a curve with the ppp typo, which he caught. To do what brian is suggesting first get the .ppd name - cut and paste this command in the terminal

Code: Select all

ls /etc/cups/ppd

Now you can replace 1522.ppd in brians instructions with the actual .ppd file name - it should look like my output below except with your printer .ppd file name not mine (also I have a different IP address so use yours of course)

Code: Select all

majpooper@1150z:~$ ls /etc/cups/ppd
HP_Officejet_Pro_8610_12DDC7_.ppd    HP_Officejet_Pro_8610_2.ppd    testq.ppd
HP_Officejet_Pro_8610_12DDC7_.ppd.O  HP_Officejet_Pro_8610_fax.ppd
majpooper@1150z:~$ sudo lpadmin -p testq -v hp:/net/hp_laserjet_m1522nf_mfp?ip=192.168.46.106 -E -P /etc/cups/ppd/HP_Officejet_Pro_8610_12DDC7_.ppd 
[sudo] password for majpooper:           
majpooper@1150z:~$ grep NickName /etc/cups/ppd/HP_Officejet_Pro_8610_2.ppd
*ShortNickName: "HP Officejet Pro 8610 hpijs"
*NickName: "HP Officejet Pro 8610, hpcups 3.19.12"

Post Reply

Return to “Newbie Questions”