no scan with HP Leserjet Pro m28a MFP / HPLIP - print is OK

Asked by bertrand on 2020-07-31

printing is ok with m28a (both usb and network).
hello

scanimage - L returns :
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

but scanning (scanimage / hpscan) returns :
failed: Error during device I/O

- tried different versions of hplip (installed from apt / from hp .run)
- tried with / without hp-plugin
- tried sudo
- tried on 2 different PC ( ubuntu 20.04 up to date, xubuntu 17) => same result
- tried vuescan software which did not find the scan

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
bertrand
Solved:
2020-08-02
Last query:
2020-08-02
Last reply:
2020-08-01
shivani mandora (shivani1708) said : #1

Hi ,

Have you installed plugin to scan?

And on which distro ?

bertrand (b-j-free) said : #2

hi,

I tried with AND without hplip-plugin (3.20.6), same result : print is OK, scan is not OK : failed: Error during device I/O
I tried on ubuntu 20.04 fress install ant xubuntu 17 (quite old system but apt upgrade ok)

the most disturbing is, in addition with the fact that print is ok, te result of hp-scan :

--
-----------------
| SELECT DEVICE |
-----------------

  Num Scan device URI
  -------- ---------------------------------------------------------------------
  0* hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  1 net:localhost:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  2 escl:http://127.0.0.1:60000
  3 net:192.10.1.100:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379

Enter number 0...3 for device (q=quit, <enter>=default: 0*) ?0
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
Opening connection to device...
error: SANE: Error during device I/O (code=9)
----

thanks!

brian_p (claremont102) said : #3

Hello Bertrand,

Please confirm that you are using Ubuntu 20.04 and provide information
from

  systemctl list-units "ippusbxd*" | grep service
  avahi-browse -rt _ipp._tcp
  avahi-browse -rt _uscan._tcp
  lpstat -l -e

What happens when you execute

  simple-scan escl:http://127.0.0.1:60000 ?

Cheers,

Brian.

bertrand (b-j-free) said : #4

hi

thanks for your message
host is called "bj-boite", static IP : 192.10.1.100
printer is called "laser". It prints like a charm but doesn't scan.

# systemctl list-units "ippusbxd*" | grep service :
-
ippusbxd@002:005.service loaded active running Daemon to make IPP-over-USB printers available as network printers (002:005)
-

# avahi-browse -rt _ipp._tcp
-
+ wlp2s0 IPv4 laser @ bj-boite Internet Printer local
+ enp8s0 IPv6 laser @ bj-boite Internet Printer local
+ enp8s0 IPv4 laser @ bj-boite Internet Printer local
+ wlp2s0 IPv6 laser @ bj-boite Internet Printer local
= enp8s0 IPv6 laser @ bj-boite Internet Printer local
   hostname = [bj-boite.local]
   address = [fe80::6a5b:35ff:fe8e:de20]
   port = [631]
   txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bd1048ff-7b6d-3ede-6685-e0dcdda0dfcd" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Pro MFP m31cw)" "priority=0" "note=" "adminurl=https://bj-boite.local.:631/printers/laser" "ty=HP LaserJet MFP m28-m31, hpcups 3.20.6" "rp=printers/laser" "qtotal=1" "txtvers=1"]
= wlp2s0 IPv4 laser @ bj-boite Internet Printer local
   hostname = [bj-boite.local]
   address = [192.168.1.10]
   port = [631]
   txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bd1048ff-7b6d-3ede-6685-e0dcdda0dfcd" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Pro MFP m31cw)" "priority=0" "note=" "adminurl=https://bj-boite.local.:631/printers/laser" "ty=HP LaserJet MFP m28-m31, hpcups 3.20.6" "rp=printers/laser" "qtotal=1" "txtvers=1"]
= enp8s0 IPv4 laser @ bj-boite Internet Printer local
   hostname = [bj-boite.local]
   address = [192.10.1.100]
   port = [631]
   txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bd1048ff-7b6d-3ede-6685-e0dcdda0dfcd" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Pro MFP m31cw)" "priority=0" "note=" "adminurl=https://bj-boite.local.:631/printers/laser" "ty=HP LaserJet MFP m28-m31, hpcups 3.20.6" "rp=printers/laser" "qtotal=1" "txtvers=1"]
