How do I get the scanner working with hplip on a OfficeJet Pro 9015?

Asked by David G Peterson on 2020-05-19

I just got an OfficeJet Pro 9015. I run Linux Mint 18.3, and the hplip version is 3.16.3.
This is USB connected to my desktop.
While I can get the printer to work, I can't scan, and the various ways I have tried to get the system to recognize the scan function do not work.

I have removed and re-installed hplip, but it only recognizes a 9010, not 9015.
I have been using HP printers for decades, and never had this sort of problem, either in Linux, or in the past Windows.

Could you propose a solution?

I really do not want to upgrade Mint yet.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
David G Peterson
Solved:
2020-05-20
Last query:
2020-05-20
Last reply:
2020-05-19
David G Peterson (d-gremlin69) said : #1

Oh, I forgot to mention my Python version is 3.5

brian_p (claremont102) said : #2

Please give the outputs of 'lpstat -a' and 'lpinfo -v'. Would you be
amenable to connecting the 9015 by wireless or ethernet?

Brian.

David G Peterson (d-gremlin69) said : #3

Brian,

Here is the output you requested.

david@SHANTY-MAIN ~ $ lpstat -a
HP-HP-OfficeJet-Pro-9010-series accepting requests since Tue 19 May 2020
07:00:05 AM EDT
HP_OfficeJet_Pro_9010_series accepting requests since Tue 19 May 2020
07:55:36 AM EDT
PDF accepting requests since Mon 18 May 2020 05:59:43 PM EDT
david@SHANTY-MAIN ~ $ lpinfo -v
network beh
network socket
serial serial:/dev/ttyS0?baud=115200
network ipp
network ipps
direct
usb://HP/OfficeJet%20Pro%209010%20series?serial=TH03K5808G&interface=1
network ipp14
network lpd
network http
network https
network smb
direct parallel:/dev/lp0
direct hp
direct hpfax
david@SHANTY-MAIN ~ $

I did connect by wireless before I got the USB cable, and I guess I could
run an ethernet cable from the desktop to the printer. Just need to make
one up, or check in my 'spare parts box'.

Any help will be greatly appreciated. I prefer HP over any other printer I
have ever used.

Dave

On Tue, May 19, 2020 at 9:55 AM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> Please give the outputs of 'lpstat -a' and 'lpinfo -v'. Would you be
> amenable to connecting the 9015 by wireless or ethernet?
>
> Brian.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

brian_p (claremont102) said : #4

> HP-HP-OfficeJet-Pro-9010-series accepting requests ...
> HP_OfficeJet_Pro_9010_series accepting requests...

There are two queues for the printer. This may not actually be a problem.
However, I should have asked for the output of 'lpstat -t'. Sorry to put you
to more trouble.

Also try scanning with

scanimage -d "hpaio://usb/hp_officejet_pro_9010_series?serial=TH03K5808G&" > image.pnm

David G Peterson (d-gremlin69) said : #5

No trouble.
Here is the output

david@SHANTY-MAIN ~ $ lpstat -t
scheduler is running
system default destination: HPOfficeJetPro9015
device for HP-HP-OfficeJet-Pro-9010-series:
usb://HP/OfficeJet%20Pro%209010%20series?serial=TH03K5808G&interface=1
device for HP_OfficeJet_Pro_9010_series:
usb://HP/OfficeJet%20Pro%209010%20series?serial=TH03K5808G&interface=1
device for HPOfficeJetPro9015: http://SHANTY-MAIN:631/ipp/
device for PDF: cups-pdf:/
HP-HP-OfficeJet-Pro-9010-series accepting requests since Tue 19 May 2020
11:12:05 AM EDT
HP_OfficeJet_Pro_9010_series accepting requests since Tue 19 May 2020
11:12:05 AM EDT
HPOfficeJetPro9015 accepting requests since Tue 19 May 2020 11:25:52 AM EDT
PDF accepting requests since Mon 18 May 2020 05:59:43 PM EDT
printer HP-HP-OfficeJet-Pro-9010-series disabled since Tue 19 May 2020
11:12:05 AM EDT -
Unplugged or turned off
printer HP_OfficeJet_Pro_9010_series disabled since Tue 19 May 2020
11:12:05 AM EDT -
Unplugged or turned off
printer HPOfficeJetPro9015 is idle. enabled since Tue 19 May 2020 11:25:52
AM EDT
printer PDF disabled since Mon 18 May 2020 05:59:43 PM EDT -
Backend /usr/lib/cups/backend/cups-pdf does not exist!
david@SHANTY-MAIN ~ $

Dave

