USB Printer: some times the jobs are printed and some times not

Bug #1046335 reported by André Desgualdo Pereira
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This is a Samsung ML-1860 laser monochromatic printer, attached at usb.

The problem is: only some pages are printed. Example: I send 6 copies of some page to print but only 4 are actually printed. Or some times none of them. Rarely all of them are printed. If I disconnect from usb, then send the job and reconnect, the chance of get the print done is increased.

More technical information:

~$ lsmod | grep usb
usblp 18307 0

~$ tail -f /var/log/syslog
Sep 5 10:42:54 desguai3 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
Sep 5 10:42:54 desguai3 udev-configure-printer: Device already handled
Sep 5 10:45:12 desguai3 wpa_supplicant[1135]: WPA: Group rekeying completed with 1c:7e:e5:46:5b:9d [GTK=TKIP]
Sep 5 10:46:43 desguai3 kernel: [ 6539.488475] usb 2-1.1: USB disconnect, device number 9
Sep 5 10:46:43 desguai3 kernel: [ 6539.488755] usblp0: removed
Sep 5 10:46:43 desguai3 udev-configure-printer: remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
Sep 5 10:46:43 desguai3 udev-configure-printer: URI of print queue: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X., normalized: samsung ml 1860 series serial z5m7bdab501185x
Sep 5 10:46:43 desguai3 udev-configure-printer: URI of detected printer: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X., normalized: samsung ml 1860 series serial z5m7bdab501185x
Sep 5 10:46:43 desguai3 udev-configure-printer: Queue ipp://localhost:631/printers/ML-1860-Series has matching device URI
Sep 5 10:46:43 desguai3 udev-configure-printer: Disabled printer ipp://localhost:631/printers/ML-1860-Series as the corresponding device was unplugged or turned off
Sep 5 10:47:05 desguai3 kernel: [ 6560.789503] usb 2-1.1: new high-speed USB device number 10 using ehci_hcd
Sep 5 10:47:05 desguai3 kernel: [ 6560.885528] usblp0: USB Bidirectional printer dev 10 if 0 alt 0 proto 2 vid 0x04E8 pid 0x330C
Sep 5 10:47:05 desguai3 mtp-probe: checking bus 2, device 10: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Sep 5 10:47:05 desguai3 mtp-probe: bus: 2, device: 10 was not an MTP device
Sep 5 10:47:05 desguai3 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0
Sep 5 10:47:05 desguai3 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
Sep 5 10:47:05 desguai3 udev-configure-printer: Device vendor/product is 04E8:330C
Sep 5 10:47:05 desguai3 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/usb/lp0
Sep 5 10:47:05 desguai3 udev-configure-printer: failed to claim interface
Sep 5 10:47:05 desguai3 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
Sep 5 10:47:05 desguai3 udev-configure-printer: MFG:Samsung MDL:ML-1860 Series SERN:- serial:Z5M7BDAB501185X.
Sep 5 10:47:06 desguai3 kernel: [ 6562.056195] usblp0: removed
Sep 5 10:47:06 desguai3 udev-configure-printer: URI contains USB serial number
Sep 5 10:47:06 desguai3 udev-configure-printer: URI match: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X.
Sep 5 10:47:06 desguai3 kernel: [ 6562.061236] usblp0: USB Bidirectional printer dev 10 if 0 alt 0 proto 2 vid 0x04E8 pid 0x330C
Sep 5 10:47:06 desguai3 udev-configure-printer: Consider also queues with "/usb/lp0" or "/usblp0" in their URIs as matching
Sep 5 10:47:06 desguai3 udev-configure-printer: URI of print queue: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X., normalized: samsung ml 1860 series serial z5m7bdab501185x
Sep 5 10:47:06 desguai3 udev-configure-printer: URI of detected printer: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X., normalized: samsung ml 1860 series serial z5m7bdab501185x
Sep 5 10:47:06 desguai3 udev-configure-printer: Queue ipp://localhost:631/printers/ML-1860-Series has matching device URI
Sep 5 10:47:06 desguai3 udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/ML-1860-Series
Sep 5 10:47:06 desguai3 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/usb/lp0
Sep 5 10:47:06 desguai3 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
Sep 5 10:47:06 desguai3 udev-configure-printer: Device already handled

~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 064e:a127 Suyin Corp.
Bus 002 Device 010: ID 04e8:330c Samsung Electronics Co., Ltd

~$ ls -l /dev/usb/lp* /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 Sep 5 08:57 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 1 Sep 5 08:57 /dev/bus/usb/001/002
crw-rw-r-- 1 root root 189, 128 Sep 5 08:57 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 129 Sep 5 08:57 /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189, 130 Sep 5 08:57 /dev/bus/usb/002/003
crw-rw-rw- 1 root lp 189, 137 Sep 5 10:47 /dev/bus/usb/002/010
crw-rw-rw- 1 root lp 180, 0 Sep 5 10:47 /dev/usb/lp0

