HP Laserjet 3390 scanner won't connect

I have a HP Laserjet 3390 printer/scanner. The printer works fine. YaST finds and configures the scanner, but it fails to work as a scanner.

Within Yast, Scanner config, Other/Test:

Error
Test with 'scanimage -d hpaio:/usb/HP_LaserJet_3390?serial-00CNRJR03861 -v' failed.
The results are:

scanimage: open of device hpaio:/usb/HP_LaserJet_3390?serial-00CNRJR03861 failed: Invalid argument
scan

then:

Error
Failed to test hpaio

I then ran the option to run the HPSetup. It seemed to configure fine.

Tried the Other/Test again. It ran longer, but came back with the same error.

Any help to get this scanner working is appreciated.

Printer sections of Hardware info tool:

                         P: /devices/pci0000:00/0000:00:1a.7/usb7/7-2
   N: bus/usb/007/004
  E: BUSNUM=007
  E: DEVNAME=/dev/bus/usb/007/004
  E: DEVNUM=004
  E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb7/7-2
  E: DEVTYPE=usb_device
  E: DRIVER=usb
  E: ID_BUS=usb
  E: ID_FOR_SEAT=usb-pci-0000_00_1a_7-usb-0_2
  E: ID_HPLIP=1
  E: ID_MODEL=HP_LaserJet_3390
  E: ID_MODEL_ENC=HP\x20LaserJet\x203390
  E: ID_MODEL_FROM_DATABASE=LaserJet 3390
  E: ID_MODEL_ID=3517
  E: ID_PATH=pci-0000:00:1a.7-usb-0:2
  E: ID_PATH_TAG=pci-0000_00_1a_7-usb-0_2
  E: ID_REVISION=0100
  E: ID_SERIAL=Hewlett-Packard_HP_LaserJet_3390_00CNRJR03861
  E: ID_SERIAL_SHORT=00CNRJR03861
  E: ID_USB_INTERFACES=:070103:070102:ff0101:
  E: ID_VENDOR=Hewlett-Packard
  E: ID_VENDOR_ENC=Hewlett-Packard
  E: ID_VENDOR_FROM_DATABASE=Hewlett-Packard
  E: ID_VENDOR_ID=03f0
  E: MAJOR=189
  E: MINOR=771
  E: PRODUCT=3f0/3517/100
  E: SUBSYSTEM=usb
  E: SYSTEMD_WANTS=configure-printer@usb-007-004.service printer.target
  E: TAGS=:seat:systemd:uaccess:
  E: TYPE=0/0/0
  E: USEC_INITIALIZED=62265018846
  E: hp_test=yes
  E: libsane_matched=yes
  E: sane_backend_hpaio=yes
  
  P: /devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.0
  E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.0
  E: DEVTYPE=usb_interface
  E: ID_MODEL_FROM_DATABASE=LaserJet 3390
  E: ID_VENDOR_FROM_DATABASE=Hewlett-Packard
  E: INTERFACE=7/1/3
  E: MODALIAS=usb:v03F0p3517d0100dc00dsc00dp00ic07isc01ip03in00
  E: PRODUCT=3f0/3517/100
  E: SUBSYSTEM=usb
  E: TYPE=0/0/0
  E: USEC_INITIALIZED=265019208
  
  P: /devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.1
  E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.1
  E: DEVTYPE=usb_interface
  E: ID_MODEL_FROM_DATABASE=LaserJet 3390
  E: ID_VENDOR_FROM_DATABASE=Hewlett-Packard
  E: INTERFACE=255/1/1
  E: MODALIAS=usb:v03F0p3517d0100dc00dsc00dp00icFFisc01ip01in01
  E: PRODUCT=3f0/3517/100
  E: SUBSYSTEM=usb
  E: TYPE=0/0/0
  E: USEC_INITIALIZED=265021303

P: /devices/pnp0/00:03/printer/lp0
N: lp0
  E: DEVNAME=/dev/lp0
  E: DEVPATH=/devices/pnp0/00:03/printer/lp0
  E: MAJOR=6
  E: MINOR=0
  E: SUBSYSTEM=printer
  E: SYSTEMD_WANTS=printer.target
  E: TAGS=:systemd:
  E: USEC_INITIALIZED=233716980
                         60: USB 00.0: 10900 Printer
  [Created at usb.122]
  Unique ID: 2jVo.WS1HjNfETz2
  Parent ID: BSFT.cO89g+iefn1
  SysFS ID: /devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.0
  SysFS BusID: 7-2:1.0
  Hardware Class: printer
  Model: "HP LaserJet 3390"
  Hotplug: USB
  Vendor: usb 0x03f0 "HP"
  Device: usb 0x3517 "LaserJet 3390"
  Revision: "1.00"
  Serial ID: "00CNRJR03861"
  Speed: 480 Mbps
  Module Alias: "usb:v03F0p3517d0100dc00dsc00dp00ic07isc01ip03in00"
  Driver Info #0:
    Driver Status: usblp is active
    Driver Activation Cmd: "modprobe usblp"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #59 (Hub)

