[SOLVED] Scanner on raspbian (Wheezy) server stopped working
Linux - NewbieThis 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.
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.
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).
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...
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.
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
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.
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".
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.)
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.
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...
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.
# 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>
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
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.
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
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) ?
---------------------
| 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 02:43 AM.
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).
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.