~$ sudo usb_printerid /dev/usb/lp0
[sudo] password for desgua:
GET_DEVICE_ID string:
MFG:Samsung;CMD:GDI,FWV,EXT;MDL:ML-1860 Series;CLS:PRINTER;STATUS:BUSY;
desgua@desguai3:~$ lpinfo -v
network ipps
network ipp14
network lpd
network https
network socket
network ipp
network http
network beh
network smb
direct parallel:/dev/lp0
direct usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X.

I have attached the output of "cat /var/log/syslog"
---
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
DistroRelease: Ubuntu 12.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
Lpstat: device for ML-1860-Series: usb://Samsung/ML-1860%20Series?serial=Z5M7BDAB501185X.
MachineType: Hewlett-Packard HP Pavilion dv6 Notebook PC
NonfreeKernelModules: nvidia
Package: cups 1.5.3-0ubuntu3
PackageArchitecture: amd64
Papersize: letter
PpdFiles: ML-1860-Series: Samsung ML-1860 Series
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-29-generic root=UUID=8729fead-c05d-477e-a00a-b53293a32e74 ro
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Tags: precise running-unity third-party-packages
Uname: Linux 3.2.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip fuse lp lpadmin plugdev sambashare sudo
dmi.bios.date: 12/03/2009
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.13
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 3659
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 32.23
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.13:bd12/03/2009:svnHewlett-Packard:pnHPPaviliondv6NotebookPC:pvr049D210000241210000020000:rvnHewlett-Packard:rn3659:rvr32.23:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: HP Pavilion dv6 Notebook PC
dmi.product.version: 049D210000241210000020000
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
André Desgualdo Pereira (desgua) wrote :
description: updated
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Can you please provide the version information of the package you have installed and whether they are up to date?

You can do this by running: $ apport-collect 1046335

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Andre, can you also follow the instructions of the sections "CUPS error_log" and "Capturing print job data" on
https://wiki.ubuntu.com/DebuggingPrintingProblems. Thanks.

Revision history for this message
André Desgualdo Pereira (desgua) wrote : BootDmesg.txt

apport information

tags: added: apport-collected precise running-unity third-party-packages
description: updated
Revision history for this message
André Desgualdo Pereira (desgua) wrote : CupsErrorLog.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : CurrentDmesg.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : Dependencies.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : Locale.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : Lspci.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : Lsusb.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : PrintingPackages.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : ProcInterrupts.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : ProcModules.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : UdevDb.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote : UdevLog.txt

apport information

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

This is the cups error log. The bug happened again at 05/Sep/2012:13:14 .

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

Followin "Capturing_print_job_data" at https://wiki.ubuntu.com/DebuggingPrintingProblems I get this file.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

The above file I got when trying to print this file.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

Please delete the files of comments #18 and #19 if they are irrelevant to help fix the bug. Thank you very much.

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

According to your error_log, all jobs seem to have completed successfully, no errors, all filters closed without showning any issues. Especially also the USB communication seems to work correctly. I assume that the problem happened with your last job, job #933, as this was at 13:14 and it is the last job before you have posted your error_log. Did all the other jobs in this error_log come out correctly?

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

The print data from LibreOffice has come in PostScript format. Did you select this format in the printing dialog of LibreOffice? Can you also try PDF, to see wgether this works better?

Revision history for this message
André Desgualdo Pereira (desgua) wrote : Re: [Bug 1046335] Re: USB Printer: some times the jobs are printed and some times not

Till,
Yes, all other jobs come out correctly. The problem increases with use (i.
e. the longer I use, most frequently I get the error).
The print data is a weird observation because when I try to select the
"Printer Language type" it is already selected PDF (not PostScript).

Best regards.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

I think I didn't express myself clearly at the post above. All previous
jobs printed correctly except for the last.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

More information: I think this bug is a regression because before 12.04 the
printer worked fine, and version 1.5.3-0ubuntu2 had fixed this, but cups
1.5.3-0ubuntu3 introduced the bug again.

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

Can you please update your system completely, so that you get CUPS 1.5.3-0ubuntu4? Please tell here whether this solves your problem.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

Yes I will do that and tell if this solves. Thank you very much.

Revision history for this message
André Desgualdo Pereira (desgua) wrote :

Till Kamppeter,
I've been using the printer all this morning and looks like it is working fine now.
Thank you very much.
Best regards.

Changed in cups (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Miguel Gastelum (miguelgastelum) wrote :

I have three thermal receipt printers connected to Xubuntu 14.04 with Model Generic / Text only driver when print command three jobs, one for each printer, sometimes one or two printers stops are left with the job without printing, and the queue print says that the printer is turned off or disconnected.

If I send a new print job to the printer that has been standing prints the job that had been printed and the new, but the new print was incomplete.

CUPS Version: cups 1.7.2-0ubuntu1 amd64

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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