61: USB 00.1: 0000 Unclassified device
  [Created at usb.122]
  Unique ID: Wuls.UF1DtBz3cLD
  Parent ID: BSFT.cO89g+iefn1
  SysFS ID: /devices/pci0000:00/0000:00:1a.7/usb7/7-2/7-2:1.1
  SysFS BusID: 7-2:1.1
  Hardware Class: unknown
  Model: "HP LaserJet 3390"
  Hotplug: USB
  Vendor: usb 0x03f0 "HP"
  Device: usb 0x3517 "LaserJet 3390"
  Revision: "1.00"
  Serial ID: "00CNRJR03861"
  Speed: 480 Mbps
  Module Alias: "usb:v03F0p3517d0100dc00dsc00dp00icFFisc01ip01in01"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #59 (Hub)

Is the HPLIP hp backend in use? It’s required in order for hpaio to work. What is reported by the following?

lpstat -t
scheduler is running
system default destination: hplaserjet3390
device for HP_LaserJet_3390: hp:/usb/HP_LaserJet_3390?serial=00CNRJR03861
device for HP_LaserJet_3390_fax: hpfax:/usb/HP_LaserJet_3390?serial=00CNRJR03861
device for hplaserjet3390: usb://HP/LaserJet%203390?serial=00CNRJR03861
HP_LaserJet_3390 accepting requests since Sun 29 May 2016 02:33:52 PM CDT
HP_LaserJet_3390_fax accepting requests since Sun 29 May 2016 02:32:00 PM CDT
hplaserjet3390 accepting requests since Sun 29 May 2016 02:22:49 PM CDT
printer HP_LaserJet_3390 is idle.  enabled since Sun 29 May 2016 02:33:52 PM CDT
    ready to print
printer HP_LaserJet_3390_fax is idle.  enabled since Sun 29 May 2016 02:32:00 PM CDT
printer hplaserjet3390 is idle.  enabled since Sun 29 May 2016 02:22:49 PM CDT

I note that you have the printer defined using the ‘hp’ backend, so that should be okay. I’m not sure if the ‘usb’ backend is impacting here. Is the scanner detected using the following?

hp-scan

Maybe review the output of ‘hp-doctor’ as well

hp-doctor

Just to check that sane is correctly configured to use the hpaio backend (which should be the case if /etc/sane.d/dll.conf contains uncommented entry for it)

export SANE_DEBUG_DLL=128
scanimage -L
  • The attached multifunction device should be reported with something like
device `hpaio:/usb/HP_LaserJet_3300_3310_3320?serial=xxxxxxxxxxxx' is a hp HPLaserJet 3300/3310/3320 multi-function peripheral

hp-scan

HP Linux Imaging and Printing System (ver. 3.15.11)
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_3390?serial=00CNRJR03861
Opening connection to device...
error: SANE: Invalid argument (code=4)

hp-doctor

HP Linux Imaging and Printing System (ver. 3.15.11)
Self Diagnse Utility and Healing Utility ver. 1.0

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.


HP Linux Imaging and Printing System (ver. 3.15.11)
Self Diagnse Utility and Healing Utility ver. 1.0

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.

\Xlib:  extension "RANDR" missing on display ":0".
|Xlib:  extension "RANDR" missing on display ":0".
 

Checking for Deprecated items....
No Deprecated items are found


Checking for HPLIP updates....

HP Linux Imaging and Printing System (ver. 3.15.11)
HPLIP upgrade latest version ver. 1.0

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.

error: HPLIP upgrade is disabled by openSUSE for security reasons, see https://bugzilla.novell.com/show_bug.cgi?id=853405 - if you like to upgrade HPLIP, use an openSUSE software package manager like YaST or zypper.

Done.
error: Failed to upgrade latest HPLIP. Is hp-upgrade already running (i.e. foreground or background)?


Checking for Dependencies....

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

 Kernel: 4.1.21-14-default #1 SMP PREEMPT Sun Apr 17 07:27:45 UTC 2016 (fc187c1) GNU/Linux
 Host: linux-gchk
 Proc: 4.1.21-14-default #1 SMP PREEMPT Sun Apr 17 07:27:45 UTC 2016 (fc187c1) GNU/Linux
 Distribution: suse 42.1
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.15.11
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for suse distro  42.1 version 

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

[hplip]
version=3.15.11

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
html==/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/lib/cups/driver
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=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.15.11
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=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:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1457579658
pending_upgrade_time = 0
latest_available_version = 3.16.2

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = hp:/usb/HP_LaserJet_3390?serial=00CNRJR03861
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 = 05/30/2016 09:25:44
version = 3.15.11


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

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

 gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.19            OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.24          OK         -
Xlib:  extension "RANDR" missing on display ":0".
Xlib:  extension "RANDR" missing on display ":0".
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.998           OK         -
 cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.1.3           OK         'CUPS Scheduler is running'
 policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.113           OK         -
 network              network -wget                                                OPTIONAL        -               1.14            OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.6.31          OK         -
 dbus                 DBus - Message bus system                                    REQUIRED        -               1.8.16          OK         -

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

 libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.0.1           OK         -
 python-dbus          Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.2.0           OK         -
 error: reportlab     Reportlab - PDF library for Python                           OPTIONAL        2.0             -               MISSING    'reportlab needs to be installed'
 python-notify        Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               OK         -
 pyqt4                PyQt 4- Qt interface for Python (for Qt version 4.x)         REQUIRED        4.0             4.11.4          OK         -
 python-xml           Python XML libraries                                         REQUIRED        -               2.1.0           OK         -
 libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.1.3           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.24          OK         -
 pil                  PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               1.1.7           OK         -
 python2X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             2.7.9           OK         -
 pyqt4-dbus           PyQt 4 DBus - DBus Support for PyQt4                         REQUIRED        4.0             4.11.4          OK         -
 libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               2.19            OK         -
 python-devel         Python devel - Python development files                      REQUIRED        2.2             2.7.9           OK         -
 cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.1.3           OK         -
 sane                 SANE - Scanning library                                      REQUIRED        -               1.0.24          OK         -

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

 libtool              libtool - Library building support services                  REQUIRED        -               2.4.2           OK         -
 gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               4.8.5           OK         -
 make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.0             OK         -

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

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

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

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

-----------------------
|  Other Dependencies |
-----------------------


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

device `hpaio:/usb/HP_LaserJet_3390?serial=00CNRJR03861' is a Hewlett-Packard HP_LaserJet_3390 all-in-one


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

  Device URI                                    Model                           
  --------------------------------------------  --------------------------------
  hp:/usb/HP_LaserJet_3390?serial=00CNRJR03861  HP LaserJet 3390                

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

 
HP_LaserJet_3390
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_3390?serial=00CNRJR03861
PPD: /etc/cups/ppd/HP_LaserJet_3390.ppd
PPD Description: HP LaserJet 3390 Postscript (recommended)
Printer ready to printr HP_LaserJet_3390 is idle.  enabled since Sun 29 May 2016 02:33:52 PM CDT
Communication status: Good

