Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is my first post, so please let me know if i have inadvertanly broken any rules.

Problem

There seems to be a problem with HPLIP and USB connections in ubuntu 14.04LTS. After upgrading i managed to get the printing to work but today it has broken.

Initial Issue (Solved)

After upgrading to unbutntu 14.04 LTS my printer lHP LaserJet 1018 stopped printing (code=12)

Looking through the Forumsthere are several issues with printitng and HPLIP so I was able to troubleshoot this. The steps I took were :

  1. Reran HPdoctor
  2. Ran hp-check
  3. Un-installed and installed the latest version of HPLIP (3.14.4)
  4. Checked the USB connections lsusb and lsusb-v
  5. Re-ran hpcheck
  6. Removed the printer from HPLIP
  7. Re-ran hpcheck
  8. Manually configued HPLIP to the printer hp-setup-g <xxx:yyy>

And this worked HPLIP was able to see the printer in the USB , test page printed and was happily working for a few weeks.

Current Issue Printer Not working

However today my wife complains the printer is not working and checking see that although HPLIP has the same error code and did not seem to be able to see the printer although running lsusb could see the printer. Initially thought this may be due to usb given a new bus/device after being turned on and off and went to repeat the steps above at the moment still seeing an error in that the HPLIP is complaining that it cannot see the device

**error: Device not found. Please make sure your printer is properly connected and powered-on.**

current Observations

lsusb output ##

Bus 002 Device 007: ID 03f0:4117 Hewlett-Packard LaserJet 1018

sudo hp-check output

*> "duan@duan-Lenovo-B550:~$ sudo hp-check [sudo] password for duan:

Saving output in log file: /home/duan/hp-check.log

HP Linux Imaging and Printing System (ver. 3.14.4) Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-13 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.

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

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

Full Output

output of hp-setup -g 002:007

window box "device not found  please make sure your printer is properly connected     and powered on"

duan@duan-Lenovo-B550:~$ sudo hp-setup -g 002:007 [sudo] password for duan:

> HP Linux Imaging and Printing System (ver. 3.14.4) Printer/Fax Setup
> Utility ver. 9.0
> 
> Copyright (c) 2001-13 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[18461]: debug: param=002:007 hp-setup[18461]: debug:
> selected_device_name=None Fontconfig error:
> "/etc/fonts/conf.d/65-khmer.conf", line 14: out of memory Fontconfig
> error: "/etc/fonts/conf.d/65-khmer.conf", line 23: out of memory
> Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line 32: out of
> memory hp-setup[18461]: debug: Sys.argv=['/usr/bin/hp-setup', '-g',
> '002:007'] printer_name=None param=002:007 jd_port=1 device_uri=None
> remove=False Searching for device... hp-setup[18461]: debug: Trying
> USB with bus=002 dev=007... hp-setup[18461]: debug: Not found.
> hp-setup[18461]: debug: Trying serial number 002:007 hp-setup[18461]:
> debug: Probing bus: usb hp-setup[18461]: debug: Probing bus: par
> error:  Device not found.   Please make sure your printer is properly
> connected and powered-on. hp-setup[18461]: debug: Starting GUI loop.

..

USB lead

Works with the Windows 7 laptop

Printer

Works with windows 7 laptop

Questions

  • Is this a Bug with HPLIP or an issue with laptop/printer?

  • Supplementary question if it is a bug what information is needed and where should it be sent ?

    • Any suggestions on how to get the printer to work correctly with Ubuntu 14.04LTS/HPLIP 13.4.3 so that it stays working ?
share|improve this question
    
It is bug in ubuntu 14.04: bugs.launchpad.net/hplip/+bug/1315408 Consider to vote and contribute. –  Arie Skliarouk Jun 26 '14 at 15:08
    
These problems are perfectly understandable, considering printing technology have only been around for a couple of years. –  opyate Mar 2 at 9:41

1 Answer 1

I experienced similar problems, as cited in this forum, trying to configure the HP Laserjet 1018 printer with ubuntu desktop 14.04 and 14.10. At the begining I used HPLIP installed manually, and the printer worked fine for a while, I was able to print 3 or 4 documents, but then the printer started to fail with "communication error". After some combinations of unplug and re-plug, turn off on or reboot the printer works again, but this is an annoying situation, specially because I wanted to make the printer works for common users without any knowledge.

So I decided to try the solution installing the foo2zjs driver, these are the steps I followed, after reading many forums and potential solutions:

1) Uninstall HPLIP completely

1.1) Uninstall HPLIP if it was installed by default in ubuntu

$sudo apt-get remove hplip

1.2) In my case, I had installed HPLIP manually, after downloading the tarball distribution from

http://hplipopensource.com/hplip-web/index.html

So I followed the instructions cited here

_http://hplipopensource.com/node/188

to completely unistall it.

2) Install the "foo2zjs" driver, to do this I used the instructions cited here

_http://foo2zjs.rkkda.com/INSTALL

I transcribe them here:

2.1) Install build-essential, tix, foomatic-filters, groff, dc FIRST:

$ sudo apt-get install build-essential tix foomatic-filters groff dc

2.2) Unpack:

$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz $ tar zxf foo2zjs.tar.gz $ cd foo2zjs

2.3) Compile:

  $ make

2.4) Get extra files from the web, such as .ICM profiles (for color correction) and firmware. Select the model number for your printer, In this case:

   $ ./getweb 1018      # Get HP LaserJet 1018 firmware file

2.5) Install driver, foomatic XML files, PPD files, and extra files:

   $ sudo make install

2.6) Install hotplug (for HP LJ 1000/1005/1018/1020/P100[5678]/P1505):

   $ sudo make install-hotplug

Unplug and re-plug the USB printer

2.7) If you use CUPS to manage your printers, you must restart cupsd:

$ sudo make cups

3) Add a new printer

I use the WEB APP to do this

_http://localhost:631

Once created it, I printed a test page to test that the printer is working correctly

In my case I experienced problems using cups, so I reinstalled it with

  $sudo apt-get -y install cups

NOTE: I suggest to watch the log /var/log/syslog to detect any possible error. For example, after installing foo2zjs, I detect the following error in syslog

"foo2zjs: Missing HP LaserJet 1018 firmware file /lib/firmware/hp/sihp1018.dl".

So, I fixed it by getting the firmware throught

$getweb 1018

Then I copied the file "sihp1018.dl" to the directory specified in the syslog error.

You may need to reboot both the computer and the printer.

After these steps I was able to print using the HP LaserJet 1018 printer without problems, I did differents test like print a test page, print a LibreOffice doc, print a pdf doc. I reboot the machine and printed again and the printer worked perfectly. I tested using both Ubuntu 14.04 and 14.10.

Hope this can help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.