Cannot scan with LaserJet Pro MFP M28w

Asked by Emmanuel Bekaert

Hello there!

I use Linux Mint 18.

My printer is an HP LaserJet Pro MFP M28w.

Xscan will not open, I get: 'Failed to open device `hpaio:/usb/HP_LaserJet_MFP_M28_M31?serial=... Error during device I/O

When I try simple scan, It looks like it tries to scan, the waiting symbol appears, it circles around for a minute or so, then there is a red error message: "Failed to scan, unable to start scan".

I have no idea how to fix this scanning issue.

Any help would be appreciated :)

Here is the 'hp-check -t' output:

HPLIP-Version: HPLIP 3.18.9
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 18 version

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

[hplip]
version=3.18.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.18.9
html=/usr/share/doc/hplip-3.18.9
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.9
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=yes
class-driver=no

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

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

[settings]
systray_visible = 2
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3C43585"
printer_name = HP_LaserJet_MFP_M28-M31
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 = 10/26/2018 10:45:34
version = 3.18.9

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

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

 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.4.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.0.2 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 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 - 1.0.25 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.11.4 OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.23 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.12 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 cups-ddk CUPS DDK - CUPS driver development kit OPTIONAL - - OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.12 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 - 1.0.25 OK -

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

 scanext Scan-SANE-Extension REQUIRED - 3.18.9 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.18.9 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.25 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK 'CUPS Scheduler is running'
 network network -wget OPTIONAL - 1.17.1 OK -
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
 dbus DBus - Message bus system REQUIRED - 1.10.6 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -

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

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

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

device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3C43585' 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?serial=VNC3C43585 HP LaserJet MFP M28-M31

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

HP_LaserJet_MFP_M28-M31
-----------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3C43585
PPD: /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd
PPD Description: HP LaserJet MFP m28-m31, hpcups 3.18.9
Printer status: printer HP_LaserJet_MFP_M28-M31 is idle. enabled since Thu 25 Oct 2018 03:07:30 PM CEST
Communication status: Good

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

USB HP_LaserJet_MFP_M28-M31 Required - - OK Node:'/dev/bus/usb/003/002' Perm:' root lp rw- rw- rw- rw- rw- r--'
No errors or warnings.

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
srinivas (srinivas5) said :
#1

Hi,
Did you try the hp-scan command? Were you able to add the printer successfully through the hp-toolbox command?

Revision history for this message
Emmanuel Bekaert (manube) said :
#2

Hi,

Just tried the hp-scan command, here's the output:

hp-scan

HP Linux Imaging and Printing System (ver. 3.18.9)
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=VNC3C43585
Opening connection to device...
error: SANE: Error during device I/O (code=9)

------------------------------------

Regarding hp-toolbox, yes, it opens the HP device manager gui, and the printer seems successfully added.

I can successfully print a test page.

Clicking the 'scan' button opens Xsane gui.
When I try click the 'scan' button on Xsane gui though, I get the following error message: 'Failed to start scanner. Error during device I/O'

Revision history for this message
srinivas (srinivas5) said :
#3

Thanks for the update. Can you try reinstalling the plugin once and see if that resolves the issue?
command : hp-plugin

Revision history for this message
Emmanuel Bekaert (manube) said :
#4

I used the command 'hp-plugin' and reinstalled the plugin, by using first option: 'Download and install the plugin from an HP authorized server (recommended)'.
Everything installed correctly, apparently.

I still get the same errors, both with simple scan and Xscan :(

Revision history for this message
srinivas (srinivas5) said :
#5

Can you try restarting the printer device once and then add the printer to initiate the scan? The hp-check log is clean and not seeing any errors in the log.

Revision history for this message
Emmanuel Bekaert (manube) said :
#6

Id restarted the printer device and re-added the printer.

I had to give read permissions to the .ppd file, otherwise there was a pemission error in the log when attempting to read the ppd file. So I did this:

'sudo chmod o+r /etc/cups/ppd/HP_LaserJet_MFP_M28-M31.ppd'

Now no error in the log.

But still the same issues:

Xscan will not open, I get: 'Failed to open device `hpaio:/usb/HP_LaserJet_MFP_M28_M31?serial=... Error during device I/O

When I try simple scan, It looks like it tries to scan, the waiting symbol appears, it circles around for a minute or so, then there is a red error message: "Failed to scan, unable to start scan".

One more piece of information: I tried the same printer device with Win10: installation went fine.
Under Win10, I can both print and scan.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Lucazade (lucazade) said :
#8

same issue here.. any update?

Revision history for this message
Jarno (yannick-jarno) said :
#9

hi , did you resolve the problem.

I open https://answers.launchpad.net/hplip/+question/677937

and my problem is similar with ubuntu 18.10 and hplip 3.18.12

Yannick

Revision history for this message
Lucazade (lucazade) said :
#10

just found a workaround using (and modifying) a python script
https://bugs.launchpad.net/hplip/+bug/1811504/comments/31

but not solved using hplip scan tool :(

Revision history for this message
Jarno (yannick-jarno) said :
#11

Ok thanks,
mine is m28a (usb model) so i cannot use your script.
I am waiting for a new driver .... i hope ...
rgds