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.
OK, I've installed the printer in my system and also downloaded necessary plugins. But in HP Device Manager, the status is "Device communication error", the code number is 5012.
Then I tried hp-check in console. Here is the output:
PHP Code:
HP Linux Imaging and Printing System (ver. 3.9.4b) Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-9 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...
--------------- | SYSTEM INFO | ---------------
Basic system information: Linux HP-6531s 2.6.29.6-smp #1 SMP Mon Aug 17 00:18:05 CDT 2009 i686 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux
Distribution: unknown 0.0
HPOJ running? No, HPOJ is not running (OK).
Checking Python version... OK, version 2.6.2 installed
Checking PyQt 4.x version... OK, version 4.4.4 installed.
Checking for CUPS... Status: scheduler is running Version: 1.3.11 error_log is set to level: info
Checking for dbus/python-dbus... dbus daemon is running. python-dbus version: 0.83.0
------------------------------------ | 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... OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files... OK, found.
Checking for dependency: CUPS image - CUPS image development files... OK, found.
Checking for dependency: DBus - Message bus system... 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)... OK, found.
Checking for dependency: PolicyKit - Administrative policy framework... 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.... OK, found.
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4... OK, found.
Checking for dependency: Python ctypes - A foreign function library for Python... OK, found.
Checking for dependency: Python DBus - Python bindings for DBus... OK, found.
Checking for dependency: Python devel - Python development files... OK, found.
Checking for dependency: Python XML libraries... 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.
'hpaio' in '/etc/sane.d/dll.conf'... OK, found. SANE backend 'hpaio' is properly set up.
Checking output of 'scanimage -L'... device `hpaio:/net/HP_LaserJet_M1522n_MFP?ip=192.168.0.3' is a Hewlett-Packard HP_LaserJet_M1522n_MFP all-in-one device `v4l:/dev/video0' is a Noname CKF7063 virtual device
But the problem is still. I deleted my printer in hplip, and installed again in my cups. When I tried to print a test page, it said device communication error again.
For Slackware 13, you shouldn't have to install anything: your hplip version should be new enough. Go to the HPLIP site and check for your printer: they'll tell you the minimum version of hplip you need.
Just to check, do you have rc.cups set to run (chmod +x)?
Did you add your user to the lp group?
One more thing: do you have your firewall setup with iptables (/etc/rc.d/rc.firewall)? If so, there are several ports you have to open besides 515 and 631; see the manual for more info. I just set a rule to explicitly allow all traffic from my computer to the printer.
Thanks Vik.
I tried to use hp-makeuri to generate my printer's uri. But failed.
HP Linux Imaging and Printing System (ver. 3.9.4b)
Device URI Creation Utility ver. 5.0
Copyright (c) 2001-9 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.
error: Device not found
I'm pretty sure the ip is currect and my printer is powered on, because I can ping this ip. So what's wrong with it?
If it doesn't find the printer on the network, then it won't work right. If you type in the printer's IP in a browser, does the status screen come up? If not, check your network settings on the printer. On my officejet, I can program the default router, netmask, IP, wpa key, etc using the printer buttons. Does your printer also have this feature?
Another question: assuming that's all setup fine, is there another device on your network trying to use the same IP? Something to watch out for is setting up your router as a dhcp server and not reserving IPs below a certain range for static IPs. On my network I have the router only give out DHCP addresses above 10. Hope this helps.
If you're still having trouble, try setting it up in windows. If you can get it setup correctly in Windows, you shouldn't have any trouble setting it up in Linux.
I can see the status screen in my web browser. And I'm pretty sure there is no IP address conflict. I can also use my printer in my windows.
So what's the problem??? I really want to use my printer in my slackware...
Good!!! I figured it out!
The problem is that I've disable the support for SNMP.
When I enabled it, everything seems to be fine...
Thanks Vik, and everyone offer your help!
I think rangertang is referring to the net-snmp package.
I had this same problem with my setup initially but it was so long ago I forgot about the snmp package. Hplip installs and runs ok (for the most part) without this package, however it will not connect to any network printer. Installing the package solves the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.