You are not logged in.

#1 2011-06-09 14:19:13

Draucia
Member
Registered: 2011-06-05
Posts: 128

[SOLVED]hplip - Hp officejet j4580 all-in-one

EDIT: Almost completely solved... it works if the printer is plugged in when booting the daemons (it says starting HP something, than lists the devices at bootup). So I have to restart with it plugged in to get it to work. I have tried "sudo rc.d restart cups" but it doesn't work. I need to do a complete restart.

EDIT: Update! I installed hpoj and it detects my printer now. Now the only problem is that it keeps saying "Low on ink" when it really isn't. It prints fine under windows. Another thing is xsane won't use it... it uses my laptop camera.

I'm having lots of problems getting my printer to scan/print in Arch Linux. It worked perfectly fine under Linux Mint. So I installed sane, xsane, and hplip from pacman. When I type hp-setup, it can not find the ppd for my printer (Hp officejet j4580 all-in-one). This is really weird since it is supported (it's in their printer list) and it worked completely fine under linux mint. So I selected a similar printer, and clicked add printer. It says I am not in the "sys" group. I do "sudo gpasswd -a draucia sys" and try again but same error. I even tried as root... didn't work. I tried downloading the tarball and doing:


./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build


But it says:


checking for python extension module directory... ${exec_prefix}/lib/python3.2/site-packages
checking for path to Python.h...   File "<string>", line 1
    from distutils.sysconfig import get_python_inc; print get_python_inc();
                                                                       ^
SyntaxError: invalid syntax
"using "
checking python3.2/Python.h usability... no
checking python3.2/Python.h presence... no
checking for python3.2/Python.h... no
configure: error: cannot find python-devel support

At the end. I don't know what to do now... I tried booting into windows 7 and it identified the printer immediately and scanned/printed without any additional software which really impressed me lol.

Last edited by Draucia (2011-06-11 17:34:39)

Offline

#2 2011-06-09 20:45:08

mickael9
Member
Registered: 2008-10-11
Posts: 29

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

Have you run it as root ?

Offline

#3 2011-06-09 21:16:12

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

I specifically said: "I even tried as root... didn't work."

Offline

#4 2011-06-09 21:40:36

mickael9
Member
Registered: 2008-10-11
Posts: 29

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

And what's the output of hp-setup -gi ? (as root)

Offline

#5 2011-06-09 23:10:24

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

I can't find the ppd for my printer (HP Officejet J4580 All-in-one) so I used: hp-officejet_j4680_series-hpijs.ppd, which looks almost identical to my printer (on google images). Anyways, heres the installation:

[root@draucia ~]# hp-setup -gi

HP Linux Imaging and Printing System (ver. 3.11.3)
Printer/Fax Setup Utility ver. 9.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.

hp-setup[10148]: debug: param=
hp-setup[10148]: debug: selected_device_name=None
(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)
  2         par         Parallel Port (LPT:)                                      

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 

Using connection type: usb

