[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-09-02 Thread terakin
Till,

After three days test running of printer including output of several dozens of 
pages, I confirmed that option -o usb-unidir-default=true just works for my 
printer, Canon Pixma MP600. In one case, I encountered printer just halt. In 
this case, I started printing with printer's power still off. And moreover, 
system went very unstable and I had to shut down the machine (and could not do 
safely). I convince that I can ignore this case and the option generally works.
Thank you for your definite suggestions!

... One more excuse. Actually, I tried this option before, and it didn't
work in that time ... cups and related packages were not updated. So, I
had double bugs in that time and that's why this option didn't work.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-08-28 Thread Till Kamppeter
terakin,  LiaM, can you run the command

lpadmin -p printer -o usb-unidir-default=true

in a terminal window, with printer replaced by the name of your
print queue (print queue names are shown by the lpstat -v command.
Then remove all stuck jobs from the print queue and turn off and turn on
the printer. Does the problem go away now?

If not, try the command

lpadmin -p printer -o usb-no-reattach-default=true

clear the print queue and power-cycle the printer. Does it work now? If
yes, try to remove the first workaround via

lpadmin -p printer -R usb-unidir-default

Does it still work?

To remove also the other workaround run

lpadmin -p printer -R usb-no-reattach-default

Please post also the output of the command

lsusb

This way we get the USB IDs of the printer to be able to add permanent
exception rules to the CUPS USB backend.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-08-27 Thread terakin
Still in problem even after installing most recent update (cups, 
1.5.3-0ubuntu4). 
The symptom is also the same.
* Printer is OK after several periods of powering on.
* Then, printer suddenly hangs without warning. I only can know this by 
notifying printer spool does not proceed.
* The only solution is to shut down the printer. My printer (Canon Pixma MP600) 
cannot shut down by power button after encoutering this trouble, only by 
plugging off the power code.
* Everything seems to be normal after re-enterying power switch of the printer. 
Spooled printing is also OK.
* This situation does not change even if I assign module usblp as a 
blacklisted one.

I cannot carve up the cause of this problem whether this is driver side
and backend side. However, I suppose that the problem stems from
backend, as same problem occurs after changing the driver. And it seems
that some extra signal (possibly from cups?) makes the printer hangs up.
However, it is also strange that the printer never time out after
plugging off USB cable, or lettting it for several minutes.

What is the best way to solve (or, at least collect related information)
this problem ...?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-08-16 Thread LiaM
I'm still experiencing this error, or one that's very similar. 
After upgrading to precise I am unable to print PDF files on a Canon Pixma4000.
The cups version is 1.5.3-0ubuntu3.
Printing a test page or text file works.  However, trying to print a PDF file 
just hangs.  The file remains in the queue with status Processing.
The debug messages are attached.
I'm happy to try to debug this, since not being able to print is really getting 
to be a problem. 

Any help would be *very* much appreciated!!!

** Attachment added: cups error_log -- keeps repeating Get  USB transaction 
timeout
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+attachment/3264466/+files/cups_debug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-08-02 Thread terakin
Thank you for fix release of cups. However, I am still having the same trouble 
even after applying the latest cups package.
I have two printers connected via USB, Canon PIXMA MP600 and PIXMA MP630. The 
symptom is:
* Printer device frequently disappears. We can only see /dev/usb/lp1, no lp0.
* Sometimes printing takes very long time, nearly 1 hour.
* Printing generally succeeds at the first printing after computer is turning 
on, but fails after that.
* blacklisting usblp and selecting some options (usb-no-reattach, 
usb-unidir-default=true/false) make no effect.
I have 64-bit Ubuntu 12.04 system and uses drivers provided by Canon, both in 
32bit. This seems slightly unstable configuration, but it seems drivers just 
works fine according to error_log. One strange message from the log is Got USB 
transaction timeout during read. (or write), which means usb module has timed 
out and printer connection has been lost in some reason.
Is anybody out there explain this ?


** Attachment added: CUPS error_log (debug mode)
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+attachment/3246519/+files/cups_error_log.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-08-01 Thread Launchpad Bug Tracker
This bug was fixed in the package cups - 1.5.3-0ubuntu2

---
cups (1.5.3-0ubuntu2) precise-proposed; urgency=low

  * debian/patches/usb-backend-further-enhancements.patch: Added latest
development work on the libusb-based USB backend:
 - Support for uni-directional devices, both protocol-1 devices and
   devices where no read endpoint is found (LP: #1000253, LP: #1001028).
 - Soft reset specific to the PRINTER device class. This allows a
   reset without reconnecting.
 - When closing the device, it will also get reset to its original
   configuration, before re-attaching the usblp kernel module. Do not
   restore the configuration setting when the old configuration was zero,
   as zero means unconfigured.
 - Added option usb-unidir to force the backend into uni-directional
   mode. This allows to work around problems with bi-di communications,
   especially also a delay at the end of the job caused by closing the
   read channel (happens only for some devices, LP: #1001028). Also
   useful for debugging.
 - Added the quirk management of the usblp kernel module. So the problems
   of all printers which were worked around in the kernel module are
   also worked around in the libusb-based CUPS backend now (LP: #1000253).
 - Added new quirk type to quirk manager: Printers for which the usblp
   kernel module should not get reattached after printing a job
   (LP: #1000253).
 - Added additional quirks for the Prolific Technology USB - Parallel
   adapter, as the adapter needs uni-directional mode to be forced and
   also does not like re-attaching the usblp kernel module after the
   job (last third of last page gets cut off, re-attaching probably
   sends a reset to the printer while there is still data to be printed
   in the printer's internal buffer, LP: #987485).
 - Added the command line option usb-no-reattach. With the option set
   the usblp kernel module does not get reattached after a job has been
   printed. Some printers cut off the end of the job or even crash by
   re-attaching the module. This is a development/debug mode to test
   whether re-attaching was the culprit of a problem. Users should
   report such issues so that their printers can get added to the quirk
   list.
 - Do a printer reset after each job, this makes the Prolific USB -
   Parallel adapter finally work (LP: #987485) and makes it unnecessary
   to blacklist the usblp kernel module for some printers (LP: #997040).
 - Some extra debug messages.
 - Added a missing libusb_free_config_descriptor().
This patch is submitted upstream as CUPS STR #4128.
  * debian/patches/add-ipp-backend-of-cups-1.4.patch, debian/cups.config,
debian/cups.lintian-overrides, debian/cups.postinst, debian/cups.prerm,
debian/cups.templates: Add the IPP backend of CUPS 1.4.x to the current
CUPS package as independent backend ipp14. Some devices (like the
LiveBox 2 and some Samsung printers) do not work with the current IPP
backend (LP: #945028, LP: #973270).
  * debian/local/blacklist-cups-usblp.conf, debian/cups.postinst,
debian/cups.install, debian/cups.preinst, debian/cups.postinst,
debian/cups.postrm: As we have vastly improved the USB backend, we
lift the blacklisting again as it is not needed any more. This way
users with proprietary third-party backends based on /dev/usb/lp*
device files can print again. The problems which we have worked around
with the first SRU for Precise are now actually fixed in the USB
backend (LP: 997040, LP: #1000253).
 -- Till Kamppeter till.kamppe...@gmail.com   Tue, 10 Jul 2012 23:09:01 +0200

** Changed in: cups (Ubuntu Precise)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-21 Thread Aurimas Fišeras
Updated CUPS to 1.5.3-0ubuntu2 from precise-proposed.

Successfully printed 15+ jobs without any workarounds.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-18 Thread Clint Byrum
Hello Aurimas, or anyone else affected,

Accepted cups into precise-proposed. The package will build now and be
available at http://launchpad.net/ubuntu/+source/cups/1.5.3-0ubuntu2 in
a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: cups (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-13 Thread Stéphane Graber
Please use In progress instead of Fix commited  as the status for bugs that 
have a fix in the queue but not yet accepted to -proposed, otherwise it's 
making our reports quite confusing...
The SRU script will automatically changed it to Fix commited when it lands in 
-proposed and then Fix released when it lands in -updates.

Thanks

** Changed in: cups (Ubuntu Precise)
   Status: Fix Committed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-12 Thread Till Kamppeter
** Changed in: cups (Ubuntu Precise)
 Assignee: (unassigned) = Till Kamppeter (till-kamppeter)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-11 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/experimental/cups

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-10 Thread Till Kamppeter
Uploaded proposed fix for Precise to the precise-proposed package
repository. As soon as it gets approved we will post another comment
here with instructions how to install and test it. Please test it that
as your feedbvack here is required for making the package an official
update.

For the SRU team: debdiff attached to bug 945028:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/945028/+attachment/3219011/+files/cups_1.5.3-0ubuntu1_1.5.3-0ubuntu2.debdiff

SRU is for bug 945028, bug 973270, bug 987485, bug 997040, bug 1000253,
and bug 1001028.


** Changed in: cups (Ubuntu Precise)
   Status: Triaged = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-10 Thread Till Kamppeter
** Description changed:

  After update from oneiric to precise Samsung SCX-4200 usb printer prints
  one page and stops responding to CUPS. Turning the printer off and on
  crashes usb backend.
+ 
+ [IMPACT]
+ 
+ Many users of USB-connected Samsung printers are not able to print any
+ more after the upgrade from Lucid LTS or Oneiric to Precise LTS. In
+ Precise the problem was solved by an ugly workaround of blacklisting the
+ usblp kernel module in the first CUPS SRU. This solution breaks printing
+ for other users, those who use proprietary printer drivers with CUPS
+ backends based on the old /dev/usb/lp* device files and also users who
+ send jobs by directly sending data to the /dev/usb/lp* device files.
+ This worked under Lucid LTS.
+ 
+ The libusb-based USB backend of CUPS was far from completely
+ implemented. It lacked the ability to communicate uni-directionally with
+ devices which are not able to communicate bi-directionally, refrain from
+ re-attaching the usblp kernel module after printing for some devices,
+ reset the printer after printing the job, ... In the proposed package
+ these adaptations for devices with quirks are done in the USB backend.
+ Especially this backend now works with said Samsung printers, without
+ blacklisting the usblp module. So this second SRU is an improved
+ solution.
+ 
+ [TESTCASE]
+ 
+ Unfortunately, for reproducing this bug one needs the actual hardware.
+ 
+ Connect a Samsung printer to the USB port of the computer.
+ 
+ With stock Precise (without updates) you will not be able to print.
+ After applying the already available updates (including the first SRU
+ for CUPS) you will be able to print, but only because the usblp kernel
+ module is blacklisted. Remove the blacklisting via
+ 
+ sudo mv /etc/modprobe.d/blacklist-cups-usblp.conf ~
+ sudo modprobe usblp
+ 
+ and you will not be able to print any more.
+ 
+ After installing the proposed package the kernel module is not
+ blacklisted any more and you will still be able to print.
+ 
+ If you are on a Precise with all updates and you have a print queue with
+ an URI containing /dev/usb/lp* you will not be able to print. This
+ worked with stock Precise and works again with the proposed package.
+ 
+ You can easily test this with any Ubuntu-supported USB printer:
+ 
+ lpadmin -p test -E -v parallel:/dev/usb/lp0 -m PPD file which works with 
this printer
+ lpadmin -p teat -o PageSize=A4
+ lp- d test ~/.bashrc
+ 
+ The printing on this queue works on stock Precise, does not work on
+ Precise with all updates (usblp is blacklisted) and works again with the
+ proposed package.
+ 
+ [Regression Potential]
+ 
+ The patch looks perhaps more dramatic than it is. This is because
+ several code sections are put into if blocks, indenting all the
+ (unchanged) code lines. This especially happens because now we suppress
+ using the back channel for selected printers (and also printers which
+ claim to be uni-directional only).
+ 
+ The code was developed in several steps and uploaded step-by-step to my
+ PPA. There the reporters of the bugs covered by this SRU and some
+ additional bugs (bug 902535, bug 995111) tested it intensively. They did
+ not hit any regressions compared to stock Precise or the first CUPS SRU.
+ 
+ The code is also applied to the CUPS package in Quantal and this also
+ did not cause any regression bug report yet.
+ 
+ I have tested the code on four HP printers (HP LaserJet 3390, HP Color
+ LaserJet CM3530 MFP, HP PhotoSmart C8100, HP PhotoSmart C5200, all on
+ direct USB) and one Epson printer (Epson Stylus Photo 880, both direct
+ USB and parallel with Prolific USB - Parallel adaptor) and all work
+ fine, no regressions.
+ 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: cups 1.5.2-9ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  Uname: Linux 3.2.0-24-generic i686
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: i386
  Date: Wed May  9 13:23:47 2012
  Lpstat: device for Samsung_SCX-4200_Series: 
usb://Samsung/SCX-4200%20Series?serial=8T66BADQ207127T.interface=1
  Lsusb:
-  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-  Bus 001 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse 
(M-BT58)
-  Bus 001 Device 004: ID 04e8:341b Samsung Electronics Co., Ltd SCX-4200 series
+  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
+  Bus 001 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse 
(M-BT58)
+  Bus 001 Device 004: ID 04e8:341b Samsung Electronics Co., Ltd SCX-4200 series
  MachineType: Hewlett-Packard HP Vectra
  Papersize: letter
  PpdFiles: Samsung_SCX-4200_Series: Samsung SCX-4200, 2.0.0
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic 
root=UUID=8bffe6fd-56b5-46d1-b332-ba7f756f4244 ro quiet splash acpi=force 
vt.handoff=7
  SourcePackage: cups
  UpgradeStatus: Upgraded to precise on 2012-05-09 (0 days ago)
  dmi.bios.date: 11/23/99
  dmi.bios.vendor: Phoenix Technologies Ltd.
  

[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-10 Thread Till Kamppeter
Note, the removal of the blacklisting only works if you upgrade from
stock Precise or from the first SRU of CUPS. It does not work when
upgrading from my PPA. In this case run

sudo rm /etc/modprobe.d/blacklist-cups-usblp.conf

and turn off and turn on the printer.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-10 Thread Aurimas Fišeras
** Description changed:

  After update from oneiric to precise Samsung SCX-4200 usb printer prints
  one page and stops responding to CUPS. Turning the printer off and on
  crashes usb backend.
  
  [IMPACT]
  
  Many users of USB-connected Samsung printers are not able to print any
  more after the upgrade from Lucid LTS or Oneiric to Precise LTS. In
  Precise the problem was solved by an ugly workaround of blacklisting the
  usblp kernel module in the first CUPS SRU. This solution breaks printing
  for other users, those who use proprietary printer drivers with CUPS
  backends based on the old /dev/usb/lp* device files and also users who
  send jobs by directly sending data to the /dev/usb/lp* device files.
  This worked under Lucid LTS.
  
  The libusb-based USB backend of CUPS was far from completely
  implemented. It lacked the ability to communicate uni-directionally with
  devices which are not able to communicate bi-directionally, refrain from
  re-attaching the usblp kernel module after printing for some devices,
  reset the printer after printing the job, ... In the proposed package
  these adaptations for devices with quirks are done in the USB backend.
  Especially this backend now works with said Samsung printers, without
  blacklisting the usblp module. So this second SRU is an improved
  solution.
  
  [TESTCASE]
  
  Unfortunately, for reproducing this bug one needs the actual hardware.
  
  Connect a Samsung printer to the USB port of the computer.
  
  With stock Precise (without updates) you will not be able to print.
  After applying the already available updates (including the first SRU
  for CUPS) you will be able to print, but only because the usblp kernel
  module is blacklisted. Remove the blacklisting via
  
  sudo mv /etc/modprobe.d/blacklist-cups-usblp.conf ~
  sudo modprobe usblp
  
  and you will not be able to print any more.
  
  After installing the proposed package the kernel module is not
  blacklisted any more and you will still be able to print.
  
  If you are on a Precise with all updates and you have a print queue with
  an URI containing /dev/usb/lp* you will not be able to print. This
  worked with stock Precise and works again with the proposed package.
  
  You can easily test this with any Ubuntu-supported USB printer:
  
  lpadmin -p test -E -v parallel:/dev/usb/lp0 -m PPD file which works with 
this printer
- lpadmin -p teat -o PageSize=A4
+ lpadmin -p test -o PageSize=A4
  lp- d test ~/.bashrc
  
  The printing on this queue works on stock Precise, does not work on
  Precise with all updates (usblp is blacklisted) and works again with the
  proposed package.
  
  [Regression Potential]
  
  The patch looks perhaps more dramatic than it is. This is because
  several code sections are put into if blocks, indenting all the
  (unchanged) code lines. This especially happens because now we suppress
  using the back channel for selected printers (and also printers which
  claim to be uni-directional only).
  
  The code was developed in several steps and uploaded step-by-step to my
  PPA. There the reporters of the bugs covered by this SRU and some
  additional bugs (bug 902535, bug 995111) tested it intensively. They did
  not hit any regressions compared to stock Precise or the first CUPS SRU.
  
  The code is also applied to the CUPS package in Quantal and this also
  did not cause any regression bug report yet.
  
  I have tested the code on four HP printers (HP LaserJet 3390, HP Color
  LaserJet CM3530 MFP, HP PhotoSmart C8100, HP PhotoSmart C5200, all on
  direct USB) and one Epson printer (Epson Stylus Photo 880, both direct
  USB and parallel with Prolific USB - Parallel adaptor) and all work
  fine, no regressions.
- 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: cups 1.5.2-9ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  Uname: Linux 3.2.0-24-generic i686
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: i386
  Date: Wed May  9 13:23:47 2012
  Lpstat: device for Samsung_SCX-4200_Series: 
usb://Samsung/SCX-4200%20Series?serial=8T66BADQ207127T.interface=1
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 001 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse 
(M-BT58)
   Bus 001 Device 004: ID 04e8:341b Samsung Electronics Co., Ltd SCX-4200 series
  MachineType: Hewlett-Packard HP Vectra
  Papersize: letter
  PpdFiles: Samsung_SCX-4200_Series: Samsung SCX-4200, 2.0.0
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic 
root=UUID=8bffe6fd-56b5-46d1-b332-ba7f756f4244 ro quiet splash acpi=force 
vt.handoff=7
  SourcePackage: cups
  UpgradeStatus: Upgraded to precise on 2012-05-09 (0 days ago)
  dmi.bios.date: 11/23/99
  dmi.bios.vendor: Phoenix Technologies Ltd.
  dmi.bios.version: HZ.01.10US
  dmi.board.name: HP Holmes System Board
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: D4066-60001
  dmi.chassis.asset.tag: N/A
  dmi.chassis.type: 3
  

[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-09 Thread Aurimas Fišeras
Updated to CUPS 1.5.3-0ubuntu2~ppa15.
Executed:
lpadmin -p queue -R usb-no-reattach-default
lpadmin -p queue -R usb-unidir-default

Successfully printed 15 jobs (without blacklisting usblp) - no hangs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-09 Thread Till Kamppeter
Aurimas, thank you very much. Then your problem is actually fixed by the
improvements in the USB CUPS backends and blacklisting the usblp kernel
module is not required for your case. Also no exception rules for your
printer need to get applied in the backend.

Current CUPS in Quantal contains my improved backend, so the bug is
fixed in Quantal. I plan a new Stable Release Update of CUPS in Precise
to ship the new USB backend and also a fix for IPP problems, so stay
tuned as we need your feedback of testing the new CUPS SRU. This
feedback is required to make the new package an official update.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-09 Thread Till Kamppeter
Problem seems to be fixed by the new USB CUPS backend, closing kernel
and libusb tasks.

** Changed in: libusb-1.0 (Ubuntu Precise)
   Status: Confirmed = Invalid

** Changed in: libusbx (Ubuntu)
   Status: Confirmed = Invalid

** Changed in: linux (Ubuntu)
   Status: Confirmed = Invalid

** Changed in: linux (Ubuntu Precise)
   Status: Confirmed = Invalid

** Changed in: cups (Ubuntu Precise)
   Status: Fix Released = Triaged

** Changed in: cups (Ubuntu Precise)
Milestone: precise-updates = ubuntu-12.04.1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-08 Thread Till Kamppeter
Please try cups 1.5.3-0ubuntu2~ppa15 from my PPA. Here the USB backend
sends a reset command to the printer after completing a job. Perhaps
this could prevent your printer from crashing after the first job.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-06 Thread Till Kamppeter
Note that for returning from the special debug modes (forced uni-
directional, no re-attaching of the kernel module) you have to give the
option names with -default:

lpadmin -p queue -R usb-no-reattach-default
lpadmin -p queue -R usb-unidir-default

Please check whether the modes got actually reset looking for a line
containing Deleting option-default in your error_log. After that do
the appropriate test.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-04 Thread ormris
Hi All,
Just want to let you all know that I've got the same bug. I'll be testing from 
the PPA soon.

ormris

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-02 Thread Aurimas Fišeras
Updated CUPS to 1.5.3-0ubuntu2~ppa14.

Ran lpadmin -p queue -o usb-no-reattach-default=true

Successfully printed 10 jobs.

Skipped Plug'n'Print tests:
ls -l /lib/udev/udev-configure-printer
ls: cannot access /lib/udev/udev-configure-printer: No such file or directory

Ran lpadmin -p queue -R usb-no-reattach

Successfully printed another 10 jobs.

Interleaving sudo rmmod usblp; sudo modprobe usblp after each
successful print job (with -R usb-no-reattach) eventually (after 3
successful jobs) led to a hanged job with Got USB transaction timeout
during read/write.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-07-02 Thread Till Kamppeter
Aurimas, thank you for your testing. Now please do the following:

sudo apt-get install system-config-printer-udev

If the system tells you that the package is already installed do

sudo apt-get install --reinstall system-config-printer-udev

Make sure that the kernel module is not blacklisted and loaded. Turn off
and turn on the printer. Work with

lpadmin -p queue -R usb-no-reattach

Now do test jobs again. DO NOT do sudo rmmod usblp; sudo modprobe
usblp between successful jobs, do it only after a job which failed.

The difference to the previous test is mainly that you know will work
with Plug'n'Print activated.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Till Kamppeter
Aurimas, can you do the following additional tests:

Update to cups 1.5.3-0ubuntu2~ppa13, make sure that the usblp module is
not blacklisted and that the module is loaded. Turn off your printer and
turn it on again.

Now run

lpadmin -p queue -o usb-no-reattach-default=true

to make the USB backend not reattach the usblp kernel module after a
print job. Does this solve your problem?

Try with both Plug'n'Print active

sudo chmod +x /lib/udev/udev-configure-printer

and suppressed

sudo chmod -x /lib/udev/udev-configure-printer

Get back to the old state via

lpadmin -p queue -R usb-no-reattach

Always replace queue by your print queue name.

Try also manually reloading the usblp module via sudo rmmod usblp; sudo
modprobe usblp after a job has completely finished (all pages have come
out) and before sending the next job.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Aurimas Fišeras
Updated CUPS to 1.5.3-0ubuntu2~ppa12.

With usblp not blacklisted and without forcing uni-directional, print
jobs still hang with USB transaction timeout during read/write.

** Attachment added: CUPS error_log (ppa12)
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+attachment/3206463/+files/error_log.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Aurimas Fišeras
Forcing uni-directional mode doesn't make any difference - jobs still
hang.

** Attachment removed: CUPS error_log (ppa12)
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+attachment/3206463/+files/error_log.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Aurimas Fišeras
Oops, wrong error logs.

** Attachment added: CUPS error_log (ppa12) u-d mode forced
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+attachment/3206482/+files/error_log.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Till Kamppeter
Can you run the command

sudo chmod -x /lib/udev/udev-configure-printer

and after that do the tests again?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Till Kamppeter
Job 32973 seems to have succeeded.
Job 32974 times out on the first chunk of print data sent.

What is the difference between the two jobs? Both are forced uni-
directional, but what is different? Is one with usblp blacklisted and
the other without?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Aurimas Fišeras
The only difference between Job 32973 and 32974 is that job 32973 is the
first job printed after turning the printer off and on.

USB transaction timeout during read/write problem only appears on the
second or later job.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-28 Thread Aurimas Fišeras
ls -l /lib/udev/udev-configure-printer
ls: cannot access /lib/udev/udev-configure-printer: No such file or directory

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-27 Thread Till Kamppeter
Can you all try cups 1.5.3-0ubuntu2~ppa12 from my PPA? This could solve
the problem. Test it, with and without the blacklisting of usblp and
with and without forcing uni-directional mode and tell whether it works.
Especially I want to know whether it actually works without blacklisting
and without forcing uni-directional now.

Independent whether it works, please attach your error_log.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-26 Thread Till Kamppeter
Stéphane, can you try forced uni-directional mode as described in
comment #33? Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-26 Thread Acsone
I tested with forced uni-directional mode and the problem persists.

A few additional comments: 
- I don't have the usblp module
- the problem appeared when upgrading from 10.04 to 12.04 (server)
- the same printer works fine on another machine on 11.10 (desktop)

-sbi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-24 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libusbx (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-24 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libusb-1.0 (Ubuntu Precise)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-24 Thread Acsone
Hello,

It seems I'm having the same issue with a Canon IP 4200, with repeated error 
messages in /var/log/cups/error_log:
D [24/Jun/2012:20:03:56 +0200] [Job 4] Got USB transaction timeout during write
D [24/Jun/2012:20:03:56 +0200] [Job 4] Got USB transaction timeout during read

Sometime it prints a few pages before blocking, sometimes it does not
print all.

I tested tonight with cups 1.5.3-0ubuntu2~ppa11.

Let me know if I can help testing or producing debug logs.

Best regards,

-sbi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-18 Thread Aurimas Fišeras
Updated CUPS to 1.5.3-0ubuntu2~ppa9.
Tested with usblp not blacklisted. After several successfully printed jobs, 
CUPS job hangs with Rendering completed,

grep 32970 /var/log/cups/error_log returns same errors as before:
D [18/Jun/2012:16:22:17 +0300] [Job 32970] Got USB transaction timeout during 
read.
D [18/Jun/2012:16:22:29 +0300] [Job 32970] Got USB transaction timeout during 
write.

ls -l /dev/usb/lp*
ls: cannot access /dev/usb/lp*: No such file or directory

ps auxwww | grep usb
lp3093  0.3  1.1  37020  2804 ?Sl   16:19   0:01 
Samsung_SCX-4200_Series 32970 anonymous Test Page 1 
job-uuid=urn:uuid:50cca4a5-31a5-335f-55e1-1c4855b2c7a8 nousb-unidir 
job-originating-host-name=localhost time-at-creation=1340025556 
time-at-processing=1340025556
root  3094  0.0  0.5  23708  1396 ?Sl   16:19   0:00 
usb://Samsung/SCX-4200%20Series?serial=8T66BADQ207127T.interface=1 32970 
anonymous Test Page 1 job-uuid=urn:uuid:50cca4a5-31a5-335f-55e1-1c4855b2c7a8 
nousb-unidir job-originating-host-name=localhost time-at-creation=1340025556 
time-at-processing=1340025556
it3172  0.0  0.3   5596   796 pts/0S+   16:26   0:00 grep 
--color=auto usb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-18 Thread Till Kamppeter
Aurimas, thank you very much for testing again. Now it really seems that
there is a problem with libusb or the kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-16 Thread Till Kamppeter
Only to be sure, can you do the tests of comment #36 with cups
1.5.3-0ubuntu2~ppa9 from my PPA? Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-15 Thread Brad Figg
** Changed in: linux (Ubuntu)
   Status: New = Confirmed

** Changed in: linux (Ubuntu Precise)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 997040] Re: usb printer backend hangs when usblp kernel module is loaded

2012-06-15 Thread Till Kamppeter
Adding tasks for kernel and libusb 1.0.x ...

To the developers and packagers of kernel and libusb, the CUPS printing
backend (source code attached) accesses printers with libusb 1.0.x. To
be able to access in all situations, it detaches the kernel module from
the printer right after libusb_open() (function open_device() in
attached source file) and re-attaches it right before libusb_close()
(function close_device() in attached file). Only after detaching the
module it switches to the needed configuration (if needed), clkaims the
interface, and selects the alt setting (function open_device()). Then it
reqyests the device ID to check whether the desired printer is selected
and after that does the I/O, taking into account if the interface's
protocol is 1 or if there is no read endpoint that no read thread is
started. After that the interface is released, the configuration is
restored if it was switched in the beginning and the usblp module re-
attached.

Printers are assigned to the print queues by their make/model/serial
number in CUPS and to select the correct USB device the function
find_device() in the attached file walks through all devices and
searches for interfaces of class 7 and subclass 1 and requests the
device ID from this one. It stops if the ID matches and send the job to
this device.

If the usblp module is not loaded (blacklisted) all works fine. The
detaching and re-attaching does not happen but all the rest is done as
described. In this situation one can send arbitrarily many print jobs
and they all get perfectly printed.

The problem comes when the usblp module is present. Only the walk
through the devices to find the correct printer still works, so the
method described above works perfectly if one opens the devices only for
requesting the device ID. But if one does real I/O (sending a job) this
works several times and then suddenly the I/O is not accepted any more.
Right after reading the device ID, when starting to send data to (and
request data from) the device, the device does not react and the I/O
functions of libusb report a timeout. This is independent of whether one
does bi-directional I/O (sending the job data and also reading what
comes back from the printer) or uni-directional I/O (only sending data,
no back channel).

You can see the timeout messages in the last two attached error_log
files in the last job in each file. The timeout is always exactly 1
minute after trying to write data to or read data from the device.

Please ask the original poster of the bug for more information if
needed.

bug 995111 is most probably the same problem, please also contact the
poster of that bug.



** Attachment added: usb-libusb.c
   
https://bugs.launchpad.net/ubuntu/+source/libusb-1.0/+bug/997040/+attachment/3190802/+files/usb-libusb.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997040

Title:
  usb printer backend hangs when usblp kernel module is loaded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs