HP2540 Printer installs Ok but does not print

Bug #1723593 reported by John Rose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

HP2540 All In One printer printed under Ubuntu 14.04. But does not print under Ubuntu 16.04. Have tried removing and installing printer without success. Tried installing hplip 3.16.3 package. Printer found Ok but did nothing when I tried to print test page. Printer Properties says that Printer State is "Processing - Processing page 1" but Document Print Status is "Processing - Not connected?". After a time, a window pops up from hplip saying that device is busy. lsusb shows "Bus 002 Device 010: ID 03f0:c211 Hewlett-Packard". Same problem with installing hplip 3.13.4 (and 3.17.9 from HP's web site) using instructions at: https://sourceforge.net/projects/hplip/files/hplip/3.17.4/hplip-3.17.4.run/download?use_mirror=ufpr

I've run "sudo hp-check": it gave error & warning about missing python3-dev & python3-notify2. So I installed them using Synaptic (it also brought in some other dependent packages). However, it gave "warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices".

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: hplip 3.16.3+repack0-1
ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Oct 14 11:08:42 2017
InstallationDate: Installed on 2016-12-08 (309 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Lpstat:
 device for HP-Deskjet-2540-series: ipps://Desktop.local:631/printers/HP-Deskjet-2540-series
 device for Samsung-SCX-472x-Series: dnssd://Samsung%20SCX-472x%20Series%20(SEC001599D2245B)._printer._tcp.local/
Papersize: a4
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/Samsung-SCX-472x-Series.ppd'] failed with exit code 2: grep: /etc/cups/ppd/Samsung-SCX-472x-Series.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-97-generic.efi.signed root=UUID=6de99e91-062b-4308-ae7d-79a3adc92f88 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/04/2015
dmi.bios.vendor: Intel Corp.
dmi.bios.version: PYBSWCEL.86A.0043.2015.0904.1904
dmi.board.name: NUC5CPYB
dmi.board.vendor: Intel Corporation
dmi.board.version: H61145-404
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrPYBSWCEL.86A.0043.2015.0904.1904:bd09/04/2015:svn:pn:pvr:rvnIntelCorporation:rnNUC5CPYB:rvrH61145-404:cvn:ct3:cvr:

Revision history for this message
John Rose (johnaaronrose) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please follow the instructions on https://wiki.ubuntu.com/DebuggingPrintingProblems, especially for the section "USB Printer" and also "CUPS error_log".

Changed in hplip (Ubuntu):
status: New → Incomplete
Revision history for this message
John Rose (johnaaronrose) wrote :

USB Printer instructions output contained in USB.tar.gz attached:
2. lsmod.txt
3. tail.txt
6. lsusb.txt
7. ls.txt
8. sudo.txt & hp-info.txt
9. hp-makeuri.txt
10. lpinfo.txt

Revision history for this message
John Rose (johnaaronrose) wrote :

CUPS Error Log attached.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please post the PPD file of the print queue for your DeskJet (it is in /etc/cups/ppd/) and also please clear all previous errors by running

cancel -a

and then print another job. Observe the output of

lpstat -o

and

lpstat -p

If the job entry in the output of "lpstat -o" does not go away after a few seconds you have most probably some error, "lpstat -p" will show you the error.

At this point take your error_log and attach it to this bug.

Revision history for this message
John Rose (johnaaronrose) wrote :

Output of lpstat commands:
john@Desktop:~$ lpstat -o
HP-Deskjet-2540-series-1691 john 48128 Tue 17 Oct 2017 06:42:47 BST
john@Desktop:~$ lpstat -p
printer HP-Deskjet-2540-series now printing HP-Deskjet-2540-series-1691. enabled since Tue 17 Oct 2017 06:42:47 BST
 Processing page 1...
printer Samsung-SCX-472x is idle. enabled since Mon 16 Oct 2017 19:35:36 BST

Please note that lpstat commands did not change after a minute.
Attached file contains HP 2540 ppd and CUPS Error Log.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The problem is the following: HPLIP's "hp" CUPS backend reports:

D [17/Oct/2017:06:44:33 +0100] [Job 1691] prnt/backend/hp.c 616: ERROR: 1009 media-empty-error; will retry in 30 seconds...

This means one of the following:

- Your printer is out of paper
- Your printer has a hardware problem
- The "hp" CUPS backend has a bug

I have the same printer and it works for me with HPLIP, and assuming you are not reporting a bug with your printer being out of paper it is most probably some hardware problem.

I will move the bug to HPLIP as it is definitely not a problem of CUPS, cups-filters, or Ghostscript.

You can do another test to get at least the printing part of your printer to work. Follow the instructions for setting up driverless printing with your printer on

https://wiki.ubuntu.com/ZestyZapus/ReleaseNotes#Driverless_Printing

Does this work for you?

Revision history for this message
John Rose (johnaaronrose) wrote :

I have looked at https://wiki.ubuntu.com/ZestyZapus/ReleaseNotes#Driverless_Printing
For http://localhost:60000/ and http://localhost:60001/, I get "Site can't be reached. So I tried http://localhost:631/ which allowed me to get into the Printer Modify for the HP 2540 printer. However,there is nothing for a Driverless option. I've tried adding the HP2540 printer using the standard add printer functionality but I don't see any Driverless option for that. What should I do?

Revision history for this message
John Rose (johnaaronrose) wrote :

I forgot to mention that I tried to use the driverless ppd generator utility program (as detailed in http://manpages.ubuntu.com/manpages/zesty/man1/driverless.1.html) in order to generate an appropriate ppd file. However, the program is not available in Ubuntu 16.04 as it's part of the cups-filters-core-drivers version 1.13.0-2 package. The version in Ubuntu 16.04 is version 1.8.3-2 which does not contain the driverless program.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Sorry, I did not see that you are on 16.04. Driverless printing was introduced in 17.04. The first LTS with driverless printing will be 18.04.

Revision history for this message
John Rose (johnaaronrose) wrote :

Can you make a cups-filters-core-drivers version 1.13.0-2 package for 16.04?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for hplip (Ubuntu) because there has been no activity for 60 days.]

Changed in hplip (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.