Device is busy - Lubuntu 20.04

Asked by Vincent L.

Hello,

I have a HP Laserjet Pro MFP M28a which I was using under Lubuntu 18.04 and everything works fine. Yesterday I have installed Lubuntu 20.04 with HPLIP 3.20.5 (from the .run file) and the plug-in (from the .run file too).
When I do hp-check everything is ok, 0 errors and 0 warnings. I can see my printer in the devices list in HPLIP and in the system printers list.
I can print from any software, this is ok !
But in HPLIP status the printer status is always "Device is busy, powered down, or unplugged" and there's no information in the Supplies tab and if I try to print a test page from HP Device Manager I got an error message "Unable to communicate with printer".
And I can't use the scanner. I tried with simple scan and Skanlite with the same result "Unable to connect to scanner".

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
Jarno (yannick-jarno) said :
#1

Hello Vincent.
I see the same problem.
My m28 a with ubuntu 19.10 worked well (print and scan)
I migrated to lubuntu 20.04 and i can print but not scan ( busy)
I haven not answer , just a comment : there seems to be a real problem with hplip 3.20.5
regards Yannick

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

Hi,
I ran 2 commands "hp-check" and "hp-scan -g"

With hp-check all is ok , device discovered

With hp-scan -g error: SANE: Error during device I/O (code=9)

Vincent : Do you have same findings ?

I put below commands result :
hp-scan -g

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

Copyright (c) 2001-18 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.

hp-scan[3506]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[3506]: debug: Mode=0

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

  Num Scan device URI
  -------- ----------------------------------------------------
  0* hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040
  1 escl:http://127.0.0.1:60000

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

