no printer communication (HP Laserjet 2300d) after upgrade to 11.4

Hi there,
after my update to 11.4, I am having trouble with my printer.

hplip is installed (3.11.5), but it does not start the printer queue. If I click to start the queue, it seems to start, but no printing jobs are sent to the printer.

opening the hplip gui spits out an error message: device communication error 5012

Any idea how to proceed? Many thanks for your input,
Knut

On 07/02/2011 12:06 PM, carverknut wrote:
>
> Hi there,
> after my update to 11.4, I am having trouble with my printer.
>
> hplip is installed (3.11.5), but it does not start the printer queue.
> If I click to start the queue, it seems to start, but no printing jobs
> are sent to the printer.
>
> opening the hplip gui spits out an error message: device communication
> error 5012
>
> Any idea how to proceed? Many thanks for your input,

How is that printer connected? My HP LaserJet 2200DN uses the JetDirect
interface and works fine with 11.4. I do not use the hplip library.

it’s connected through the parallel port

On 07/02/2011 01:36 PM, carverknut wrote:
>
> it’s connected through the parallel port

Is the driver loaded? What does ‘lsmod | grep parport’ show? If it returns
nothing, does ‘/sudo /sbin/modprobe -v parport’ make it work?

parport_pc 37259 0
parport 40234 2 ppdev,parport_pc

is what lsmod … returns

and sudo … does not change anything

The printer is receiving data (seen on the printer display), but does not print. Opening the hplip Status Service GUI fires up a box

/dev/parport0
device communication error 5012

On 07/03/2011 07:06 AM, carverknut wrote:
>
> The printer is receiving data (seen on the printer display), but does
> not print. Opening the hplip Status Service GUI fires up a box
>
> /dev/parport0
> device communication error 5012

Try changing the driver. For my LJ2200, I find that the PCL driver works better
than any of the PostScript versions.

Larry Finger wrote:

> On 07/03/2011 07:06 AM, carverknut wrote:
>>
>> The printer is receiving data (seen on the printer display), but does
>> not print. Opening the hplip Status Service GUI fires up a box
>>
>> /dev/parport0
>> device communication error 5012
>
> Try changing the driver. For my LJ2200, I find that the PCL driver works
> better than any of the PostScript versions.
In fact it will not even work with the hplip via parport at all
http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_2300_series.html
“Summary of Available Features” says
USB I/O Yes
Network I/O Yes
Parallel I/O No


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce 9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia ION | 3GB Ram

In fact it will not even work with the hplip via parport at all
http://hplipopensource.com/hplip-web...00_series.html
“Summary of Available Features” says
USB I/O Yes
Network I/O Yes
Parallel I/O No

I found a similar statement made here about parallel port connectivity (for HP 2100 model) , but it seems it wasn’t true, so I can’t see why the 2300d would not be supported either.

This HP site suggests that there is Linux support (via the hplip driver). IIRC, the hpijs component provides parallel port support).

HP LaserJet 2300 Printer series

@carverknut: Did you set this printer up with the ‘hp-setup’ utility, YaST, or via the CUPS web interface?

With your printer connected, does this utility (executed as root) reveal?

hp-check -t

deano ferrari wrote:
> I found a similar statement made ‘here’
> (https://answers.launchpad.net/hplip/+question/29237) about parallel
> port connectivity (for HP 2100 model) , but it seems it wasn’t true, so
> I can’t see why the 2300d would not be supported either.
>
> This ‘HP site’ (HP LaserJet 2300 Printer series) suggests that there is
> Linux support (via the hplip driver). IIRC, the hpijs component provides
> parallel port support).
>
> ‘HP LaserJet 2300 Printer series’ (HP LaserJet 2300 Printer series)
>
Funny that the official documentation seems to be unreliable about that.
Then maybe there is achance and it is just a problem with user rights.

caverknut, did you try to add the user to the group lp (I hope I am not
wrong with the group, it is a few years ago I had my last printer with
parallel port) and log out and log in again and see if it works?

And confirm to which group and user the device belongs with

ls -la /dev/parport0


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
ION | 3GB Ram

You’re correct Martin. The ‘lp’ group is relevant for printing. For reference, I get

ls -la /dev/parport0
crw-rw-r-- 1 root lp 99, 0 2011-07-04 18:55 /dev/parport0

(although I don’t actually have a parallel port present) :slight_smile:

Thanks for all the information:

here we go to answer your questions:

ls -la /dev/parport0 yields
crw-rw-r-- 1 root lp 99, 0 Jul 6 09:45 /dev/parport0

Then,
hp-check -t

HP Linux Imaging and Printing System (ver. 3.11.5)
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 linux-byho 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 x86_64 x86_64 x86_64 GNU/Linux

Distribution:
suse 11.4

Checking Python version…
OK, version 2.7.0 installed

Checking PyQt 4.x version…
OK, version 4.8.3 installed.

