hp LaserJet Pro MFP M28w long delay before scan

Bug #1802381 reported by Arunas on 2018-11-08
This bug report is a duplicate of:  Bug #1811504: scan with Laserjet MFP-M28 fails. Edit Remove
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned

Bug Description

Scanner has long delay time before each scan. It takes long time to get scanned image to Simple Scan or XSane. Printer works fine. The delay before scan takes 45s, 20s more to get image on the screen, 15s till Simple Scan allows to press button for next scan.
Ubuntu 18.04

hp-check output:

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

-Gtk-Message: 21:31:20.716: Failed to load module "canberra-gtk-module"
\Gtk-Message: 21:31:21.123: Failed to load module "canberra-gtk-module"

---------------
| SYSTEM INFO |
---------------

 Kernel: 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 GNU/Linux
 Host: arunas
 Proc: 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 GNU/Linux
 Distribution: 12 18.04
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.18.10
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 18.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.18.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.18.10
html=/usr/share/doc/hplip-3.18.10
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.18.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
qt5=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.18.10

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1541682455
pending_upgrade_time = 0
latest_available_version = 3.17.10

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3C42642"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 2018-11-08 21:31:23
version = 3.18.10

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------
| COMPILEDEP |
--------------

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
 libtool libtool - Library building support services REQUIRED - 2.4.6 OK -

------------------------
| General Dependencies |
------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.0 OK -
 python-xml Python XML libraries REQUIRED - 2.2.5 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
 sane-devel SANE - Scanning library development files REQUIRED - - OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.12.1 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.27 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.15 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.2.7 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.2.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.15 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 sane SANE - Scanning library REQUIRED - - OK -

----------------------
| Scan Configuration |
----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.18.10 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.18.10 OK 'hpaio found in /etc/sane.d/dll.conf'

-------------------------
| External Dependencies |
-------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.25 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.2.7 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.19.4 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
Gtk-Message: 21:31:27.164: Failed to load module "canberra-gtk-module"
Gtk-Message: 21:31:27.184: Failed to load module "canberra-gtk-module"
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.12.2 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

---------------------
| Python Extentions |
---------------------

 hpmudext IO-Extension REQUIRED - 3.18.10 OK -
 cupsext CUPS-Extension REQUIRED - 3.18.10 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

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

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------- -----------------------
  hp:/usb/HP_LaserJet_MFP_M28-M31? HP LaserJet MFP M28-M31
  serial=VNC3C42642

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_LaserJet_MFP_M28-M31
-----------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3C42642
PPD: /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd
PPD Description: HP LaserJet MFP m28-m31, hpcups 3.18.10
Printer status: printer HP_LaserJet_MFP_M28-M31 is idle. enabled since 2018 m. lapkričio 08 d. 15:10:40
Communication status: Good

MG3100-series
-------------
Type: Unknown
Device URI: usb://Canon/MG3100%20series?serial=092167&interface=1
PPD: /etc/cups/ppd/MG3100-series.ppd
PPD Description: Canon MG3100 series - CUPS+Gutenprint v5.2.13
Printer status: printer MG3100-series is idle. enabled since 2018 m. liepos 17 d. 20:52:37
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

USB HP_LaserJet_MFP_M28-M31 Required - - OK Node:'/dev/bus/usb/001/003' Perm:' root lp rw- rw- rw- rw- r--'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 0
Total Warnings: 1

Done.

Hi Arunas,

We are working on performance improvement for the upcoming releases.

Regards,
Santhosh

Changed in hplip:
status: New → In Progress
Christian Engholm (rockmegax) wrote :
Download full text (14.1 KiB)

I am on Ubuntu 18.10 and Mint 19.1 and can confirm this problem!
I bought a HP LaserJet Pro MFP M28w yesterday. On Ubuntu 18.10 and Mint 19.1 with HPLIP 3.19.1 when I used hp-scan without any parameters it took 1:08 minutes to start the scan. The whole process took about 1:51 minutes.
When I called xsane it took 20 secs to finish scanning for devices and open the main windows, 1:20 to acquire the colored preview, and it took 1:21 to scan the image at 300 dpi and show it in the Viewer.
I will keep using my F4480 to scan things on Linux until that problem is fixed.

Video here:
https://youtu.be/7KjkDA3I0M8

Ubuntu 18.10 HPLIP 3.19.1 hp-scan output:

lodoss@lodoss:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.19.1)
Scan Utility ver. 2.2

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.

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNB3B09764
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.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/lodoss/hpscan007.png'.

Warming up...

Scanning...
Reading data: [*******************************************************************************] 100% 8.5 MB
Read 8.5 MB from scanner.
Closing device.

Outputting to destination 'file':

Done.

Hp-check results on Ubuntu 18.10:
lodoss@lodoss:~$ hp-check
Saving output in log file: /home/lodoss/hp-check.log

HP Linux Imaging and Printing System (ver. 3.19.1)
Dependency/Version Check Utility ver. 15.1

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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies). ...

Samuele Rini (samuele-rini) wrote :

Hello guys, I'm under linux Mint 19.1 too ...
How did you get the M28W to scan, actually?

I get this error:
(same with simple-scan)

**************************************************************
 ~ $ hp-scan

HP Linux Imaging and Printing System (ver. 3.19.1)
Scan Utility ver. 2.2

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.

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/HP_LaserJet_MFP_M28-M31?ip=192.168.100.70
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.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/samuele/hpscan001.png'.

Warming up...

Scanning...
error: SANE: Error during device I/O (code=9)
Closing device.

**************************************************************

Samuele Rini (samuele-rini) wrote :

I may add that mine is on wi-fi. I didn't try via USB, because I won't be able to use it anyway, due to the printer position.
Incidentally, the android HP app works: I can send documents in wi-fi.

brian_p (claremont102) wrote :

@Samuele Rini (and anyone else).

> I may add that mine is on wi-fi.

On Mint 19.1 you are also using HPLIP 3.17.10. That, plus being on the network, triggers https://bugs.launchpad.net/hplip/+bug/1797501. Solutions are at https://bugs.launchpad.net/hplip/+bug/1817214.

However, it would appear from other reports that this is not sufficient to restore scanning ability with the HP LaserJet Pro MFP M28-M31. Something else is going on and there is some additional advice in Message #9 at https://bugs.launchpad.net/hplip/+bug/1821932. It would be useful to know whether this works. (After fixing bug 1797501, of course).

--
Brian.

Ben Bipod (benbipod) wrote :

Consolidating multile reports about scan problems with LaserJet Pro MFP M28-M31 to bug #1811504 as it seems to be the most advanced and even has a workaround.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions