Bug#989073: cups: Samsung ML-1640 USB printer not working, needs longer USB timeout
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
Reply to: