Scanner Hp Deskjet 2540

Hi, I am not able to use the scanner via usb of my HP 2540 printer. Thank a lot, Simone.

simone@simone-BT1AD:~$ hp-doctor

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

Copyright © 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.16.3)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright © 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.

Checking for Deprecated items…
No Deprecated items are found

Checking for HPLIP updates…
error: Failed to locate hp-upgrade utility

Checking for Dependencies…


SYSTEM INFO

Kernel: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Host: simone-BT1AD
Proc: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Distribution: ubuntu 16.04
Bitness: 64 bit


HPLIP CONFIGURATION

HPLIP-Version: HPLIP 3.16.3
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 16.04 version

Current contents of ‘/etc/hp/hplip.conf’ file:

hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.16.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=yes
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=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.16.3
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
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:
[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = “hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604”
printer_name = Deskjet_2540
working_dir = .

[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[upgrade]
notify_upgrade = true
last_upgraded_time = 1511730701
pending_upgrade_time = 0

[installation]
date_time = 12/01/17 23:07:01
version = 3.16.3

<Required/Optional>


External Dependencies

scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 OK -
dbus DBus - Message bus system REQUIRED - 1.10.6 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK ‘CUPS Scheduler is running’
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.18 OK -
network network -wget OPTIONAL - 1.17.1 OK -


General Dependencies

cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.5.2 OK -
sane SANE - Scanning library REQUIRED - 1.0.25 OK -
python3-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 -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.11.4 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.5.2 OK -
libpthread libpthread - POSIX threads library REQUIRED - b’2.23’ OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.25 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
libjpeg libjpeg - JPEG library REQUIRED - - OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -


COMPILEDEP

make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.4.0 OK -
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -


Python Extentions

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


Scan Configuration

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


Other Dependencies

DISCOVERED SCANNER DEVICES

device `hpaio:/usb/Deskjet_2540_series?serial=CN52S5F0D30604’ is a Hewlett-Packard Deskjet_2540_series all-in-one


DISCOVERED USB DEVICES

Device URI Model


hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604 HP Deskjet 2540 series


INSTALLED CUPS PRINTER QUEUES

Deskjet_2540

Type: Printer
Device URI: hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604
PPD: /etc/cups/ppd/Deskjet_2540.ppd
warning: Failed to read /etc/cups/ppd/Deskjet_2540.ppd ppd file
PPD Description:
Printer Processing page 1… Deskjet_2540 sta stampando Deskjet_2540-6. è stata abilitata da ven 01 dic 2017 22:59:08 CET
Communication status: Good


PERMISSION

USB Deskjet_2540 Required - - OK Node:’/dev/bus/usb/003/006’ Perm:’ root lp rw- rw- rw- rw- rw- r–’

Checking for Configured Queues…
warning: Fail to read ppd=/etc/cups/ppd/Deskjet_2540.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/Deskjet_2540.ppd
warning: Could not complete Queue(s) configuration check

Checking for HP Properitery Plugin’s…
No plug-in printers are configured.

Diagnose completed…

Not sure if this will help but …

cd /etc/cups/ppd
ls -l Deskjet_2540.ppd           (if permissions are not 754, change them)
sudo chmod 754 Deskjet_2540.ppd  (permissions should be -rwxr-xr-- )

Hi Pavlos, the scanner still do not working, but something change :
simone@simone-BT1AD:~$ hp-doctor

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

Copyright © 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.16.3)
Self Diagnse Utility and Healing Utility ver. 1.0

Copyright © 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.

/
** (xsane:2473): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.a11y.Bus: No such file or directory

Checking for Deprecated items…
No Deprecated items are found

Checking for HPLIP updates…
error: Failed to locate hp-upgrade utility

Checking for Dependencies…


SYSTEM INFO

Kernel: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Host: simone-BT1AD
Proc: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Distribution: ubuntu 16.04
Bitness: 64 bit


HPLIP CONFIGURATION

HPLIP-Version: HPLIP 3.16.3
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 16.04 version

Current contents of ‘/etc/hp/hplip.conf’ file:

hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.16.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=yes
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=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.16.3
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
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:
[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = “hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604”
printer_name = Deskjet_2540
working_dir = .

[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[upgrade]
notify_upgrade = true
last_upgraded_time = 1511730701
pending_upgrade_time = 0

[installation]
date_time = 12/02/17 12:15:16
version = 3.16.3

<Required/Optional>


External Dependencies

dbus DBus - Message bus system REQUIRED - 1.10.6 OK -
network network -wget OPTIONAL - 1.17.1 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 OK -

** (xsane:2576): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.a11y.Bus: No such file or directory

** (xsane:2579): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.a11y.Bus: No such file or directory
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK ‘CUPS Scheduler is running’
avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.18 OK -


General Dependencies

python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.5.2 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.25 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
libjpeg libjpeg - JPEG library REQUIRED - - OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.11.4 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.5.2 OK -
sane SANE - Scanning library REQUIRED - 1.0.25 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-xml Python XML libraries REQUIRED - 2.1.0 OK -
libpthread libpthread - POSIX threads library REQUIRED - b’2.23’ OK -


COMPILEDEP

gcc gcc - GNU Project C and C++ Compiler REQUIRED - 5.4.0 OK -
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -


Python Extentions

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


Scan Configuration

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


Other Dependencies

DISCOVERED SCANNER DEVICES

device `hpaio:/usb/Deskjet_2540_series?serial=CN52S5F0D30604’ is a Hewlett-Packard Deskjet_2540_series all-in-one


DISCOVERED USB DEVICES

Device URI Model


hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604 HP Deskjet 2540 series


INSTALLED CUPS PRINTER QUEUES

Deskjet_2540

Type: Printer
Device URI: hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604
PPD: /etc/cups/ppd/Deskjet_2540.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.16.3
Printer status: la stampante Deskjet_2540 è inattiva. è stata abilitata da sab 02 dic 2017 12:14:40 CET
Communication status: Good


PERMISSION

USB Deskjet_2540 Required - - OK Node:’/dev/bus/usb/003/005’ Perm:’ root lp rw- rw- rw- rw- rw- r–’

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

Thanks a lot, Simone.

Add this to your profile (.bashrc): export NO_AT_BRIDGE=1

Start another terminal and try the hp-doctor again.

Hi Pavlos, I added in my profile the text how you can see, but the scanner still do not work. I do not know if I understood your prescriptions.
Thanks a lot, Simone.

simone@simone-BT1AD:~$ hp-doctor

HP Linux Imaging and Printing System (ver. 3.16.3)
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.16.3)
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.

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

Checking for HPLIP updates....
error: Failed to locate hp-upgrade utility

Checking for Dependencies....


SYSTEM INFO

Kernel: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Host: simone-BT1AD
Proc: 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 GNU/Linux
Distribution: ubuntu 16.04
Bitness: 64 bit


HPLIP CONFIGURATION

HPLIP-Version: HPLIP 3.16.3
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 16.04 version

Current contents of '/etc/hp/hplip.conf' file:

hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.16.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=yes
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=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.16.3
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
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:
[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604"
printer_name = Deskjet_2540
working_dir = .

[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[upgrade]
notify_upgrade = true
last_upgraded_time = 1511730701
pending_upgrade_time = 0

[installation]
date_time = 12/02/17 14:50:33
version = 3.16.3

<Required/Optional>


External Dependencies

scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.25 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
avahi-utils avahi-utils OPTIONAL - 0.6.32 OK -
network network -wget OPTIONAL - 1.17.1 OK -
cups CUPS - Common Unix Printing System REQUIRED 1.1 2.1.3 OK 'CUPS Scheduler is running'
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.18 OK -
dbus DBus - Message bus system REQUIRED - 1.10.6 OK -


General Dependencies

libjpeg libjpeg - JPEG library REQUIRED - - OK -
python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.11.4 OK -
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.4 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.5.2 OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.23' OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
python3-xml Python XML libraries REQUIRED - 2.1.0 OK -
sane SANE - Scanning library REQUIRED - 1.0.25 OK -
cups-image CUPS image - CUPS image development files REQUIRED - 2.1.3 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.1.3 OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.25 OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.3 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.5.2 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.3.0 OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.2 OK -


COMPILEDEP

libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
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 -


Python Extentions

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


Scan Configuration

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


Other Dependencies

DISCOVERED SCANNER DEVICES

device `hpaio:/usb/Deskjet_2540_series?serial=CN52S5F0D30604' is a Hewlett-Packard Deskjet_2540_series all-in-one


DISCOVERED USB DEVICES

Device URI Model


hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604 HP Deskjet 2540 series


INSTALLED CUPS PRINTER QUEUES

Deskjet_2540

Type: Printer
Device URI: hp:/usb/Deskjet_2540_series?serial=CN52S5F0D30604
PPD: /etc/cups/ppd/Deskjet_2540.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.16.3
Printer ready to printmpante Deskjet_2540 è inattiva. è stata abilitata da sab 02 dic 2017 14:46:58 CET
Communication status: Good


PERMISSION

USB Deskjet_2540 Required - - OK Node:'/dev/bus/usb/003/006' Perm:' root lp rw- rw- rw- rw- rw- r--'

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
simone@simone-BT1AD:~$

I do not see any errors in the report, I assume you can print, the scan function does not work, right?
if others can help, please …

Right the scan function does not work.
Thanks a lot.
Simone

Take a look here, it might help?:

How to set up a HP printer in Ubuntu :smiley:

Still does not work scanner maybe is better to change OS :slight_smile:

Hi Simone,

have you tried changing your software sources download location and updating again?:

Your advices are not pertinent but with Fedora I have no problems.

Does your username need to be in the scanner group? I don’t have a scanner but trying to think of what else could be the issue … if your username is simone, sudo usermod -a -G scanner simone will add that user to the group scanner. Logout/login and try to scan …

1 Like

simone@simone-BT1AD:~$ sudo usermod -a -G scanner simone
simone@simone-BT1AD:~$ hp-scan

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

Copyright © 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/Deskjet_2540_series?serial=CN52S5F0D30604
Opening connection to device…

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
Top left (x,y): (0.000000mm, 0.000000mm)
Bottom right (x,y): (215.900009mm, 297.010681mm)
Width: 215.900009mm
Height: 297.010681mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to ‘/home/simone/hpscan001.png’.

Warming up…

Scanning…
error: SANE: Device busy (code=3)
Closing device.
simone@simone-BT1AD:~$

I solve by my self, the problem was the corruption of the firmware of my HP Deskjet 2540, but I had to use a windows pc because the HP manual indicate the process to renew the firmware only by mac os or windows os. Thanks a lot to all that attempted to help me.

glad you got it working …