LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2009, 12:42 AM   #1
rangertang
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Rep: Reputation: 15
Problem with HP LaserJet M1522n in Slackware 13.0


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 (ver3.9.4b)
Dependency/Version Check Utility ver14.3        

Copyright 
(c2001-9 Hewlett-Packard Development CompanyLP
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.

Notehp-check can be run in three modes:
1. Compile-time check mode (-or --compile): Use this mode before compiling the
HPLIP supplied tarball 
(.tar.gz or .runto determine if the proper dependencies
are installed to successfully compile HPLIP
.                                    
2. Run-time check mode (-or --run): Use this mode to determine if a distro    
supplied package 
(.deb, .rpmetc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run
.                      
3. Both compile- and run-time check mode (-or --both) (Default): This mode    
will check both of the above cases 
(both compile- and run-time dependencies).   

Saving output in log filehp-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
?
NoHPOJ is not running (OK).

Checking Python version...
OKversion 2.6.2 installed

Checking PyQt 4.x version
...
OKversion 4.4.4 installed.

Checking for CUPS...
Statusscheduler is running
Version
1.3.11
error_log is set to level
info

Checking 
for dbus/python-dbus...
dbus daemon is running.
python-dbus version0.83.0


------------------------------------
COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

noteTo check for compile-time only dependenciesre-run hp-check with the -c parameter (iehp-check -c).                                                     
noteTo check for run-time only dependenciesre-run hp-check with the -r parameter (iehp-check -r).                                                         

Checking for dependencyCUPS Common Unix Printing System...
OKfound.                                                    

Checking for dependencyCUPS DDK CUPS driver development kit...
OKfound.                                                        

Checking for dependencyCUPS develCommon Unix Printing System development files...                                                                           
OKfound.                                                                      

Checking for dependencyCUPS image CUPS image development files...
OKfound.                                                           

Checking for dependencyDBus Message bus system...
OKfound.                                           

Checking for dependencygcc GNU Project C and C++ Compiler...
OKfound.                                                      

Checking for dependencyGhostScript PostScript and PDF language interpreter and previewer...                                                                 
OKfound.                                                                      

Checking for dependencylibcrypto OpenSSL cryptographic library...
OKfound.                                                           

Checking for dependencylibjpeg JPEG library...
OKfound.                                        

Checking for dependencylibnetsnmp-devel SNMP networking library development files...                                                                        
OKfound.                                                                      

Checking for dependencylibpthread POSIX threads library...
OKfound.                                                    

Checking for dependencylibtool Library building support services...
OKfound.                                                             

Checking for dependencylibusb USB library...
OKfound.                                      

Checking for dependencymake GNU make utility to maintain groups of programs...                                                                              
OKfound.                                                                      

Checking for dependencyPIL Python Imaging Library (required for commandline scanning with hp-scan)...                                                       
OKfound.                                                                      

Checking for dependencyPolicyKit Administrative policy framework...
warningNOT FOUNDThis is an OPTIONAL/RUNTIME ONLY dependencySome HPLIP functionality may not function properly.                                            

Checking for dependencyppdev Parallel port support kernel module....
OKfound.                                                              

Checking for dependencyPyQt 4 DBus DBus Support for PyQt4...
OKfound.                                                      

Checking for dependencyPython ctypes A foreign function library for Python...                                                                               
OKfound.                                                                      

Checking for dependencyPython DBus Python bindings for DBus...
OKfound.                                                        

Checking for dependencyPython devel Python development files...
OKfound.                                                         

Checking for dependencyPython XML libraries...
OKfound.                                      

Checking for dependencyPython 2.3 or greater Required for fax functionality...                                                                              
OKfound.                                                                      

Checking for dependencyPython 2.2 or greater Python programming language...
OKfound.                                                                     

Checking for dependencyReportlab PDF library for Python...
warningNOT FOUNDThis is an OPTIONAL/RUNTIME ONLY dependencySome HPLIP functionality may not function properly.                                            

Checking for dependencySANE Scanning library...
OKfound.                                         

Checking for dependencySANE Scanning library development files...
OKfound.                                                           

Checking for dependencyscanimage Shell scanning program...
OKfound.                                                    

Checking for dependencyxsane Graphical scanner frontend for SANE...
OKfound.                                                             


----------------------
HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.9.4b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

[dirs]
home=/usr/share/hplip
run
=/var/run         
ppd
=/usr/share/cups/model/HP
ppdbase
=/usr/share/cups/model
doc
=/usr/doc/hplip-3.9.4b    
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                                                             
dbus
-build=yes                                                            
cups11
-build=no                                                           
doc
-build=yes                                                             
shadow
-build=yes                                                          
foomatic
-drv-install=yes                                                  
foomatic
-ppd-install=no                                                   
foomatic
-rip-hplip-install=yes                                            
cups
-ppd-install=no                                                       
cups
-drv-install=no                                                       
internal
-tag=3.9.4b.10                                                    
restricted
-build=no                                                       
ui
-toolkit=qt4                                                            
qt3
=no                                                                    
qt4
=yes                                                                   
policy
-kit=no                                                             


Current contents of 
'/var/lib/hp/hplip.state' file:
[
plugin]                                           
eula 1                                           
installed 
1                                      



Current contents of 
'~/.hplip/hplip.conf' file:
[
last_used]                                    
printer_name =                                 
working_dir = .                                
device_uri "hp:/net/HP_LaserJet_M1522n_MFP?ip=192.168.0.3"

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

[
installation]
date_time 09/07/09 13:25:32
version 
3.9.4b.10          

[settings]
systray_messages 0
systray_visible 


[fax]
email_address 
voice_phone =   

[
refresh]
rate 30
enable 
false
type 
1      

[polling]
enable false
device_list 

interval 5  



-------------------------------
DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HP_LaserJet_M1522n_MFP
----------------------
TypePrinter         
Device URI
hp:/net/HP_LaserJet_M1522n_MFP?ip=192.168.0.3
PPD
: /etc/cups/ppd/HP_LaserJet_M1522n_MFP.ppd            
PPD Description
HP LaserJet M1522 MFP Series Postscript (recommended)
Printer statusprinter HP_LaserJet_M1522n_MFP is idle.  enabled since Mon 07 Sep 2009 12:54:42 PM CST                                                          
Required plug
-in statusInstalled                                              
error
Unable to communicate with device (code=12): hp:/net/HP_LaserJet_M1522n_MFP?ip=192.168.0.3                                                               
error
unable to open channel                                                   
error
Communication statusFailed                                             


----------------------
SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OKfoundSANE 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                     


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



---------------
| USER GROUPS |
---------------

users disk lp floppy dialout audio video cdrom plugdev power netdev scanner


-----------
| SUMMARY |
-----------

error: 3 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done. 
Of course the printer should be fine, because I can use it in my Windows XP.
 
Old 09-07-2009, 07:51 PM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
I have the same printer working fine with Slackware 13. Try configuring directly from cups. Here is my printer.conf file.
Code:
<DefaultPrinter HP_LaserJet_M1522nf_MFP>
Info HP LaserJet M1522NF Printer
Location Office
DeviceURI hp:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.20
State Idle
StateTime 1242278643
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer HP_LaserJet_M1522nf_MFP_fax>
Info HP LaserJet M1522NF Fax
Location Office
DeviceURI hpfax:/net/HP_LaserJet_M1522nf_MFP?ip=192.168.1.20
State Idle
StateTime 1242279252
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
 
Old 09-10-2009, 02:08 AM   #3
rangertang
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks tux_dude.

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.
 
Old 09-13-2009, 11:33 AM   #4
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
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.

I got my HP Officejet working with these instructions: http://hplipopensource.com/hplip-web.../cups/net.html. Hopefully they'll work for you.

Last edited by vik; 09-13-2009 at 11:50 AM.
 
Old 09-13-2009, 09:09 PM   #5
rangertang
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Original Poster
Rep: Reputation: 15
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?
 
Old 09-14-2009, 10:42 AM   #6
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
you should be able to do:
hp-makeuri x.x.x.x

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.

Last edited by vik; 09-14-2009 at 11:36 AM.
 
Old 09-20-2009, 09:16 PM   #7
rangertang
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Original Poster
Rep: Reputation: 15
To Vik:

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...
 
Old 09-20-2009, 09:23 PM   #8
rangertang
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Original Poster
Rep: Reputation: 15
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!
 
Old 09-21-2009, 11:27 AM   #9
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
Just to clarify: you enabled SNMP through the firewall and that fixed it?
 
Old 09-21-2009, 12:39 PM   #10
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
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.
 
Old 09-21-2009, 01:00 PM   #11
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
Thanks, good to know. I guess I never had problems with it because I do the full slackware install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HP laserjet 1010 whith Slackware 9.1 zokter Linux - Hardware 0 03-04-2005 09:41 AM
Cannot install HP Laserjet 4L Printer on Slackware 10... plz help sys7em Linux - Hardware 0 01-28-2005 02:02 PM
HP LaserJet 5M + Slackware chrisk5527 Linux - Software 0 02-06-2004 12:21 PM
problem w/ hp Laserjet 1200 series printer under Slackware 9.1 mjewell Slackware 1 01-19-2004 02:52 PM
HP LaserJet 1000 & Slackware 9.1 BrianW Slackware 0 10-04-2003 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration