HP Photosmart B109a-m in scanner mode doesn't work

Asked by Francesco Veronese

Linux Ubuntu version 20.04 LTS
Printer HP Photosmart All-In-One B109a-m
Doesn't work if in scanning mode. An error msg is reported onboard printer's display. Printing mode is OK.
Report of "hp-check -t" command follows:

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

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.

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).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

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

warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

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

 Kernel: 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 GNU/Linux
 Host: PCcasa
 Proc: 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 GNU/Linux
 Distribution: ubuntu 20.04
 Bitness: 64 bit

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

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 20.04 version

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

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
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=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
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:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 05/16/20 19:49:21
version = 3.20.3

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

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

 error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
 error: xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
 error: dbus DBus - Message bus system REQUIRED - 1.12.16 MISSING 'DBUS may not be installed or not running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.20.3 OK -
 avahi-utils avahi-utils OPTIONAL - 0.7 OK -

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

 error: libjpeg libjpeg - JPEG library REQUIRED - - MISSING 'libjpeg needs to be installed'
 error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
 error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed'
 libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
 error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
 sane SANE - Scanning library REQUIRED - - OK -
 error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
 error: libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 MISSING 'libcrypto needs to be installed'
 python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.2 OK -
 error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
 python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
 python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
 error: python3-devel Python devel - Python development files REQUIRED 2.2 3.8.2 MISSING 'python3-devel needs to be installed'
 python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 7.0.0 OK -
 python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.5.34 OK -

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

 error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.3.0 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -

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

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

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

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

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

No Scanner found.

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

No devices found.

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

Photosmart-B109a-m
------------------
Type: Unknown
Device URI: usb://HP/Photosmart%20B109a-m?serial=CN061GD1ZV05C7&interface=1
PPD: /etc/cups/ppd/Photosmart-B109a-m.ppd
warning: Failed to read /etc/cups/ppd/Photosmart-B109a-m.ppd ppd file
PPD Description:
Printer status: la stampante Photosmart-B109a-m è inattiva. è stata abilitata da sab 16 mag 2020, 16:21:20
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

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

error: Unsupported model: Photosmart_B109a-m

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

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg-dev' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libusb-0.1-4' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'gtk2-engines-pixbuf' package is missing/incompatible
error: 'xsane' package is missing/incompatible
error: 'python3-notify2' package is missing/incompatible
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 15
Total Warnings: 1

THANKS A LOT FOR YOUR HELP!

FRANCESCO

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
brian_p (claremont102) said :
#1

Give the output of 'scanimage -L'.

Brian.

Revision history for this message
Francesco Veronese (veronesef387) said :
#2

Hi Brian,

here's the output of scanimage -L

"No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages)."

and the output of sane-find-scanner:

"# sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x04f2/0xb2f4 at 001:003: Access denied (insufficient permissions)
found USB scanner (vendor=0x03f0 [HP], product=0x7a11 [Photosmart B109a-m]) at libusb:001:005
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x045e/0x07b2 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 003:001: Access denied (insufficient permissions)
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary."

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

The device was of course connected and the printer works properly.
HP Solution Center, which features an easy way to control printing/scanning processes works usually with Windows. Could it be made working with Ubuntu too?

Thanks a lot
Francesco

Revision history for this message
brian_p (claremont102) said :
#3

> found USB scanner (vendor=0x03f0 [HP], product=0x7a11
> [Photosmart B109a-m]) at libusb:001:005

This tells you that your user has permission to access the USB bus.
Good.

> here's the output of scanimage -L. "No scanners were identified....

This means that HPLIP cannot find a scan-type to use for the device.
Not so good.

Take a look at /usr/share/hplip/data/models/models.dat. Your device
is not listed, so it is not supported by HPLIP. We are now into guessing!
Edit models.dat to have

 [Photosmart_B109a-m]
  scan-type=1

and try
 scanimage -d "usb://HP/Photosmart%20B109a-m?serial=CN061GD1ZV05C7&interface=1"

Brian.

Revision history for this message
brian_p (claremont102) said :
#4

Sorry. The command should be

