You are not logged in.

#1 2012-06-14 15:36:23

annubis
Member
From: /var/tmp/portage
Registered: 2010-05-15
Posts: 5

Trouble setting up HP printer

Hello folks.I have a hard time trying to install an HP Deskjet 640c printer on Arch.

The printer  is connected to the pc via the parallel port. I have installed all the drivers mentioned in the wiki ,i ve added myself to the lp group.
I 've setup the printer using the hp-setup utility. The connection URL is hp:/par/DESKJET_640C?device=/dev/parport0 and the driver in use is hpijs

I keep getting the following error

"/usr/lib/cups/backend/hp failed"


However if i type in the console echo "test" > /dev/lp0 the printer actually works!

What is going wrong ?

This is the cups.conf file http://pastebin.com/65yVTc4J

and the error log http://pastebin.com/7Lz31tnP

Thanks in advance!

Last edited by annubis (2012-06-17 15:55:38)

Offline

#2 2012-06-14 16:46:03

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Re: Trouble setting up HP printer

Have you tried cups web interface? Have you been in sys group?

Offline

#3 2012-06-14 16:59:40

annubis
Member
From: /var/tmp/portage
Registered: 2010-05-15
Posts: 5

Re: Trouble setting up HP printer

Adding myself to sys group did n't solved the problem.

As for the cups web interface cups is unable to find the printer  when i click Administration ,Find New Printers and i do not know how to manually install the printer because i have no idea what  the printer's connection URI is.

Last edited by annubis (2012-06-14 17:00:24)

Offline

#4 2012-06-15 04:27:56

fantab
Member
From: 3rd Rock from the Sun
Registered: 2011-06-07
Posts: 152

Re: Trouble setting up HP printer

Is cupsd in Daemons array?


"Evolution is the nature's way of issuing upgrades".
__________________________________________________________
Arch_x64-Gnome-Shell ~ Arch-lts_x64-Xfce ~ LMDE_x64-Cinnamon

Offline

#5 2012-06-15 05:33:23

annubis
Member
From: /var/tmp/portage
Registered: 2010-05-15
Posts: 5

Re: Trouble setting up HP printer

Yes here's my daemons list

DAEMONS=(@syslog-ng  dbus @network @crond  @fuse @alsa avahi-daemon @cupsd kdm)

Offline

#6 2012-06-17 09:44:03

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Trouble setting up HP printer

Install hplip and run hp-check to see what's up.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2012-06-17 15:55:21

annubis
Member
From: /var/tmp/portage
Registered: 2010-05-15
Posts: 5

Re: Trouble setting up HP printer

Here's the output of hp-check

hp-check[1711]: info: :
Initializing. Please wait...
scheduler is running

1.5.3

Linux phoenixhost 3.4.2-2-ARCH #1 SMP PREEMPT Mon Jun 11 22:27:17 CEST 2012 x86_64 GNU/Linux