+ lo IPv4 HP LaserJet MFP M28-M31 Internet Printer local
+ lo IPv4 laser @ bj-boite Internet Printer local
= wlp2s0 IPv6 laser @ bj-boite Internet Printer local
   hostname = [bj-boite.local]
   address = [fe80::93a9:95a7:1563:fea4]
   port = [631]
   txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bd1048ff-7b6d-3ede-6685-e0dcdda0dfcd" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Pro MFP m31cw)" "priority=0" "note=" "adminurl=https://bj-boite.local.:631/printers/laser" "ty=HP LaserJet MFP m28-m31, hpcups 3.20.6" "rp=printers/laser" "qtotal=1" "txtvers=1"]
= lo IPv4 HP LaserJet MFP M28-M31 Internet Printer local
   hostname = [bj-boite.local]
   address = [127.0.0.1]
   port = [60000]
   txt = ["rfo=ipp/faxout" "Fax=T" "note=" "adminurl=" "qtotal=1" "txtvers=1" "priority=60" "usb_MDL=HP LaserJet MFP M28-M31" "usb_MFG=HP" "rp=ipp/print"]
= lo IPv4 laser @ bj-boite Internet Printer local
   hostname = [bj-boite.local]
   address = [127.0.0.1]
   port = [631]
   txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=bd1048ff-7b6d-3ede-6685-e0dcdda0dfcd" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HP LaserJet Pro MFP m31cw)" "priority=0" "note=" "adminurl=https://bj-boite.local.:631/printers/laser" "ty=HP LaserJet MFP m28-m31, hpcups 3.20.6" "rp=printers/laser" "qtotal=1" "txtvers=1"]
-

# avahi-browse -rt _uscan._tcp
-
+ lo IPv4 HP LaserJet MFP M28-M31 _uscan._tcp local
= lo IPv4 HP LaserJet MFP M28-M31 _uscan._tcp local
   hostname = [bj-boite.local]
   address = [127.0.0.1]
   port = [60000]
   txt = ["txtvers=1" "vers=2.63" "rs=eSCL" "ty=HP LaserJet MFP M28a" "pdl=image/jpeg,application/pdf,application/octet-stream" "cs=color,grayscale" "duplex=F" "adminurl=http://NPI03319B.local." "UUID=564E4334-4B30-3933-3739-E4E74903319B" "note=" "representation=http://NPI03319B.local./ipp/images/printer.png"]
-

# lpstat -l -e
-
HP_LaserJet_MFP_M28_M31 network none ipp://HP%20LaserJet%20MFP%20M28-M31._ipp._tcp.local/
laser permanent ipp://localhost/printers/laser hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
laser_bj_boite network none ipps://laser%20%40%20bj-boite._ipps._tcp.local/cups
-

# simple-scan escl:http://127.0.0.1:60000
=> simple-scan launches, tries to connect... and fails "impossible to connect scanning device" (translated from french)

Thanks

bertrand (b-j-free) said : #5

I forgot to mention this warning on terminal when executing simple-scan escl:http://127.0.0.1:60000 :

(simple-scan:47944): Gtk-WARNING **: 14:08:25.993: Calling org.xfce.Session.Manager.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “Inhibit”

cheers

brian_p (claremont102) said : #6

> ippusbxd@002:005.service loaded active running Daemon ...

That's ok. Ubuntu 20.04 installs ippusbxd and runs it when the device is plugged in.
Please see the IPP-over-USB sections at

  https://wiki.debian.org/CUPSDriverlessPrinting

(ipp-usb does the same job as ippusbxd).

> # simple-scan escl:http://127.0.0.1:60000
> => simple-scan launches, tries to connect... and fails "impossible to connect
> scanning device" >(translated from french)

Getting an output from 'avahi-browse -rt _uscan._tcp' indicates that the device
supports the eSCL protocol. The SANE escl backend (driver) should be able to do
scanning. It hasn't. This is likely a bug in the SANE backend. You have been unlucky.

Download and install sane-airscan from

  https://github.com/alexpevzner/sane-airscan

The direct link to the file is

   https://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04/amd64/

I would be interested in what you get for

  scanimage -L

bertrand (b-j-free) said : #7

hello,
the HP m28a is not air / wifi device, it's only usb.

installed sane-airscan =>