HP_LaserJet_3390_fax
--------------------
Type: Fax
Device URI: hpfax:/usb/HP_LaserJet_3390?serial=00CNRJR03861
PPD: /etc/cups/ppd/HP_LaserJet_3390_fax.ppd
PPD Description: HP Fax hpcups
Printer status: printer HP_LaserJet_3390_fax is idle.  enabled since Sun 29 May 2016 02:32:00 PM CDT
Communication status: Good


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

USB             HP_LaserJet_3390               Required        -        -        OK       Node:'/dev/bus/usb/007/004' Perm:'  root  lp rw- rw- rw- rw- r--'
 

Checking Permissions....


Checking for Configured Queues....
 
Queue(s) configured correctly using HPLIP.


Checking for HP Properitery Plugin's....
No plug-in printers are configured.
 
Diagnose completed...



More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.24
[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: opendir failed: No such file or directory
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `hpaio'
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib64/sane/libsane-hpaio.so.1'
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] sane_get_devices: found 1 devices
device `hpaio:/usb/HP_LaserJet_3390?serial=00CNRJR03861' is a Hewlett-Packard HP_LaserJet_3390 all-in-one
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `hpaio's exit function
[dll] sane_exit: finished

The error code is concerning

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_3390?serial=00CNRJR0386
Opening connection to device...
error: SANE: Invalid argument (code=4)

Perhaps an invalid config in ~/.sane. You could try deleting it with

rm -rf ~/.sane

Then try ‘hp-scan’ again. If that doesn’t help, then a bug report may be required.

FWIW, here’s another recent thread describing the same behaviour (with usb-attached device_

https://forums.opensuse.org/showthread.php/513282-scanner-fails-after-Leap-intalled

thanks, did this above.

rm -rf ~/.sane

dad@linux-gchk:~> hp-scan

HP Linux Imaging and Printing System (ver. 3.15.11)
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_3390?serial=00CNRJR03861
Opening connection to device...
error: SANE: Invalid argument (code=4)

I read the other post. I have not set up a LAN printer for years. It looks like that might do the trick. How would I set that up?
I can report the bug as well. Where would that be done?

Okay, then perhaps there is a regression here. This is the same problem as described in the other thread I linked to. The next step many be to submit a bug report. The information you have accumulated here can be included in your report, and other questions may be asked.

https://en.opensuse.org/openSUSE:Submitting_bug_reports
https://bugzilla.opensuse.org/index.cgi

As a workaround, you could try connecting this device to your network instead (assuming that is viable in your situation) as the other user found that it was working okay as a network-attached device.

I read the other post. I have not set up a LAN printer for years. It looks like that might do the trick. How would I set that up?

You’ll need to set up the printer IP address via its front-panel. If you choose DHCP, then make sure that your router, reserves the address for this particular device, since you don’t want the printer IP address changing on you. Having said that HPLIP is capable of configuring the printer by hostname as well as by numeric IP address if preferred. Many just prefer to assign a static IP address for the printer outside the DHCP range used by the router.

Remove any previously defined (USB-attached) printer configuration in CUPS. The next step is to configure using the ‘hp-setup’ utility. That should detect and configure as required.