hp-setup[10148]: debug: 
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[10148]: debug: Probing bus: usb
hp-setup[10148]: debug: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T
hp-setup[10148]: debug: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T: back_end:hp is_hp:True bus:usb model:Officejet_J4500_series serial:CN841114HQ052T dev_file: host: zc: port:1
hp-setup[10148]: debug: Cache miss: officejet_j4500_series
hp-setup[10148]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[10148]: debug: Searching for section [officejet_j4500_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[10148]: debug: Found section [officejet_j4500_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[10148]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-setup[10148]: debug: Mode=0
Using device: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T


Setting up device: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T


hp-setup[10148]: debug: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T: back_end:hp is_hp:True bus:usb model:Officejet_J4500_series serial:CN841114HQ052T dev_file: host: zc: port:1
hp-setup[10148]: debug: Model=Officejet_J4500_series
hp-setup[10148]: debug: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T: back_end:hp is_hp:True bus:usb model:Officejet_J4500_series serial:CN841114HQ052T dev_file: host: zc: port:1
hp-setup[10148]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[10148]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[10148]: debug: Foomatic PPD base path = /usr/share/ppd

---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Officejet_J4500'*, q=quit) ?home
Using queue name: home
Locating PPD file... Please wait.
hp-setup[10148]: debug: Matching PPD list to model officejet_j4500...
hp-setup[10148]: debug: []
warning: No PPD found for model officejet_j4500 using new algorithm. Trying old algorithm...
hp-setup[10148]: debug: 1st stage edit distance match
hp-setup[10148]: debug: Determining edit distance from officejet_j4500 (only showing edit distances < 4)...
hp-setup[10148]: debug: Min. dist = 9223372036854775807
hp-setup[10148]: debug: {}
hp-setup[10148]: debug: []
hp-setup[10148]: debug: []
error: No PPD found for model officejet_j4500 using old algorithm.
error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? /usr/share/ppd/HP/hp-officejet_j4680_series-hpijs.ppd.gz
error: Please press <enter> or enter 'y', 'n', or 'q'.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

share/ppd/HP/hp-officejet_j4680_series-hpijs.ppd.gzle to use (q=quit) :/usr/ 
Description for the file: HP Officejet j4680 Series hpijs, 3.11.3.26

Use this file (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?home
inter additonal information or notes for this printer (q=quit) ?home pr 

Adding print queue to CUPS:
Device URI: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T
Queue name: home
PPD file: /usr/share/ppd/HP/hp-officejet_j4680_series-hpijs.ppd.gz
Location: home
Information: home printer
hp-setup[10148]: debug: Restarting CUPS...
hp-setup[10148]: debug: cupsd: no process found

hp-setup[10148]: debug: Restart CUPS returned: exit=1 output=cupsd: no process found

hp-setup[10148]: debug: addPrinter('home', 'hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T', 'home', '/usr/share/ppd/HP/hp-officejet_j4680_series-hpijs.ppd.gz', '', 'home printer')
hp-setup[10148]: debug: addPrinter() returned (0, Unable to connect to CUPS server)
error: Printer queue setup failed. Please restart CUPS and try again.

Oh and heres the output of hp-check if you might need it (don't see any important errors here, though):

[root@draucia ~]# hp-check

HP Linux Imaging and Printing System (ver. 3.11.3)
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 draucia 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 6 22:37:55 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

Checking Python version...
OK, version 2.7.1 installed

Checking PyQt 4.x version...
OK, version 4.8.4 installed.

Checking for CUPS...
Status: scheduler is not running
Version: 1.4.6
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.1


------------------------------------
| 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 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...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
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 libnotify - Python bindings for the libnotify Desktop notifications...
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...
OK, found.

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

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.11.3
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=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.3.26
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables. 

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory

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

  Device URI                        Model                    
  --------------------------------  -------------------------
  hp:/usb/Officejet_J4500_series?s  HP Officejet J4500 series
  erial=CN841114HQ052T                                       

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

 
lpstat
------
Type: Unknown
Device URI: No such file or directory


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

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `v4l:/dev/video0' is a Noname USB 2.0 Camera 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.


 
-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x2a12 at 002:002: 
    Device URI: hp:/usb/Officejet_J4500_series?serial=CN841114HQ052T
    Device node: /dev/bus/usb/002/002
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/002
# owner: root
# group: lp
user::rw-
group::rw-
other::r--



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

root bin daemon sys adm disk wheel log


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

No errors or warnings.

Done.

Last edited by Draucia (2011-06-09 23:15:16)

Offline

#6 2011-06-10 12:11:40

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

Update! I installed hpoj and it detects my printer now. Now the only problem is that it keeps saying "Low on ink" when it really isn't. It prints fine under windows. Another thing is xsane won't use it... it uses my laptop camera.

Almost there! It works if the printer is plugged in when booting the daemons (it says starting HP something, than lists the devices at bootup). So I have to restart with it plugged in to get it to work. I have tried "sudo rc.d restart cups" but it doesn't work. I need to do a complete restart. If I remove the usb cable and plug it back in, printing doesn't work. It says "Ink low". Scanning still works though (after taking the plug out and plugging it back in). It will be tedious to reboot every time I want to print (and not to mention if I knock the loose cable off).

Last edited by Draucia (2011-06-10 13:26:28)

Offline

#7 2011-06-10 18:01:28

mickael9
Member
Registered: 2008-10-11
Posts: 29

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

There is a PPD for your printer, it's /usr/share/ppd/HP/hp-officejet_j4500_series-hpijs.ppd.gz

See http://hplipopensource.com/hplip-web/mo … eries.html

What is strange is that HPLIP doesn't detect it, though it got the name right ("hp-setup[10148]: debug: Found section [officejet_j4500_series] in file /usr/share/hplip/data/models/models.dat")
Have you tried reinstalling the package ? (pacman -S hplip)
After that, run cups-genppdupdate as root and try hp-setup again.

If it doesn't work, decomment line #321 of /usr/share/hplip/prnt/cups.py and run hp-setup -gi again.

                    log.debug("%s: %s" % (path, desc))

Last edited by mickael9 (2011-06-10 18:28:19)

Offline

#8 2011-06-10 18:57:25

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]hplip - Hp officejet j4580 all-in-one

mickael9 wrote:

There is a PPD for your printer, it's /usr/share/ppd/HP/hp-officejet_j4500_series-hpijs.ppd.gz

See http://hplipopensource.com/hplip-web/mo … eries.html

What is strange is that HPLIP doesn't detect it, though it got the name right ("hp-setup[10148]: debug: Found section [officejet_j45c00_series] in file /usr/share/hplip/data/models/models.dat")
Have you tried reinstalling the package ? (pacman -S hplip)
After that, run cups-genppdupdate as root and try hp-setup again.

If it doesn't work, decomment line #321 of /usr/share/hplip/prnt/cups.py and run hp-setup -gi again.

                    log.debug("%s: %s" % (path, desc))

It did not detect it but it let me put the path of the ppd so I put officejet j4500. The only problem now is that the usb cable has to be plugged in before my computer starts to work properly. Otherwise it says "Ink low" when it isn't really low (prints fine in windows 7). If I unplug the cable and put it back in, I will have to restart. Scanning works even if I plug in the cable AFTER my computer starts. Is there a way to restart all daemons or something?

sudo rc.d restart cups

doesn't fix my problem.

Offline

Board footer

Powered by FluxBB