Checking for CUPS…
Status: scheduler is 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.2


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…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel cupsddk”

Checking for dependency: CUPS image - CUPS image development files…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel”

Checking for dependency: DBus - Message bus system…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2”

Checking for dependency: gcc - GNU Project C and C++ Compiler…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses gcc-c++”

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer…
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl”

Checking for dependency: libjpeg - JPEG library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel”

Checking for dependency: libnetsnmp-devel - SNMP networking library development files…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel”

Checking for dependency: libpthread - POSIX threads library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses glibc”

Checking for dependency: libtool - Library building support services…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel”

Checking for dependency: libusb - USB library…
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb-1_0-devel libusb-1_0-0”

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.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging”

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…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-devel python-xml”

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications…
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify”

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…
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses sane-backends-devel”

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

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/manufacturer-PPDs/hplip
ppdbase=/usr/share/cups/model/manufacturer-PPDs
doc=/usr/share/doc/packages/hplip
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/lib/cups/driver

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=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.11.5
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
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

No devices found.


INSTALLED CUPS PRINTER QUEUES

hp_LaserJet_2300

Type: Printer
Device URI: hp:/par/hp_LaserJet_2300_series?device=/dev/parport0
PPD: /etc/cups/ppd/hp_LaserJet_2300.ppd
PPD Description: HP LaserJet 2300 Postscript (recommended)
Printer /usr/lib/cups/backend/hp failed0 disabled since Sun 03 Jul 2011 13:09:57 CEST -
Communication status: Good


SANE CONFIGURATION

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

Checking output of ‘scanimage -L’…
device `genesys:libusb:001:003’ is a Canon LiDE 60 flatbed scanner


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

root


SUMMARY

error: 15 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel cupsddk”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses cups-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses dbus-1-devel python-gobject2”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses gcc-c++”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses openssl”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libjpeg-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses net-snmp-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses glibc”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libtool libgphoto2-devel”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses libusb-1_0-devel libusb-1_0-0”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-imaging”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-devel python-xml”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify”
su -c “zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses sane-backends-devel”

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

It seems as if there were some missing things - could you please advise which ones to install?
thanks,
Knut

The ‘hp-check’ command made ‘compile-time’ and ‘run-time’ checks. We’re really only interested in the latter for the moment.

It looks like this is your main issue

hp_LaserJet_2300
----------------
Type: Printer
Device URI: hp:/par/hp_LaserJet_2300_series?device=/dev/parport0
PPD: /etc/cups/ppd/hp_LaserJet_2300.ppd
PPD Description: HP LaserJet 2300 Postscript (recommended)
Printer /usr/lib/cups/backend/hp failed0 disabled since Sun 03 Jul 2011 13:09:57 CEST -
Communication status: Good

Check your CUPS printer status like this. With your browser, point it at the CUPS interface

http://localhost:631/printers

Select the printer concerned >> Maintenance >> Resume Printer

This may (or may not) be relevant to your situation too

Solved problems for Ubuntu and Windows: provisional solution for /usr/lib/cups/backend/hp failed

Report back with your update :slight_smile:

Hi there,
I entered CUPS and set the printer status back to “resume printer” - it yields a short message that printing has resumed and then puts the printer immediately back to "Paused - “/usr/lib/cups/backend/hp failed”

I did not try the on and off procedure which was described in the link you provided - thanks anyway.
Best,
Knut

Hi there,
I entered CUPS and set the printer status back to “resume printer” - it yields a short message that printing has resumed and then puts the printer immediately back to "Paused - “/usr/lib/cups/backend/hp failed”

You may have stumbled across a bug here. You could try installing the latest version of HPLIP and/or submitting a bug report:

HP Linux Imaging and Printing

I installed the latest version again - now it works, but it takes about 3 minutes until the printer starts to spit out paper (for a 10 page document). Obviously, communication to the printer is VERY slow.

Thanks for your help until now.
Knut

On 07/08/2011 01:06 PM, carverknut wrote:
>
> I installed the latest version again - now it works, but it takes about
> 3 minutes until the printer starts to spit out paper (for a 10 page
> document). Obviously, communication to the printer is VERY slow.

With a Postscript driver, the printer gets the entire document into memory
before starting to render it, and the rendering is pretty slow with the CPUs in
these printers.

Forget hplip, install the printer directly with YaST and select a PCL driver as
I recommended earlier. I have used my 2200 this way and see no major difference
between the parallel port and an LPD transfer to the JetDirect card through the
network.

With a Postscript driver, the printer gets the entire document into memory
before starting to render it, and the rendering is pretty slow with the CPUs in
these printers.

I endorse what Larry has said here. I’ve connected to office laser printers using postscript drivers in a previous place of employment, and experienced the same slow printing (for the reasons outlined). Try his advice if this bothers you.