On Tue, May 19, 2020 at 11:31 AM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> > HP-HP-OfficeJet-Pro-9010-series accepting requests ...
> > HP_OfficeJet_Pro_9010_series accepting requests...
>
> There are two queues for the printer. This may not actually be a problem.
> However, I should have asked for the output of 'lpstat -t'. Sorry to put
> you
> to more trouble.
>
> Also try scanning with
>
> scanimage -d
> "hpaio://usb/hp_officejet_pro_9010_series?serial=TH03K5808G&" >
> image.pnm
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

David G Peterson (d-gremlin69) said : #6

here is the line command output

david@SHANTY-MAIN ~ $ scanimage -d
"hpaio://usb/hp_officejet_pro_9010_series?serial=TH03K5808G&" > image.pnm
scanimage: open of device
hpaio://usb/hp_officejet_pro_9010_series?serial=TH03K5808G& failed:
Operation not supported
david@SHANTY-MAIN ~ $

On Tue, May 19, 2020 at 11:31 AM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> > HP-HP-OfficeJet-Pro-9010-series accepting requests ...
> > HP_OfficeJet_Pro_9010_series accepting requests...
>
> There are two queues for the printer. This may not actually be a problem.
> However, I should have asked for the output of 'lpstat -t'. Sorry to put
> you
> to more trouble.
>
> Also try scanning with
>
> scanimage -d
> "hpaio://usb/hp_officejet_pro_9010_series?serial=TH03K5808G&" >
> image.pnm
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

brian_p (claremont102) said : #7

From 'lpstat -t:

> usb://HP/OfficeJet%20Pro%209010%20series?serial=TH03K5808G&interface=1

This is part of the problem, for scanning at least. For printing it
is great, but, for auto-scanning, HPLIP expects the URI to begin with
hp://.... .

Please do 'hp-makeuri' and follow up on the advice shown.

Brian.

David G Peterson (d-gremlin69) said : #8

This is what I get.
david@SHANTY-MAIN ~ $ lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 051d:0002 American Power Conversion Uninterruptible
Power Supply
Bus 005 Device 002: ID 046d:c318 Logitech, Inc. Illuminated Keyboard
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth
Dongle (HCI mode)
Bus 003 Device 003: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless
Adapter
Bus 003 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 007: ID 03f0:2454 Hewlett-Packard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
david@SHANTY-MAIN ~ $ hp-makeuri 003:007

HP Linux Imaging and Printing System (ver. 3.16.3)
Device URI Creation Utility ver. 5.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: Device not found
david@SHANTY-MAIN ~ $

On Tue, May 19, 2020 at 12:21 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> >From 'lpstat -t:
>
> > usb://HP/OfficeJet%20Pro%209010%20series?serial=TH03K5808G&interface=1
>
> This is part of the problem, for scanning at least. For printing it
> is great, but, for auto-scanning, HPLIP expects the URI to begin with
> hp://.... .
>
> Please do 'hp-makeuri' and follow up on the advice shown.
>
> Brian.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

brian_p (claremont102) said : #9

> error: Device not found

HPLIP looks for a record for the device in

   /usr/share/hplip/data/models/models.dat

but there isn't one. You have already touched on this:

> I have removed and re-installed hplip, but it only recognizes a 9010,
> not 9015.

Do 'lsusb -v | grep iProduct' to see what the USB system thinks the printer is.

Brian.

This is what I get
SHANTY-MAIN david # lsusb -v | grep iProduct
  iProduct 0
  iProduct 2 EHCI Host Controller
  iProduct 2 xHCI Host Controller
  iProduct 1 Back-UPS ES 550 FW:843.K2 .D USB FW:K2
  iProduct 2 Logitech Illuminated Keyboard
  iProduct 2 xHCI Host Controller
  iProduct 0
  iProduct 2 EHCI Host Controller
  iProduct 2 xHCI Host Controller
  iProduct 2 CSR8510 A10
  iProduct 2 802.11 n WLAN
  iProduct 2 USB Optical Mouse
  iProduct 2 HP OfficeJet Pro 9010 series
  iProduct 2 xHCI Host Controller

I did a complete purge of hplip, and used the tarball version of 3.20.5
since my Python install is 3.5.
Found complete instructions here:
https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/distros/linuxmint
Currently at this step: Installation - Step 4 - CUPS - USB/Parallel
Test page prints, but simple scan or xsane can't find a scanner.

On Tue, May 19, 2020 at 1:36 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> > error: Device not found
>
> HPLIP looks for a record for the device in
>
> /usr/share/hplip/data/models/models.dat
>
> but there isn't one. You have already touched on this:
>
> > I have removed and re-installed hplip, but it only recognizes a 9010,
> > not 9015.
>
> Do 'lsusb -v | grep iProduct' to see what the USB system thinks the
> printer is.
>
> Brian.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

brian_p (claremont102) said : #11

> iProduct 2 HP OfficeJet Pro 9010 series

Models.dat has a section for [hp_officejet_pro_9010_series].. The
scanning command I gave earlier should have worked.

> Test page prints, but simple scan or xsane can't find a scanner.

