Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292543 - Cups 1.4.1 hangs on USB printers - please provide debian 1.4.1-4 patchset to fix!
Summary: Cups 1.4.1 hangs on USB printers - please provide debian 1.4.1-4 patchset to ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High major
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cups-1.4-usb
  Show dependency tree
 
Reported: 2009-11-09 16:17 UTC by Klaus Kusche
Modified: 2012-01-27 20:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kusche 2009-11-09 16:17:00 UTC
Even with the latest cups 1.4.1, my printer (Lexmark Optra M412 connected via USB) regularly hangs while or after prining the first job. At best, power cycling (or disconnecting and reconnecting) the printer and restarting cupsd helps (however, the hanging job is lost), at worst, a reboot is needed.

Although the cups 1.4.1 release notes say that this problem is fixed, it is not.
The problem also occurs in other distributions (see e.g. archlinux 15998).
Debian has developed a patch for it in its cups 1.4.1-4 package
(see their bugs 546558, 545288, 545453):

 cups  (1.4.1-4) unstable; urgency=low

   [ Till Kamppeter ]
   * debian/patches/usb-backend-both-usblp-and-libusb.dpatch: Make the USB
     backend supporting both printer access via libusb and via the usblp kernel
     module. Make it also printing via libusb if the URI for the queue was
     generated via usblp and vice versa. This should solve most USB printing
     problems which occured on the transition to CUPS 1.4.x (LP: #420015,
     LP: #436495; Closes: #546558, #545288, #545453).
 
   [ Martin Pitt ]
   * debian/rules: Make the USB backend run as root again, udev rules do not
     cover all printers. (LP: #420015)
   * Drop debian/blacklist-cups.conf, and remove it on upgrade. With Till's fix
     from above this is not necessary any more.

 -- Martin Pitt <mpitt@debian.org>  Wed, 30 Sep 2009 15:17:53 +0200


Could we *please* have an ebuild including these patches?
Being able to use the old and proven usblp would really help a lot!
Comment 1 Klaus Kusche 2009-11-11 11:15:16 UTC
Actually, the solution is much simpler:
I don't need both backends (usblp and libusb).
The old usblp backend (which is still automatically built and used if cups is configured with "--disable-libusb") is all I need, it works perfectly fine for me.

Hence, just a small modification to the ebuild is necessary to fix all my problems:
Introduce an USE flag "usblp" (or "oldusb") (or "libusb" or "newusb" if you want to have it the other way round) which switches between the configure options "--enable-libusb" and "--disable-libusb".
Comment 2 Markus Wernig 2009-11-28 10:13:33 UTC
I seem to be running into similar problems here with my Canon Pixma MP150 and HP DJ6122 - both usb connected.

The printers were configured some time ago, when there was still cups-1.3.x and usblp. After the cups upgrade to 1.4.1 and after removing the usblp kernel module they just stopped working, no error ever appeared in any log file. But neiter rebooting nor restarting the printer solved the problem. So I downgraded to 1.3.

Some time and some world emerges later I tried 1.4.1 again (assuming that the problem was rather in some other part of the printing chain), and it magically worked again ... until the upgrade to 1.4.2. Which left me with downgrading to 1.3 again.

I am very much under the impression that the raw usb device access method of cups is far from stable at the moment.
Comment 3 michel 2010-05-01 05:20:12 UTC
Recompiling cups with "--disable-libusb" then modprobe usblp was the solution for me
Comment 4 Klaus Kusche 2010-05-01 08:22:06 UTC
--disable-libusb is the solution. But I don't want to hack the ebuild every time.
As noted earlier, could we *please* have an USE flag for --disable-libusb?!
Comment 5 Klaus Kusche 2010-05-01 08:27:40 UTC
Ups, just noticed that the USE flag already is in cups-1.4.3.ebuild,
and it is called "usb".
So emerging cups with USE="-usb" gives 1.3.x USB behaviour (works for me...).
Comment 6 INODE64 Sistemas 2010-09-04 03:54:22 UTC
same problem

http://bugs.gentoo.org/show_bug.cgi?id=323931
Comment 7 Maciej Mrozowski gentoo-dev 2010-09-09 22:52:51 UTC
Nope(In reply to comment #6)
> same problem
> 
> http://bugs.gentoo.org/show_bug.cgi?id=323931
> 

@Francisco Javier
That is different bug. This one is about properly detected and configured printer, but cups hanging after first print job.

Also this problem exists when using net-print/splix (Open drivers for Samsung SPL printers) on Samsung ML-1510, with cups utilizing libusb.
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2010-09-14 08:19:02 UTC
(In reply to comment #7)
> Also this problem exists when using net-print/splix (Open drivers for Samsung
> SPL printers) on Samsung ML-1510, with cups utilizing libusb.

Maciej, while I'm testing this could you report this issue on splix package? It should depend on cups[-usb] I think.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2012-01-27 20:41:07 UTC
We're not going to provide the debian patch but follow upstream cups. 

Please try cups-1.5.