Deskjet HP 2516 All-in-one-Printer Don't Scan

Asked by rabisco

I don't have success to make the scans with hplip-gui, xsane and scanimage. Ever I've this message:
Failed to open device 'hpaio:/usb/Deskjet_2510_series?serial=...': Invalid argument.

My distro is linuxmint 11.

This is the output of 'hp-check -rt':

jag@workstation ~ $ hp-check -rt

HP Linux Imaging and Printing System (ver. 3.12.9)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 Hewlett-Packard 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

Saving output in log file: /home/jag/hp-check.log

Initializing. Please wait...

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

 Kernel: 2.6.38-12-generic #51-Ubuntu SMP Wed Sep 28 14:27:32 UTC 2011 GNU/Linux
 Host: workstation
 Proc: 2.6.38-12-generic #51-Ubuntu SMP Wed Sep 28 14:27:32 UTC 2011 GNU/Linux
 Distribution: linuxmint 11

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

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

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

[hplip]
version=3.12.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=no
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
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.12.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-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 = 1348953004
pending_upgrade_time = 0
latest_available_version = 3.12.9

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX"
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 = 09/29/2012 18:30:19
version = 3.12.9

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

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

 gs Ghostscript REQUIRED 7.05 9.01 OK -
 network Network-wget OPTIONAL - 1.12 OK -
 dbus DBus REQUIRED - 1.4.6 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
 policykit Admin-Policy-framework OPTIONAL - 0.101 OK -
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
 cups CUPS REQUIRED 1.1 1.4.6 OK 'CUPS Scheduler is running'

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

 reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.8.3 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.13 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 0.83.1 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.1 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.8.3 OK -
 cups-devel CUPS-SDK REQUIRED - 1.4.6 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.22 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.4.6 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
 python-xml Python-XML-Lib REQUIRED - 2.0.1 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -

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

 cupsext CUPS-Extension REQUIRED - 3.12.9 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.9 OK -
 hpmudext IO-Extension REQUIRED - 3.12.9 OK -

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

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

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

No Scanner found.

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

  Device URI Model
  -------------------------------- ----------------------
  hp:/usb/Deskjet_2510_series?seri HP Deskjet 2510 series
  al=BR28IFD0KS05TX

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

Deskjet_2510
------------
Type: Printer
Device URI: hp:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX
PPD: /etc/cups/ppd/Deskjet_2510.ppd
PPD Description: HP Deskjet 2510 Series, hpcups 3.12.9
Printer status: printer Deskjet_2510 is idle. enabled since Sat 29 Sep 2012 06:16:14 PM BRT
Communication status: Good

Deskjet_2510_2
--------------
Type: Printer
Device URI: hp:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX
PPD: /etc/cups/ppd/Deskjet_2510_2.ppd
PPD Description: HP Deskjet 2510 Series, hpcups 3.12.9
Printer status: printer Deskjet_2510_2 is idle. enabled since Sat 29 Sep 2012 06:16:14 PM BRT
Communication status: Good

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

groups user-groups Required - - OK jag adm lp dialout cdrom plugdev lpadmin admin sambashare

USB Deskjet_2510 Required - - OK Node:'/dev/bus/usb/001/007' Mode:'436'

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

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

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

Total Errors: 0
Total Warnings: 0

No errors or warnings.

Done.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#1

Hi,

Please check "hpaio" is not comment in "/etc/sane.d/dll.conf"
-->if "#hpaio" present, then change to "hpaio".

check libsane-hpaio is present.

$ ls -l /usr/lib/sane/libsane-hpaio.*
following files needs to be present.
-->/usr/lib/sane/libsane-hpaio.la
-->/usr/lib/sane/libsane-hpaio.so -> libsane-hpaio.so.1.0.0
-->/usr/lib/sane/libsane-hpaio.so.1 -> libsane-hpaio.so.1.0.0
-->/usr/lib/sane/libsane-hpaio.so.1.0.0

If everything is correct, post here following output
$ hp-scan -g

--> also send us "/var/log/syslog" file

Thanks & Regards,
Amarnath

Revision history for this message
rabisco (jag-rabisco) said :
#2

 Hi,
 the outputs of all your indications are:

--
1. "hpaio" isn't present on dll.conf, in the "/etc/sane.d/dll.conf" is present only these hp models:

hp
hp3900
hpsj5s
hp3500
hp4200
hp5400
hp5590
hpljm1005

--
2. The check of libsane is OK. The output is:

jag@workstation ~ $ ls -l /usr/lib/sane/libsane-hpaio.*
-rwxr-xr-x 1 root root 1108 2012-09-29 18:06 /usr/lib/sane/libsane-hpaio.la
lrwxrwxrwx 1 root root 22 2012-09-29 18:06 /usr/lib/sane/libsane-hpaio.so -> libsane-hpaio.so.1.0.0
lrwxrwxrwx 1 root root 22 2012-09-29 18:06 /usr/lib/sane/libsane-hpaio.so.1 -> libsane-hpaio.so.1.0.0
-rwxr-xr-x 1 root root 454020 2012-09-29 18:06 /usr/lib/sane/libsane-hpaio.so.1.0.0

--
3. Output of hp-scan -g:
jag@workstation ~ $ hp-scan -g

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

Copyright (c) 2001-14 Hewlett-Packard 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[12074]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True)
hp-scan[12074]: debug: Mode=0
hp-scan[12074]: debug: Device URI cups-pdf:/ is invalid/unknown
hp-scan[12074]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[12074]: debug: Device URI cups-pdf:/ is invalid/unknown
hp-scan[12074]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[12074]: debug: hp:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX: back_end:hp is_hp:True bus:usb model:Deskjet_2510_series serial:BR28IFD0KS05TX dev_file: host: zc: port:1
hp-scan[12074]: debug: Cache miss: deskjet_2510_series
hp-scan[12074]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[12074]: debug: Searching for section [deskjet_2510_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[12074]: debug: Found section [deskjet_2510_series] in file /usr/share/hplip/data/models/models.dat
hp-scan[12074]: debug: hp:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX: back_end:hp is_hp:True bus:usb model:Deskjet_2510_series serial:BR28IFD0KS05TX dev_file: host: zc: port:1
hp-scan[12074]: debug: Device URI cups-pdf:/ is invalid/unknown
hp-scan[12074]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[12074]: debug: Device URI cups-pdf:/ is invalid/unknown
hp-scan[12074]: debug: Exception: 4 (Unknown/invalid device-uri field)
hp-scan[12074]: debug: {'hpaio:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX': ['Deskjet_2510', 'Deskjet_2510_2']}
Using device: hpaio:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX

warning: No destinations specified. Adding 'file' destination by default.
error: Unable to locate device hpaio:/usb/Deskjet_2510_series?serial=BR28IFD0KS05TX using SANE backend hpaio:. Please check HPLIP installation.

---
4. I don't know how I can to send the "/var/log/syslog" for you here... I don't have found the attachment feature in this thread.

Thanks,
americo

Can you help with this problem?

Provide an answer of your own, or ask rabisco for more information if necessary.

To post a message you must log in.