I have no more USB knowledge to contribute. I reckon we could get
you scanning on Mint 18.x (without using HPLIP) if you put the device
on the network. Wireless would be fine.

brian_p (claremont102) said : #12

Should you put the device on the network, please give the outputs
of

avahi-browse -rt _ipp._tcp

and

avahi-browse -rt _uscan._tcp

I'll give things a go in the morning, been up since 5.

On Tue, May 19, 2020 at 2:35 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> brian_p posted a new comment:
> > iProduct 2 HP OfficeJet Pro 9010 series
>
> Models.dat has a section for [hp_officejet_pro_9010_series].. The
> scanning command I gave earlier should have worked.
>
> > Test page prints, but simple scan or xsane can't find a scanner.
>
> I have no more USB knowledge to contribute. I reckon we could get
> you scanning on Mint 18.x (without using HPLIP) if you put the device
> on the network. Wireless would be fine.
>
> --
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

Since this is a home desktop, I can only go wireless to the router
downstairs.
I'll keep it mind.

On Tue, May 19, 2020 at 2:41 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> Status: Open => Needs information
>
> brian_p requested more information:
> Should you put the device on the network, please give the outputs
> of
>
> avahi-browse -rt _ipp._tcp
>
> and
>
> avahi-browse -rt _uscan._tcp
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/hplip/+question/690823
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

Brian,

Got the problem solved. I forgot I had Python 2.7 as well as 3.5.
Ran the hplip 'run' file, and everything seems fine.
Only thing missing is the HP entry in systray.
Thanks for all your help.
I think you can close this out.

Dave

On Tue, May 19, 2020 at 2:35 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> brian_p posted a new comment:
> > iProduct 2 HP OfficeJet Pro 9010 series
>
> Models.dat has a section for [hp_officejet_pro_9010_series].. The
> scanning command I gave earlier should have worked.
>
> > Test page prints, but simple scan or xsane can't find a scanner.
>
> I have no more USB knowledge to contribute. I reckon we could get
> you scanning on Mint 18.x (without using HPLIP) if you put the device
> on the network. Wireless would be fine.
>
> --
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

Brian,

Thanks again for your help.
It works fine.

On Wed, May 20, 2020 at 6:41 AM David G Peterson <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> You gave more information on the question:
> Brian,
>
> Got the problem solved. I forgot I had Python 2.7 as well as 3.5.
> Ran the hplip 'run' file, and everything seems fine.
> Only thing missing is the HP entry in systray.
> Thanks for all your help.
> I think you can close this out.
>
> Dave
>
> On Tue, May 19, 2020 at 2:35 PM brian_p <
> <email address hidden>> wrote:
>
> > Your question #690823 on HPLIP changed:
> > https://answers.launchpad.net/hplip/+question/690823
> >
> > brian_p posted a new comment:
> > > iProduct 2 HP OfficeJet Pro 9010 series
> >
> > Models.dat has a section for [hp_officejet_pro_9010_series].. The
> > scanning command I gave earlier should have worked.
> >
> > > Test page prints, but simple scan or xsane can't find a scanner.
> >
> > I have no more USB knowledge to contribute. I reckon we could get
> > you scanning on Mint 18.x (without using HPLIP) if you put the device
> > on the network. Wireless would be fine.
> >
> > --
> > You received this question notification because you asked the question.
> >
>
>
> --
> David G. Peterson, PMP
> Cell: 240-758-6169
>
> *“Ensuring Your Success through Communication and Technology©SM”*
> Email: <email address hidden>
> LinkedIn: www.linkedin.com/in/dgp-pm
> Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>
>
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

brian_p (claremont102) said : #17

> Got the problem solved.

Good.

> I think you can close this out.

My understanding is that you have to mark it as "solved" at your end.

Brian,

Yep, it is solved. Simply a matter of choosing the 'right' hplip to run.
Seems one was for Python 2.7, and one was for higher releases.
I have both, but only 3.5 was checked on my menu. menu editor (and
Synaptic) showed that 2.7 was still there, so I used the *.run version,
instead of the tarball.

Once again, thanks for all your help and patience.
Please consider this closed out on your end.

Dave

On Wed, May 20, 2020 at 1:35 PM brian_p <
<email address hidden>> wrote:

> Your question #690823 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690823
>
> brian_p posted a new comment:
> > Got the problem solved.
>
> Good.
>
> > I think you can close this out.
>
> My understanding is that you have to mark it as "solved" at your end.
>
> --
> You received this question notification because you asked the question.
>

--
David G. Peterson, PMP
Cell: 240-758-6169

*“Ensuring Your Success through Communication and Technology©SM”*
Email: <email address hidden>
LinkedIn: www.linkedin.com/in/dgp-pm
Web: www.dgp-pm.com <http://www.dgpeterson-pmp.com>

Thanks for all the help