--- Begin Message ---
Package: cups
Version: 2.3.3op2-3
Severity: important
Dear Maintainer,
Latest cups from unstable doesn't work with old USB printers anymore.
At least Samsung ML-1640 just prints an error like
"INTERNAL ERROR - Incomplete Session by time out".
Root cause seems to be:
https://bbs.archlinux.org/viewtopic.php?id=265299
https://github.com/OpenPrinting/cups/pull/160/commits/d2f41769f208729438414c76983385f0f13ef9b7
After applying this patch printing works again:
src/cups-2.3.3op2# diff -up backend/usb-libusb.c_orig backend/usb-libusb.c
--- backend/usb-libusb.c_orig 2021-05-25 11:41:02.981961321 +0300
+++ backend/usb-libusb.c 2021-05-25 11:42:39.990717869 +0300
@@ -1704,7 +1704,7 @@ static void *read_thread(void *reference
readstatus = libusb_bulk_transfer(g.printer->handle,
g.printer->read_endp,
readbuffer, rbytes,
- &rbytes, 250);
+ &rbytes, 60000);
if (readstatus == LIBUSB_SUCCESS && rbytes > 0)
{
fprintf(stderr, "DEBUG: Read %d bytes of back-channel data...\n", (int)rbytes);
Please consider applying this, thanks.
Cheers,
-Mikko
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cups depends on:
ii cups-client 2.3.3op2-3
ii cups-common 2.3.3op2-3
ii cups-core-drivers 2.3.3op2-3
ii cups-daemon 2.3.3op2-3
ii cups-filters 1.28.7-1
ii cups-ppdc 2.3.3op2-3
ii cups-server-common 2.3.3op2-3
ii debconf [debconf-2.0] 1.5.74
ii ghostscript 9.53.3~dfsg-7
ii libavahi-client3 0.8-5
ii libavahi-common3 0.8-5
ii libc6 2.31-9
ii libcups2 2.3.3op2-3
ii libgcc-s1 10.2.1-6
ii libstdc++6 10.2.1-6
ii libusb-1.0-0 2:1.0.24-3
ii poppler-utils 20.09.0-3.1
ii procps 2:3.3.17-3
Versions of packages cups recommends:
ii avahi-daemon 0.8-5
ii colord 1.4.5-3
Versions of packages cups suggests:
ii cups-bsd 2.3.3op2-3
pn cups-pdf <none>
pn foomatic-db-compressed-ppds | foomatic-db <none>
pn smbclient <none>
ii udev 247.3-1
-- debconf information:
cupsys/raw-print: true
cupsys/backend: lpd, socket, usb, snmp, dnssd
--- End Message ---
--- Begin Message ---
Source: cups
Source-Version: 2.3.3op2-3+deb11u1
Done: Didier Raboud <odyx@debian.org>
We believe that the bug you reported is fixed in the latest version of
cups, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 989073@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Didier Raboud <odyx@debian.org> (supplier of updated cups package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 27 May 2021 08:49:36 +0200
Source: cups
Architecture: source
Version: 2.3.3op2-3+deb11u1
Distribution: unstable
Urgency: medium
Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Changed-By: Didier Raboud <odyx@debian.org>
Closes: 989073
Changes:
cups (2.3.3op2-3+deb11u1) unstable; urgency=medium
.
* Backport 2 upstream USB backend fixes:
- Revert enforcing read limits (caused a regression with Lexmark filters)
- Use 60s timeout (instead of 250ms) for reading at backchannel, as some
older models malfunction if timeout is too short (Closes: #989073)
Checksums-Sha1:
7a74012a60148ed527379520dddbc71d3c80e6c7 3373 cups_2.3.3op2-3+deb11u1.dsc
3a74c1a172010d066556300cf7d2bf19d374b6a6 346456 cups_2.3.3op2-3+deb11u1.debian.tar.xz
Checksums-Sha256:
0366ca59ff6d2d3c33c861d886e1043527fe19a14e7ab66e292c777155401dba 3373 cups_2.3.3op2-3+deb11u1.dsc
3f1dab94f23a46fd566eafc2a9bdc5d2e8f5cbb49b6385b45d753209e8965e16 346456 cups_2.3.3op2-3+deb11u1.debian.tar.xz
Files:
6a053a4a62417104f8807852a576f352 3373 net optional cups_2.3.3op2-3+deb11u1.dsc
cd5ec6b8c83f3d15daf086b8c5351491 346456 net optional cups_2.3.3op2-3+deb11u1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEJ3k7rA0YCplkx4gZqcb6xg1jAWkFAmCyLb4ACgkQqcb6xg1j
AWmvzA//V23yPmIDI42PT+QcrfXDzM6/esFw7LnsKKuuiS0cvXRF/++lve/14+ne
yc/4t/acjPhlN4xEttnvlHRYu/iSWQqw3U78a9guevzEeqIuenxd7LWoNRJ5HIyk
LevvrgWpLa26dWIqKWy8IHo9NBLd25Xag//tnRh1luDZ5TY8p7OVaVjjb77RbBmR
WkYLpjgFp5Ojl08e8K3Ti/9C0K60Og/lkYvs5AqKZVQ6fYpvj/SjEu21Aj4Q32zh
VY/VGLevGEJqmrSVmBeCpvKk3QAG67dWBCJ8eQrfgTj8tImAVjBYrs6TU3w5lhsm
pUs0OygIRHuU/2UU1W4Ne8jeBZnOC62J3SAG6kgDPnrmkkPvT0CJl/kkzvPKK9qV
+BnYS3cKzAtIhiHF/6rPKfUKGXGZahYVuRrOT3N7/rY2Q+hS03DqqOw5zkKHQJKN
wm/HcLKSfR7s+h0OWegpNB4hGZ8XXtI4kMJOFB2ZrPt6rfL5eB75rE4HRShX3qmB
BKV6/UjiHhMHALegZEGuV8WDdv/w9sNDy82TW6LylNc2lWJJ87mf2mSad2S7ypOd
He0vJORnOWiOwnQ0gmilI0s+b/eTegjhWY7MkOuQjI4v+/C0y3cWOC0ljzfOVHa3
jQym1STwS3vz/iYTfaGSyj/ZKxLVDfyAPJ6v9bTdMYF60Jbo9sU=
=6cxC
-----END PGP SIGNATURE-----
--- End Message ---