# scanimage -L
device `net:192.10.1.100:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `net:localhost:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `airscan:e0:HP LaserJet MFP M28-M31' is a eSCL HP LaserJet MFP M28-M31 eSCL network scanner
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one

tried to scan with hp-scan from this new airscan device :

$ hp-scan

[...]
-----------------
| SELECT DEVICE |
-----------------

  Num Scan device URI
  -------- ---------------------------------------------------------------------
  0* net:localhost:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  1 hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  2 airscan:e0:HP LaserJet MFP M28-M31
  3 net:192.10.1.100:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379

Enter number 0...3 for device (q=quit, <enter>=default: 0*) ?2
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:e0:HP LaserJet MFP M28-M31
Opening connection to device...
error: SANE: Error during device I/O (code=9)

(I've also installed last version of sane packages from ppa:rolfbensch/sane-git)

thanks

brian_p (claremont102) said : #8

> the HP m28a is not air / wifi device, it's only usb.

Yes, I understand that and am perplexed that sane-airscan is not
working when you have ippusbxd running. ippusbxd basically turns
the m28a into a network scanner and sane-airscan now work with it.

This is the first time I have known sane-airscan to fail. Note that it
recognises and identifies the scanner. I have no more software to
recommend. Thanks for trying it.

If you removed ippusbxd from the system (it is easily put back) then
surely the hpaio device (with a plugin) should work? I do not know
what will happen with printing should you remove ippusbxd.

It turns out that I have met the m28a before:

  https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1811504

It was troublesome then!

Cheers,

Brian.

brian_p (claremont102) said : #9

Please could we have:

  lpstat -t

and

  lpinfo -v ?

--
Brian.

bertrand (b-j-free) said : #10

$ lpstat -t
scheduler is running
no system default destination
matériel pour laser : hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
laser accepte des requêtes depuis ven. 31 juil. 2020 17:27:48
printer laser is idle. enabled since ven. 31 juil. 2020 17:27:48
 File "/usr/lib/cups/filter/hpcups" not available: No such file or directory

$ lpinfo -v

network socket
network http
network beh
file cups-brf:/
network ipp
network https
network lpd
network ipps
direct hp
network smb

thanks

bertrand (b-j-free) said : #11

progress !
I did
- unplugg and replugg the MFP printer
- run "service cups restart" (airscan-discover did not detect the printer before that)

$ hp-scan

----------------
| SELECT DEVICE |
-----------------

  Num Scan device URI
  -------- ---------------------------------------------------------------------
  0 net:localhost:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  1* hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379
  2 airscan:e0:HP LaserJet MFP M28-M31
  3 escl:http://127.0.0.1:60000
  4 net:192.10.1.100:hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC4K09379

Enter number 0...4 for device (q=quit, <enter>=default: 1*) ?2
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:e0:HP LaserJet MFP M28-M31
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 0.000015mm)
  Width: 215.899994mm
  Height: 0.000015mm
Destination(s): file
Output file:
error: Unable to set option mode to value gray
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/bj/hpscan001.png'.

Warming up...

Scanning...
error: SANE: Invalid argument (code=4)
Closing device.

=> I guess I now have to set up airscan !

thanks a lot

brian_p (claremont102) said : #12

> progress !

Good, but still not scanning? I would test using

  scanimage -d "airscan:e0:HP LaserJet MFP M28-M31" > image.pnm

If it were me, I would purge ippusbxd and download and install ipp-usb from
the same place you got sane-airscan.

> => I guess I now have to set up airscan !

sane-airscan doesn't need any setting up - it should just work.

My tentative view is that this M28a device is not up to the job of scanning
with a modern protocol. If you have more progress or further thoughts, please
let us know.

Good luck,

Brian.

brian_p (claremont102) said : #13

shivani mandora writes:

> Have you installed plugin to scan?

Is this the plugin that

  https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index

says is not needed for the HP LaserJet Pro MFP M28a?

Or is it the one that models.dat says is unnecessary?

  plugin=0
  plugin-reason=0

You have known about this for 1.5 years. Isn't it about time to do something about it
instead of drifting along?

Also, do you have a M28a to use? Does scanning work? That's a nice simple question
to answer.

--
Brian.

bertrand (b-j-free) said : #14

Hi !

I can use the scanner from now.

hplip 3.20.6 installed from hp .run
no plugin (models.dat => plugin=0 ; plugin-reason=0)

the scan won't be detected unless I unplugg/plugg it after rebooting.

airscan sane is the only way to use this MFP hp m28a, as mentionned in the post proposed by Brian (https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1811504)

Thanks to all
Thank you so much Brian !

cheers