]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Some older HP LaserJet printers need a delayed close when printing using the
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 15 Sep 2015 21:16:11 +0000 (21:16 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 15 Sep 2015 21:16:11 +0000 (21:16 +0000)
libusb-based USB backend (STR #4549)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12878 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.1.txt
backend/org.cups.usb-quirks
backend/usb-libusb.c

index ab1574c1f2e17deafdd029b38659aafbe2d38b28..701cdeb484d19301baae857b0fb4f0d24fcdc17a 100644 (file)
@@ -1,5 +1,17 @@
-CHANGES.txt - 2.1.0 - 2015-08-31
---------------------------------
+CHANGES-2.1.txt
+---------------
+
+CHANGES IN CUPS V2.1.1
+
+       - Some older HP LaserJet printers need a delayed close when printing
+         using the libusb-based USB backend (STR #4549)
+       - The libusb-based USB backend did not unload the kernel usblp module
+         if it was preventing the backend from accessing the printer
+         (STR #4707)
+       - Current Primera printers were incorrectly reported as Fargo printers
+         (STR #4708)
+       - Updated localizations (STR #4709)
+
 
 CHANGES IN CUPS V2.1.0
 
index 3076a9bd373401e6d6211bf49a610da038c83afc..c3a74c0a0b5b723d796e13e4eb9967459d05095a 100644 (file)
@@ -5,6 +5,7 @@
 # product ID (omit for all vendor products), and a list of known issues:
 #
 #   blacklist     The printer is not functional with the USB backend.
+#   delay-close   Delay close/reset of selected interface
 #   no-reattach   Do no re-attach usblp kernel module after printing.
 #   soft-reset    Do a soft reset after printing for cleanup.
 #   unidir        Only supported unidirectional I/O
 
 # All Intermec devices (STR #4553)
 0x067e no-reattach
+
+# HP LaserJet 1150 (STR #4549)
+0x03f0 0x0f17 delay-close
+
+# HP LaserJet 1300 (STR #4549)
+0x03f0 0x1017 delay-close
+0x03f0 0x1117 delay-close
+
+# HP LaserJet 1320 (STR #4549)
+0x03f0 0x1d17 delay-close
index 93d67bba5665df58c130c960bd2d5b53d1ef7038..2a70446c80c0e0f631022c529e96c29b7ea678e9 100644 (file)
@@ -3,7 +3,7 @@
  *
  * LIBUSB interface code for CUPS.
  *
- * Copyright 2007-2014 by Apple Inc.
+ * Copyright 2007-2015 by Apple Inc.
  *
  * These coded instructions, statements, and computer programs are the
  * property of Apple Inc. and are protected by Federal copyright
@@ -103,6 +103,7 @@ typedef struct usb_globals_s                /* Global USB printer information */
 #define USB_QUIRK_USB_INIT     0x0010  /* Needs vendor USB init string */
 #define USB_QUIRK_VENDOR_CLASS 0x0020  /* Descriptor uses vendor-specific
                                           Class or SubClass */
+#define USB_QUIRK_DELAY_CLOSE  0x0040  /* Delay close */
 #define USB_QUIRK_WHITELIST    0x0000  /* no quirks */
 
 
@@ -641,6 +642,9 @@ print_device(const char *uri,               /* I - Device URI */
   * Close the connection and input file and general clean up...
   */
 
+  if (g.printer.quirks & USB_QUIRK_DELAY_CLOSE)
+    sleep(1);
+
   close_device(g.printer);
 
  /*
@@ -1211,6 +1215,9 @@ load_quirks(void)
       if (strstr(line, " blacklist"))
         quirk->quirks |= USB_QUIRK_BLACKLIST;
 
+      if (strstr(line, " delay-close"))
+        quirk->quirks |= USB_QUIRK_DELAY_CLOSE;
+
       if (strstr(line, " no-reattach"))
         quirk->quirks |= USB_QUIRK_NO_REATTACH;