hp-check[2263]: info: :
hp-check[2263]: info: :[01mHP Linux Imaging and Printing System (ver. 3.20.5)[0m
hp-check[2263]: info: :[01mDependency/Version Check Utility ver. 15.1[0m
hp-check[2263]: info: :
hp-check[2263]: info: :Copyright (c) 2001-18 HP Development Company, LP
hp-check[2263]: info: :This software comes with ABSOLUTELY NO WARRANTY.
hp-check[2263]: info: :This is free software, and you are welcome to distribute it
hp-check[2263]: info: :under certain conditions. See COPYING file for more details.
hp-check[2263]: info: :
hp-check[2263]: info: :[01mNote: hp-check can be run in three modes:[0m
hp-check[2263]: info: :1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
hp-check[2263]: info: :determine if the proper dependencies are installed to successfully compile HPLIP.
hp-check[2263]: info: :2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already
hp-check[2263]: info: :built HPLIP supplied tarball has the proper dependencies installed to successfully run.
hp-check[2263]: info: :3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both
hp-check[2263]: info: :compile- and run-time dependencies).
hp-check[2263]: info: :
hp-check[2263]: info: :Check types:
hp-check[2263]: info: :a. EXTERNALDEP - External Dependencies
hp-check[2263]: info: :b. GENERALDEP - General Dependencies (required both at compile and run time)
hp-check[2263]: info: :c. COMPILEDEP - Compile time Dependencies
hp-check[2263]: info: :d. [All are run-time checks]
hp-check[2263]: info: :PYEXT SCANCONF QUEUES PERMISSION
hp-check[2263]: info: :
hp-check[2263]: info: :Status Types:
hp-check[2263]: info: : OK
hp-check[2263]: info: : MISSING - Missing Dependency or Permission or Plug-in
hp-check[2263]: info: : INCOMPAT - Incompatible dependency-version or Plugin-version
hp-check[2263]: info: :
hp-check[2263]: info: :
hp-check[2263]: info: :---------------
hp-check[2263]: info: :| SYSTEM INFO |
hp-check[2263]: info: :---------------
hp-check[2263]: info: :
hp-check[2263]: info: : Kernel: 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 GNU/Linux
 Host: lubuntu
 Proc: 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020 GNU/Linux
 Distribution: 12 20.04
hp-check[2263]: info: : Bitness: 64 bit

hp-check[2263]: info: :
hp-check[2263]: info: :-----------------------
hp-check[2263]: info: :| HPLIP CONFIGURATION |
hp-check[2263]: info: :-----------------------
hp-check[2263]: info: :
hp-check[2263]: info: :HPLIP-Version: HPLIP 3.20.5
hp-check[2263]: info: :HPLIP-Home: /usr/share/hplip
hp-check[2263]: info: :HPLIP-Installation: Auto installation is supported for ubuntu distro 20.04 version
hp-check[2263]: info: :
hp-check[2263]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[2263]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.20.5

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.20.5
html=/usr/share/doc/hplip-3.20.5
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.20.5
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
class-driver=no

hp-check[2263]: info: :
hp-check[2263]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[2263]: info: :[plugin]
installed = 1
eula = 1
version = 3.20.5

hp-check[2263]: info: :
hp-check[2263]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
warning: Could not access file: No such file or directory
hp-check[2263]: info: : <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
hp-check[2263]: info: :
hp-check[2263]: info: :-------------------------
hp-check[2263]: info: :| External Dependencies |
hp-check[2263]: info: :-------------------------
hp-check[2263]: info: :
hp-check[2263]: info: : cups CUPS - Common Unix Printing System REQUIRED 1.1 2.3.1 OK 'CUPS Scheduler is running'
hp-check[2263]: info: : gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
hp-check[2263]: info: : xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
hp-check[2263]: info: : scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
hp-check[2263]: info: : dbus DBus - Message bus system REQUIRED - 1.12.16 OK -
hp-check[2263]: info: : policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
hp-check[2263]: info: : network network -wget OPTIONAL - 1.20.3 OK -
hp-check[2263]: info: : avahi-utils avahi-utils OPTIONAL - 0.7 OK -
hp-check[2263]: info: :
hp-check[2263]: info: :------------------------
hp-check[2263]: info: :| General Dependencies |
hp-check[2263]: info: :------------------------
hp-check[2263]: info: :
hp-check[2263]: info: : libjpeg libjpeg - JPEG library REQUIRED - - OK -
hp-check[2263]: info: : cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.3.1 OK -
hp-check[2263]: info: : cups-image CUPS image - CUPS image development files REQUIRED - 2.3.1 OK -
hp-check[2263]: info: : libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
hp-check[2263]: info: : libusb libusb - USB library REQUIRED - 1.0 OK -
hp-check[2263]: info: : sane SANE - Scanning library REQUIRED - - OK -
hp-check[2263]: info: : sane-devel SANE - Scanning library development files REQUIRED - - OK -
hp-check[2263]: info: : libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.8 OK -
hp-check[2263]: info: : libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
hp-check[2263]: info: : python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 OK -
hp-check[2263]: info: : python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
hp-check[2263]: info: : python3-pyqt5-dbus PyQt 5 DBus - DBus Support for PyQt5 OPTIONAL 5.0 5.14.1 OK -
hp-check[2263]: info: : python3-pyqt5 PyQt 5- Qt interface for Python (for Qt version 4.x) REQUIRED 5.0 5.14.1 OK -
hp-check[2263]: info: : python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
hp-check[2263]: info: : python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
hp-check[2263]: info: : python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2 OK -
hp-check[2263]: info: : python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
hp-check[2263]: info: : python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -
hp-check[2263]: info: :
hp-check[2263]: info: :--------------
hp-check[2263]: info: :| COMPILEDEP |
hp-check[2263]: info: :--------------
hp-check[2263]: info: :
hp-check[2263]: info: : libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
hp-check[2263]: info: : gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.0 OK -
hp-check[2263]: info: : make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -
hp-check[2263]: info: :
hp-check[2263]: info: :---------------------
hp-check[2263]: info: :| Python Extentions |
hp-check[2263]: info: :---------------------
hp-check[2263]: info: :
hp-check[2263]: info: : cupsext CUPS-Extension REQUIRED - 3.20.5 OK -
hp-check[2263]: info: : hpmudext IO-Extension REQUIRED - 3.20.5 OK -
hp-check[2263]: info: :
hp-check[2263]: info: :----------------------
hp-check[2263]: info: :| Scan Configuration |
hp-check[2263]: info: :----------------------
hp-check[2263]: info: :
hp-check[2263]: info: : hpaio HPLIP-SANE-Backend REQUIRED - 3.20.5 OK 'hpaio found in /etc/sane.d/dll.conf'
hp-check[2263]: info: : scanext Scan-SANE-Extension REQUIRED - 3.20.5 OK -
hp-check[2263]: info: :
hp-check[2263]: info: :------------------------------
hp-check[2263]: info: :| DISCOVERED SCANNER DEVICES |
hp-check[2263]: info: :------------------------------
hp-check[2263]: info: :
hp-check[2263]: info: :Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
Created directory: /var/lib/snmp/mib_indexes
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `escl:http://127.0.0.1:60000' is a ESCL HP LaserJet MFP M28-M31 flatbed scanner
Created directory: /var/lib/snmp/mib_indexes
device `hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040' is a Hewlett-Packard HP_LaserJet_MFP_M28-M31 all-in-one
device `escl:http://127.0.0.1:60000' is a ESCL HP LaserJet MFP M28-M31 flatbed scanner

hp-check[2263]: info: :
hp-check[2263]: info: :--------------------------
hp-check[2263]: info: :| DISCOVERED USB DEVICES |
hp-check[2263]: info: :--------------------------
hp-check[2263]: info: :
hp-check[2263]: info: : Device URI Model
hp-check[2263]: info: : ------------------------------------------------- -------------------------
hp-check[2263]: info: : hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040 HP LaserJet MFP M28-M31
hp-check[2263]: info: :
hp-check[2263]: info: :---------------------------------
hp-check[2263]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[2263]: info: :---------------------------------
hp-check[2263]: info: :
hp-check[2263]: info: :
hp-check[2263]: info: :[01m[0m
hp-check[2263]: info: :[01m[0m
hp-check[2263]: info: :Type: Printer
hp-check[2263]: info: :Device URI: hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040
hp-check[2263]: info: :Communication status: Good
hp-check[2263]: info: :
hp-check[2263]: info: :
hp-check[2263]: info: :--------------
hp-check[2263]: info: :| PERMISSION |
hp-check[2263]: info: :--------------
hp-check[2263]: info: :
hp-check[2263]: info: :USB HP_LaserJet_MFP_M28-M31 Required - - OK Node:'/dev/bus/usb/002/002' Perm:' root lp rw- rw- rw- rw- r--'
hp-check[2263]: info: :
hp-check[2263]: info: :-----------
hp-check[2263]: info: :| SUMMARY |
hp-check[2263]: info: :-----------
hp-check[2263]: info: :
hp-check[2263]: info: :[01mMissing Required Dependencies[0m
hp-check[2263]: info: :[01m-----------------------------[0m
hp-check[2263]: info: :None
hp-check[2263]: info: :
hp-check[2263]: info: :[01mMissing Optional Dependencies[0m
hp-check[2263]: info: :[01m-----------------------------[0m
hp-check[2263]: info: :None

hp-check[2263]: info: :
hp-check[2263]: info: :Total Errors: 0
hp-check[2263]: info: :Total Warnings: 1
hp-check[2263]: info: :
hp-check[2263]: info: :
hp-check[2263]: info: :Done.

Revision history for this message
Vincent L. (massanin) said :
#3

Hi,

I have the same error message with 'hp-scan -g' and 'hp-check' is all good !!

I noticed a thing : when I go in CUPS printers list (http://localhost:631/printers/) I have two printers which have the same names but one with a dash at the end instead of underscore but different models : "HP LaserJet MFP m28-m31, hpcups 3.20.3" for the one from HPLIP and "HP LaserJet MFP M28-M31, driverless, cups-filters 1.27.4" for the one added by the system.
It seems that one is auto detected by the system and the other has been added by HPLIP. But HPLIP doesn't see the printer added by the system. I've tried to delete the printer added by the system but it always come back. And if I keep only the printer added by the system, HPLIP doesn't see it. There should be a conflict somewhere...
I just noticed that the printer from HPLIP is "hpcups 3.20.3" but I use HPLIP 3.20.5... weird !

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

Hi,
When i used this printer for the first time (ubuntu 18.10 hplip 3.18.12 ) I got many problems . i got solution in june 2019 bug https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1811504

At the moment i have only one printer discovered

When i ran hp-scan i got in syslog :

tail -f /var/log/syslog | grep hp-scan

May 19 22:18:31 lubuntu /hp-scan: hp-scan[5556]: warning: No destinations specified. Adding 'file' destination by default.
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 434: escl_open() session=(nil)
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset=0, index=1
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret=0
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 535: claimed 7/1/2 interface
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 781: read actual device_id successfully fd=1 len=239
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 561: released 7/1/2 interface
May 19 22:18:31 lubuntu /hp-scan: common/utils.c 245: unable to load library libm.so: /lib/x86_64-linux-gnu/libm.so: invalid ELF header
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 59: Calling bb_open
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 80: Calling bb_load EXIT
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 454: escl_open() calling bb_escl.so PASSED
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 283: init_options....
May 19 22:18:31 lubuntu /hp-scan: bb_escl.c 1103: bb_open() escl entry.
May 19 22:18:31 lubuntu /hp-scan: bb_escl.c 963: bb_get_scanner_elements.
May 19 22:18:31 lubuntu /hp-scan: http.c 249: http_open() dd=1 channel=HP-ESCL-SCAN handle=0x1292620
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 961: new HP-ESCL-SCAN channel=26 clientCnt=1 channelCnt=1
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 1567: invalid HP-ESCL-SCAN channel=26
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 976: removed HP-ESCL-SCAN channel=26 clientCnt=0 channelCnt=0
May 19 22:18:31 lubuntu /hp-scan: http.c 263: unable to open HP-ESCL-SCAN channel
May 19 22:18:31 lubuntu /hp-scan: http.c 249: http_open() dd=1 channel=HP-EWS-LEDM handle=0x1292620
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 961: new HP-EWS-LEDM channel=23 clientCnt=1 channelCnt=1
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=9
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 515: invalid claim_interface ff/4/1: Device or resource busy
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 976: removed HP-EWS-LEDM channel=23 clientCnt=0 channelCnt=0
May 19 22:18:31 lubuntu /hp-scan: http.c 263: unable to open HP-EWS-LEDM channel
May 19 22:18:31 lubuntu /hp-scan: http.c 249: http_open() dd=1 channel=HP-IPP handle=0x1292620
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 961: new HP-IPP channel=45 clientCnt=1 channelCnt=1
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=1, index=3
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 515: invalid claim_interface 7/1/4: Device or resource busy
May 19 22:18:31 lubuntu /hp-scan: io/hpmud/musb.c 976: removed HP-IPP channel=45 clientCnt=0 channelCnt=0
May 19 22:18:31 lubuntu /hp-scan: http.c 263: unable to open HP-IPP channel
May 19 22:18:31 lubuntu /hp-scan: bb_escl.c 975: unable to open http connection hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC3J87040
May 19 22:18:31 lubuntu /hp-scan: bb_escl.c 1013: bb_get_scanner_elements returning with (stat=1).
May 19 22:18:31 lubuntu /hp-scan: bb_escl.c 1247: bb_open() returning stat=1.
May 19 22:18:31 lubuntu /hp-scan: scan/sane/escl.c 89: Calling escl bb_unload:
May 19 22:18:31 lubuntu /hp-scan: hp-scan[5556]: error: SANE: Error during device I/O (code=9)

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

Hi vincent,
did you remove the installed default hplip 3.20.3 ?
I removed it first before installation of 3.20.5
regards yannick

Revision history for this message
Vincent L. (massanin) said :
#6

Hi Yannick,

Yes I've uninistalled hplip then removed the directories and then install the new version with the script.

I don't have the time right now to try the things you told me.

Regards.

Vincent

Revision history for this message
Vincent L. (massanin) said :
#7

Hi,

I got too many problems with my printer on lubuntu 20.04. I'm going to return to 19.10 as you told me you're printer was working well under this version.

Good luck if you're still trying to solve the problems.

Regards.

Vincent

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

I think 19.10 is a good idea. With 19.04 it had taken 6 months to be able to operate my m28a .....
https://bugs.launchpad.net/hplip/+bug/1819742 and https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1811504

it seems that Hp LaserJet MFP M28-M31 is badly supported with each version
i go back in 19.10
regards Yannick

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

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