Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-12-2017, 02:28 PM
|
#1
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Rep:
|
Scanner on raspbian (Wheezy) server stopped working
Hello,
I have a printer on my raspberry pi (as printer-server connected via LAN to the house router). The printer works: I can print from clients (laptops connected via wifi to the house router).
The function scanner dont work anymore (on server, on clients).
I checked all advices (again) from here https://wiki.debian.org/SaneOverNetwork
My experience came from that installation where I was already successfull http://www.linuxquestions.org/questi...on-4175488989/
lsusb (on the server)
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 03f0:c211 Hewlett-Packard
sane-find-scanner (on the server)
Code:
# 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.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".
found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:004
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
# 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.
scanimage -L (on the server)
Code:
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).
A bit weird: the scan-find-scanner say it found 2 scanners on the server. I will further dig into that issue. perhaps here http://www.tldp.org/HOWTO/Scanner-HO...eshooting.html
Any advice/help is welcome.
Last edited by floppy_stuttgart; 03-12-2017 at 02:31 PM.
|
|
|
03-12-2017, 07:55 PM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Are you using HPLIP? If so, what does the following diagnostic report?
|
|
|
03-13-2017, 01:14 PM
|
#3
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
hp-check -t (on the server)
Quote:
HP Linux Imaging and Printing System (ver. 3.15.4)
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/pi/hp-check.log
Initializing. Please wait...
\/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
warning: unknown-0.0 version is not supported. Using unknown-0 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 GNU/Linux
Host: raspberrypi
Proc: 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 GNU/Linux
Distribution: unknown 0.0
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.15.4
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 0.0 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.15.4
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.15.4
html=/usr/share/doc/hplip-3.15.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
# 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.15.4
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
Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Datei oder Verzeichnis nicht gefunden
Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = 13.03.2017 18:10:10
version = 3.15.4
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
--------------------------
| External Dependencies |
--------------------------
gs Ghostscript REQUIRED 7.05 9.05 OK -
network Network-wget OPTIONAL - 1.13.4 OK -
dbus DBus REQUIRED - 1.6.8 OK -
scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
policykit Admin-Policy-framework OPTIONAL - 0.105 OK -
(xsane:2873): Gtk-WARNING **: cannot open display:
error: xsane SANE-GUI OPTIONAL 0.9 - INCOMPAT 'xsane needs to be installed'
cups CUPS REQUIRED 1.1 1.5.3 OK 'CUPS Scheduler is running'
-------------------------
| General Dependencies |
-------------------------
reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.9.3 OK -
libjpeg JPEG-Lib REQUIRED - - OK -
libpthread POSIX-Threads-Lib REQUIRED - 2.13 OK -
python-dbus Python-DBUS REQUIRED 0.80.0 1.1.1 OK -
python-devel Python-SDK REQUIRED 2.2 2.7.3 OK -
pyqt4 Python-Qt4 REQUIRED 4.0 4.9.3 OK -
cups-devel CUPS-SDK REQUIRED - 1.5.3 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.5.3 OK -
libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
python-notify Desktop-notifications OPTIONAL - - OK -
------------------------------
| Compile Time Dependencies |
------------------------------
gcc gcc-Compiler REQUIRED - 4.6.3 OK -
libtool Build-tools REQUIRED - 2.4.2 OK -
make GNU-Build-tools REQUIRED 3.0 4.0 OK -
----------------------
| Python Extentions |
----------------------
cupsext CUPS-Extension REQUIRED - 3.15.4 OK -
pcardext PhotoCard-Extension REQUIRED - 3.15.4 OK -
hpmudext IO-Extension REQUIRED - 3.15.4 OK -
-----------------------
| Scan Configuration |
-----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.15.4 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.15.4 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP_Deskjet_2540_series
----------------------
Type: Unknown
Device URI: usb://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
PPD: /etc/cups/ppd/HP_Deskjet_2540_series.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.15.4
Printer status: printer HP_Deskjet_2540_series is idle. enabled since Fr 10 Mär 2017 21:03:36 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
--------------
| PERMISSION |
--------------
groups user-groups Required - - OK pi adm lp dialout cdrom sudo audio video plugdev games users netdev lpadmin scanner input spi gpio
error: Unable to connect to dbus session bus.
error: Unsupported model: Deskjet_2540_series
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
None
Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
Total Errors: 2
Total Warnings: 0
Re-run 'hp-check --fix' command to prompt and fix the issues.
Done.
|
|
|
|
03-13-2017, 06:22 PM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Code:
HP_Deskjet_2540_series
----------------------
Type: Unknown
Device URI: usb://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
PPD: /etc/cups/ppd/HP_Deskjet_2540_series.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.15.4
Printer status: printer HP_Deskjet_2540_series is idle. enabled since Fr 10 Mär 2017 21:03:36 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
The problem is you're using the wrong CUPS backend. You should be using the hp backend, so the URI in /etc/cups/printers.conf should look like this
Code:
hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
The scanner hpaio backend can only work if the printer is configured to use the hp backend.
|
|
|
03-15-2017, 04:02 PM
|
#5
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
the content of /etc/cups/printers.conf is currently..
..
Location Local Printer
MakeModel HP Deskjet 2540 Series, hpcups 3.15.4
DeviceURI usb://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
State Idle
..
Scanimage -L dont work.
I try to find the correct connection in CUPS browser in order to make it working (it is not suggested automatically)
Connection: hp://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1 .. dont work. It dont print anymore.
Connection: hpio://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1 .. Bad device-uri scheme "hpio".
Any idea?
|
|
|
03-15-2017, 04:10 PM
|
#6
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Yes, I already told you the answer in post #4. Your printer backend is incorrect. (That doesn't affect the printer operation, but it will affect the scanner operation as hpaio relies on the hp backend being configured.)
So, this URI in printers.conf
Code:
DeviceURI usb://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
needs to be changed to something like
Code:
DeviceURI hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
and then restart CUPS.
Alternatively, delete the existing printer configuration and use hp-setup to reconfigure.
http://hplipopensource.com/hplip-web.../hp_setup.html
|
|
|
03-16-2017, 02:44 PM
|
#7
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
DeviceURI hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604 was not working too. So its why I was asking what was a working link (I should have said I already tried it).
For the reason I am connecting with ssh to the server, "hp-setup -i" say
Quote:
HP Linux Imaging and Printing System (ver. 3.15.4)
Printer/Fax Setup Utility ver. 9.0
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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0
Using connection type: usb
error: No device selected/specified or that supports this functionality.
|
hp-setup -i
Quote:
HP Linux Imaging and Printing System (ver. 3.15.4)
Printer/Fax Setup Utility ver. 9.0
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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ? 1
Using connection type: net
error: No device selected/specified or that supports this functionality.
|
Nothing recognized.. weird. I will have a look again later.
|
|
|
03-16-2017, 06:36 PM
|
#8
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Did you try the 'hp-check' advice (last line in your output)...
Quote:
Re-run 'hp-check --fix' command to prompt and fix the issues.
|
|
|
|
03-17-2017, 03:04 PM
|
#9
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
sudo hp-check --fix
Quote:
HP Linux Imaging and Printing System (ver. 3.15.4)
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/pi/hp-check.log
Initializing. Please wait...
\/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
warning: unknown-0.0 version is not supported. Using unknown-0 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 GNU/Linux
Host: raspberrypi
Proc: 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 GNU/Linux
Distribution: unknown 0.0
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.15.4
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 0.0 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.15.4
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip-3.15.4
html=/usr/share/doc/hplip-3.15.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
# 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.15.4
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
Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Datei oder Verzeichnis nicht gefunden
Current contents of '~/.hplip/hplip.conf' file:
warning: Could not access file: Datei oder Verzeichnis nicht gefunden
<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
--------------------------
| External Dependencies |
--------------------------
gs Ghostscript REQUIRED 7.05 9.05 OK -
network Network-wget OPTIONAL - 1.13.4 OK -
dbus DBus REQUIRED - 1.6.8 OK -
scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
policykit Admin-Policy-framework OPTIONAL - 0.105 OK -
error: xsane SANE-GUI OPTIONAL 0.9 - MISSING 'xsane needs to be installed'
cups CUPS REQUIRED 1.1 1.5.3 OK 'CUPS Scheduler is running'
-------------------------
| General Dependencies |
-------------------------
reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.9.3 OK -
libjpeg JPEG-Lib REQUIRED - - OK -
libpthread POSIX-Threads-Lib REQUIRED - 2.13 OK -
python-dbus Python-DBUS REQUIRED 0.80.0 1.1.1 OK -
python-devel Python-SDK REQUIRED 2.2 2.7.3 OK -
pyqt4 Python-Qt4 REQUIRED 4.0 4.9.3 OK -
cups-devel CUPS-SDK REQUIRED - 1.5.3 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.5.3 OK -
libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
python-notify Desktop-notifications OPTIONAL - - OK -
------------------------------
| Compile Time Dependencies |
------------------------------
gcc gcc-Compiler REQUIRED - 4.6.3 OK -
libtool Build-tools REQUIRED - 2.4.2 OK -
make GNU-Build-tools REQUIRED 3.0 4.0 OK -
----------------------
| Python Extentions |
----------------------
cupsext CUPS-Extension REQUIRED - 3.15.4 OK -
pcardext PhotoCard-Extension REQUIRED - 3.15.4 OK -
hpmudext IO-Extension REQUIRED - 3.15.4 OK -
-----------------------
| Scan Configuration |
-----------------------
hpaio HPLIP-SANE-Backend REQUIRED - 3.15.4 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.15.4 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
No Scanner found.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP_Deskjet_2540_series
----------------------
Type: Unknown
Device URI: usb://HP/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
PPD: /etc/cups/ppd/HP_Deskjet_2540_series.ppd
PPD Description: HP Deskjet 2540 Series, hpcups 3.15.4
Printer status: printer HP_Deskjet_2540_series is idle. enabled since Do 16 Mär 2017 19:56:47 CET
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.
--------------
| PERMISSION |
--------------
groups user-groups Required - - OK root lp indiecity
-----------
| SUMMARY |
-----------
Missing Required Dependencies
-----------------------------
None
Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
Total Errors: 2
Total Warnings: 1
Please install above 'Missing Required Dependencies' and 'Missing Optional Dependencies'.
Done.
|
with xsane installed or not, the error is still there.
I fixed following: root was not in the lp group.
sudo scanimage -L still dont work.
I will try to install again the printer with hp.
|
|
|
03-17-2017, 03:24 PM
|
#10
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
Connection: hp:/Deskjet%202540%20series?serial=CN49Q4F4KH0604&interface=1
dont work.. I have to further scratch my head
|
|
|
03-17-2017, 04:20 PM
|
#11
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Okay, with the printer attached try running the hp backend manually like this
Code:
sudo /usr/lib/cups/backend/hp
What is returned? If the printer is not enumerated then there is a problem with the USB cable or subsystem that needs investigating.
|
|
|
03-18-2017, 03:34 AM
|
#12
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
the installed hplip was 3.15.4.
My printer HP Deskjet 2544 can only be supported from hplip 3.15.9 according the hplip page (I forgot this from the previous install I made months ago http://www.linuxquestions.org/questi...11-4175541344/ ) = the current standard debian Wheezy package 3.15.4 of hplip dont support my printer.
So, I downloaded the latest hplip version according http://hplipopensource.com/hplip-web...os/debian.html (I have the raspian which is based on Wheezy).
And it looks much better now:
sudo hp-setup -i
Quote:
HP Linux Imaging and Printing System (ver. 3.16.11)
Printer/Fax Setup Utility ver. 9.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.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
Setting up device: hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'Deskjet_2540'*, q=quit) ?m
Using queue name: Deskjet_2540
Locating PPD file... Please wait.
Found PPD file: drv:///hp/hpcups.drv/hp-deskjet_2540_series.ppd
Description:
Note: The model number may vary slightly from the actual model number on the device.
Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?wohnzimmer
Enter additonal information or notes for this printer (q=quit) ?
Adding print queue to CUPS:
Device URI: hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604
Queue name: Deskjet_2540
PPD file: drv:///hp/hpcups.drv/hp-deskjet_2540_series.ppd
Location: wohnzimmer
Information:
---------------------
| PRINTER TEST PAGE |
---------------------
Would you like to print a test page (y=yes*, n=no, q=quit) ? y
warning: hp-testpage should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.16.11)
Testpage Print Utility ver. 6.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.
Printing test page to printer Deskjet_2540...
Test page has been sent to printer.
note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.
Done.
Done.
|
The scanner works again.
THANKS to all! (my mistake.. I forgot I already had done it.. probably too much things to do here.. Alzheimer?..)
Last edited by floppy_stuttgart; 03-18-2017 at 03:43 AM.
|
|
|
03-18-2017, 03:44 AM
|
#13
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,939
|
Quote:
the installed hplip was 3.15.4.
My printer HP Deskjet 2544 can only be supported from hplip 3.15.9 according the hplip page (I forgot this from the previous install I made months ago) and the current standard debian Wheezy package 3.15.4 of hplip dont support my printer.
|
Ah, that is good to know. Always a good thing to check first - I was thrown by your initial comments about the printer working...
Quote:
I have a printer on my raspberry pi (as printer-server connected via LAN to the house router). The printer works: I can print from clients (laptops connected via wifi to the house router).
|
|
|
|
03-18-2017, 09:41 AM
|
#14
|
Senior Member
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,177
Original Poster
Rep:
|
The printer worked with the CUPS standard installation.
The scanner function only works with a different hplip version > debian wheezy standard version (the printer works)
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|