HPLIP Device manager unable to find printers on current?
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
HPLIP Device manager unable to find printers on current?
I've encountered a problem with HPLIP, and now I'm wondering whether it is just me, or this is an existing issue with HPLIP. So does anyone else have this problem? Anyone have a solution?
This weekend I upgraded my desktop to current, and tried to reinstall my HP Photosmart 2575. So I fired up the HPLIP-toolbox. It did find my (networked) printer, but then it 1) complained that it couldn't find the right .ppd file for it (so I selected it manually) and then 2) it said it couldn't add the printer queue, so I should restart cups and retry. That didn't work; I could not use the HPLIP toolbox to add my printer.
This was all done within KDE. I then logged in as root on the cli and ran hp-setup, which found my printer, found the corresponding ppd, and added a queue to printers.conf. Everything seems to work (I didn't test the printer 'cause it was low on ink, but the scanner worked, the printer was reported on both localhost:631 and in de KDE printer settings applet). However, the HPLIP toolbox still says that there are no HP printers registered (recgonised by the hp:/ device URI), whereas a cursory glance at printers.conf clearly says there are.
In sum, even with HP printers properly installed, the HPLIP toolbox still complains that there are "no devices found". All commandline-utilities (hp-setup, hp-info) seem to work on the cli, the problem is only with the GUI toolbox.
from the looks of the error do you have the "ppdev" module installed in the kernel? also from it looks like you need th PIL package or upgrade the current one to Slackware-current. Try rebuilding the kernel with the ppdev and look to see if there is an upgrade or slackware package for the PIL dependency.
Cheers.
Tsomi's post explains why the hplip tools weren't working in current. PIL and ppdev have nothing to do with the problem and are optional dependencies, unless you are using a scanner or parallel port printer.
Last edited by Eternal_Newbie; 03-04-2008 at 08:38 AM.
Apparently, something changed from cups 1.3.4 onward that makes the hp-toolbox fail. I downgraded to 1.3.3 (built with the original Slackware slackbuild), and then it worked again. Also, I found a workaround on that bug page; starting the toolbox with
I'm running the Slackware -current from:
Sat Mar 29 18:07:00 CDT 2008
And on this system, so I can have Chinese input, I have:
Code:
mingdao@silas:~$ echo $LANG
en_US.UTF-8
And according to this thread, I tried:
Code:
mingdao@silas:~$ LC_MESSAGES=*en_US*.UTF8 LC_ALL=*en_US*.UTF8 hp-toolbox
and LC_MESSAGES=*en_US*.UTF-8 LC_ALL=*en_US*.UTF-8 hp-toolbox
and LC_MESSAGES=en_US.UTF-8 LC_ALL=en_US.UTF-8 hp-toolbox
and none of them worked for me.
From CLI:
Code:
mingdao@silas:~$ hp-check
HP Linux Imaging and Printing System (ver. 2.8.2)
Dependency/Version Check Utility ver. 13.0
Copyright (c) 2001-7 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).
Saving output in log file: hp-check.log
Initializing. Please wait...
warning: Invalid ppd_dir value: None
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux silas 2.6.24.3-smp #1 SMP Wed Mar 19 00:35:38 CDT 2008 i686 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
Distribution:
unknown 0.0
HPOJ running?
No, HPOJ is not running (OK).
Checking Python version...
OK, version 2.5.2 installed
Checking PyQt version...
OK, version 3.17 installed.
Checking SIP version...
OK, Version 4.6 installed
Checking for CUPS...
Status: scheduler is running
Version: 1.3.6
------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: cups - Common Unix Printing System...
OK, found.
Checking for dependency: cups-ddk - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.
Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.
Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.
Checking for dependency: libjpeg - JPEG library...
OK, found.
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.
Checking for dependency: libpthread - POSIX threads library...
OK, found.
Checking for dependency: libtool - Library building support services...
OK, found.
Checking for dependency: libusb - USB library...
OK, found.
Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: ppdev - Parallel port support kernel module....
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: PyQt - Qt interface for Python...
OK, found.
Checking for dependency: python-devel - Python development files...
OK, found.
Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.
Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.
Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: SANE - Scanning library...
OK, found.
Checking for dependency: SANE - Scanning library development files...
OK, found.
Checking for dependency: scanimage - Shell scanning program...
OK, found.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.
----------------------
| HPLIP INSTALLATION |
----------------------
Currently installed HPLIP version...
HPLIP 2.8.2 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207
[hplip]
version=2.8.2
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-2.8.2
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=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.2.10
-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------
No devices found.
error: 'ppdev' kernel module not loaded.
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP-DeskJet-920C
---------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/DeskJet_920C?serial=CN21R1C0BPIS
PPD: /etc/cups/ppd/HP-DeskJet-920C.ppd
PPD Description: HP DeskJet 920C Foomatic/hpijs (recommended)
Printer status: printer HP-DeskJet-920C is idle. enabled since Mon 24 Mar 2008 06:52:19 PM CST
error: Unable to communicate with device (code=12): hp:/usb/DeskJet_920C?serial=CN21R1C0BPIS
error: Device not found
HP-OfficeJet-J5788
------------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Officejet_J5700_series?serial=CN74KBF23T04T1
PPD: /etc/cups/ppd/HP-OfficeJet-J5788.ppd
PPD Description: HP OfficeJet J5700 Foomatic/hpijs (recommended)
Printer status: printer HP-OfficeJet-J5788 is idle. enabled since Mon 31 Mar 2008 11:25:31 PM CST
error: Unable to communicate with device (code=12): hp:/usb/Officejet_J5700_series?serial=CN74KBF23T04T1
error: Device not found
----------------------
| SANE CONFIGURATION |
----------------------
'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'...
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).
---------------------
| PYTHON EXTENSIONS |
---------------------
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
Checking 'scanext' SANE scanning extension...
OK, found.
-----------------
| USB I/O SETUP |
-----------------
Checking for permissions of USB attached printers...
-----------
| SUMMARY |
-----------
error: 6 errors and/or warnings.
Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html
Both printers work fine.
From CLI:
Code:
mingdao@silas:~$ LC_MESSAGES=*en_US*.UTF8 LC_ALL=*en_US*.UTF8 hp-toolbox
HP Linux Imaging and Printing System (ver. 2.8.2)
HP Device Manager ver. 11.0
Copyright (c) 2001-7 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.
warning: Reportlab not installed. Fax coverpages disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
error: Unable to communicate with device (code=12): hp:/usb/DeskJet_920C?serial=CN21R1C0BPIS
warning: Device not found
error: Unable to communicate with device (code=12): hp:/usb/Officejet_J5700_series?serial=CN74KBF23T04T1
warning: Device not found
error: Unable to communicate with device (code=12): hp:/usb/Officejet_J5700_series?serial=CN74KBF23T04T1
warning: Device not found
And also using the HP Device Manager GUI interface, it finds them not.
If someone can point me to something to do to help get this situation corrected, I'll join the fray.
Robby, I can not get used to a CHANGES_AND_HINTS.TXT file between
stable releases. I've added my user to the lp group, and restarted.
Since I already use an UTF-8 locale, that wasn't part of my command.
It works ... with only "hp-check" and "hp-toolbox".
Reading Bruce's post I decided to try with a UTF8 locale, and this indeed fixes the problems with hp-toolbox. And then I got curious and read the CHANGES_AND_HINTS for current. Indeed an interesting read Unfortunately, it still is very accurate with regard to my experiences with hp-toolbox; some way (in /etc/profile.d/lang.sh) or other (by calling "LANG=$LANG.UTF8 hp-toolbox"), a UTF8 locale must be set or it won't work.
Anyway that's my experience. I hope sharing it helps clearing up any doubts regarding what does and doesn't work with hp-toolbox.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.