scanimage -d "usb://HP/Photosmart%20B109a-m?serial=CN061GD1ZV05C7&interface=1" > image.pnm

Revision history for this message
brian_p (claremont102) said :
#5

A response would be appreciated.

Brian.

Revision history for this message
Francesco Veronese (veronesef387) said :
#6

Sure! Yesterday I didn't have time to check. I'try today and I give You a
feedback.

Thxs

Il lun 18 mag 2020, 21:41 brian_p <email address hidden> ha
scritto:

> Your question #690772 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/690772
>
> brian_p posted a new comment:
> A response would be appreciated.
>
> Brian.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Francesco Veronese (veronesef387) said :
#7

Hi Brian,

here's the result of the latest suggested command:

scanimage -d "usb://HP/Photosmart%20B109a-m?serial=CN061GD1ZV05C7&interface=1" > image.pnm

"Output format is not set, using pnm as a default.
scanimage: open of device usb://HP/photosmart%20B109a-m?serial=CN061GD1ZV05C7&interface=1 failed: Invalid argument"

Note that scan-type=1 line was already present in models.dat file, not immediately below the header [Photosmart_B109a-m] but some lines after the indication of the specific model

I've run also hp-setup as per HPLIP web indications but ......

"hp-setup

HP Linux Imaging and Printing System (ver. 3.20.5)
Printer/Fax Setup Utility ver. 9.0

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.

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb"

even searching manually, entering device's address, the result is the same.......

Francesco

Revision history for this message
brian_p (claremont102) said :
#8

Hello Francesco,

You get

> ...failed: Invalid argument"

Instead of " -d "usb://HP/Photosmart..." try

-d hpaio:/usb/Photosmart_B109a-m?serial=CN061GD1ZV05C7

Revision history for this message
Francesco Veronese (veronesef387) said :
#9

Unfortunately...

"Output format is not set, using pnm as a default.
scanimage: open of device hpaio:/usb/Photosmart_B109a-m?serial=CN061GD1ZV05C7 failed: Operation not supported"

Revision history for this message
brian_p (claremont102) said :
#10

As I said previously - the suggestion was a guess. Best would be
for upstream to provide support in models.dat. Sorry, I cannot
help further.

Cheers,

Brian.

Revision history for this message
Francesco Veronese (veronesef387) said :
#11

Thanks anyway

Francesco

Revision history for this message
A. GUEYE (ag3945) said :
#12

this problem looks like a lot the one i was facing yesterday.

I'm using Debian sid

my problem was an error (bug ? ) in package : libsane-hpaio_3.20.5+dfsg0-2_amd64.deb
the error in log files was:
"[dll] load: dlopen() failed (/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1: undefined symbol: _DBG)"

It was solved by downgrading this package to version: libsane-hpaio_3.20.3+dfsg0-1_amd64.deb (in Debian)

The error can be reproduced by checking the output of these commands:

user3@Deskstation:~$ export SANE_DEBUG_DLL=128
user3@Deskstation:~$ scanimage -L
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.27
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/libsane-extras
[dll] sane_init/read_config: reading dll.d/libsane-extras
[dll] add_backend: adding backend `ls5000'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `net'
[dll] add_backend: adding backend `hp'
[dll] add_backend: adding backend `hpaio'
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen() failed (/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1: undefined symbol: _DBG)
[dll] load: searching backend `hp' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hp.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hp.so.1'
[dll] init: initializing backend `hp'
[dll] init: backend `hp' is version 1.0.8
[dll] load: searching backend `net' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-net.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-net.so.1'
[dll] init: initializing backend `net'
[dll] init: backend `net' is version 1.0.27
[dll] load: searching backend `ls5000' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-ls5000.so.1'
[dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-ls5000.so.1' (No such file or directory)
[dll] load: trying to load `/usr/lib/sane/libsane-ls5000.so.1'
[dll] load: couldn't open `/usr/lib/sane/libsane-ls5000.so.1' (No such file or directory)
[dll] load: couldn't find backend `ls5000' (No such file or directory)
[dll] sane_get_devices: found 0 devices

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `hp's exit function
[dll] sane_exit: calling backend `net's exit function
[dll] sane_exit: finished

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

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