hp-check[1711]: info: :
hp-check[1711]: info: :---------------
hp-check[1711]: info: :| SYSTEM INFO |
hp-check[1711]: info: :---------------
hp-check[1711]: info: :
hp-check[1711]: info: :[01mBasic system information:[0m
hp-check[1711]: info: :Linux phoenixhost 3.4.2-2-ARCH #1 SMP PREEMPT Mon Jun 11 22:27:17 CEST 2012 x86_64 GNU/Linux
hp-check[1711]: info: :
hp-check[1711]: info: :[01mDistribution:[0m
hp-check[1711]: info: :unknown 0.0
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking Python version...[0m
hp-check[1711]: info: :OK, version 2.7.3 installed
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking PyQt 4.x version...[0m
hp-check[1711]: info: :OK, version 4.9.1 installed.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for CUPS...[0m
hp-check[1711]: info: :Status: scheduler is running
hp-check[1711]: info: :Version: 1.5.3
warning: /etc/cups/cupsd.conf file not found or not accessible.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dbus/python-dbus...[0m
hp-check[1711]: info: :dbus daemon is running.
hp-check[1711]: info: :python-dbus version: 1.1.0
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :------------------------------------
hp-check[1711]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[1711]: info: :------------------------------------
hp-check[1711]: info: :
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).
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: CUPS - Common Unix Printing System...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: CUPS devel- Common Unix Printing System development files...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: CUPS image - CUPS image development files...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: DBus - Message bus system...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: PolicyKit - Administrative policy framework...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: PyQt 4 DBus - DBus Support for PyQt4...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python DBus - Python bindings for DBus...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python devel - Python development files...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python XML libraries...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :----------------------
hp-check[1711]: info: :| HPLIP INSTALLATION |
hp-check[1711]: info: :----------------------
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[1711]: info: :HPLIP 3.12.4 currently installed in '/usr/share/hplip'.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[1711]: info: :# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.12.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.4
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=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.12.4
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

hp-check[1711]: info: :
hp-check[1711]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[1711]: info: :Plugins are not installed. Could not access file: No such file or directory
hp-check[1711]: info: :
hp-check[1711]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[1711]: info: :[upgrade]
latest_available_version = 3.12.4
notify_upgrade = false
last_upgraded_time = 1339769579.2964
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/par/DESKJET_640C?device=/dev/parport0"
printer_name = DESKJET_640C
working_dir = .

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

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list = 

[fax]
voice_phone = 
email_address = 

[installation]
date_time = 06/17/2012 18:51:46
version = 3.12.4


hp-check[1711]: info: :
hp-check[1711]: info: :--------------------------
hp-check[1711]: info: :| DISCOVERED USB DEVICES |
hp-check[1711]: info: :--------------------------
hp-check[1711]: info: :
hp-check[1711]: info: :No devices found.
hp-check[1711]: info: :
hp-check[1711]: info: :---------------------------------
hp-check[1711]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[1711]: info: :---------------------------------
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :[01mlpstat[0m
hp-check[1711]: info: :[01m------[0m
hp-check[1711]: info: :Type: Unknown
hp-check[1711]: info: :Device URI: No destinations added.
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :----------------------
hp-check[1711]: info: :| SANE CONFIGURATION |
hp-check[1711]: info: :----------------------
hp-check[1711]: info: :
hp-check[1711]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[1711]: info: :
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-check[1711]: info: :
hp-check[1711]: info: :---------------------
hp-check[1711]: info: :| PYTHON EXTENSIONS |
hp-check[1711]: info: :---------------------
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[1711]: info: :OK, found.
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :
hp-check[1711]: info: :---------------
hp-check[1711]: info: :| USER GROUPS |
hp-check[1711]: info: :---------------
hp-check[1711]: info: :
hp-check[1711]: info: :sys lp video audio optical floppy storage scanner users vboxsf lpadmin

hp-check[1711]: info: :
hp-check[1711]: info: :-----------
hp-check[1711]: info: :| SUMMARY |
hp-check[1711]: info: :-----------
hp-check[1711]: info: :
error: 2 errors and/or warnings.
hp-check[1711]: info: :
hp-check[1711]: info: :Please refer to the installation instructions at:
hp-check[1711]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[1711]: info: :
hp-check[1711]: info: :Done.

Both gcc and  cupsd.conf  do exist in the filesystem!I don't know hp-check fails to find  them!

Last edited by annubis (2012-06-17 20:36:52)

Offline

#8 2012-06-17 16:28:33

fantab
Member
From: 3rd Rock from the Sun
Registered: 2011-06-07
Posts: 152

Re: Trouble setting up HP printer

EDIT: Did not intend to post here.

Last edited by fantab (2012-06-17 16:32:15)


"Evolution is the nature's way of issuing upgrades".
__________________________________________________________
Arch_x64-Gnome-Shell ~ Arch-lts_x64-Xfce ~ LMDE_x64-Cinnamon

Offline

Board footer

Powered by FluxBB