> I found a solution for my printing problem.
> I posted it a while ago, but nobody answered me :-(

It seems USB interface that comes with HP printers are generally
broken and requires this "not-really-bidirectional" flag to be set.

I had posted similar patch attached below to this list for
some time, but seems not to be incorporated. Since last year,
I've been patching the kernel every time new kernel gets out...

> static struct quirk_printer_struct quirk_printers[] = {
>         { 0x03f0, 0x0004, USBLP_QUIRK_BIDIR }, /* HP DeskJet 895C */
>         { 0x03f0, 0x0104, USBLP_QUIRK_BIDIR }, /* HP DeskJet 880C */
>         { 0x03f0, 0x0204, USBLP_QUIRK_BIDIR }, /* HP DeskJet 815C */
>         { 0x03f0, 0x0304, USBLP_QUIRK_BIDIR }, /* HP DeskJet 810C/812C */
>         { 0x03f0, 0x0404, USBLP_QUIRK_BIDIR }, /* HP DeskJet 830C */
>         { 0x03f0, 0x1104, USBLP_QUIRK_BIDIR }, /* HP Deskjet 959C */
>         { 0, 0 }
> };

--- cut here --- cut here --- cut here --- cut here --- cut here ---
--- linux-2.4.8.orig/drivers/usb/printer.c      Sun Aug 12 00:53:42 2001
+++ linux-2.4.8/drivers/usb/printer.c   Sun Aug 12 01:00:17 2001
@@ -118,6 +118,7 @@
 #define USBLP_QUIRK_USB_INIT   0x2     /* needs vendor USB init string */

 static struct quirk_printer_struct quirk_printers[] = {
+       { 0x0409, 0xefbe, USBLP_QUIRK_BIDIR }, /* NEC Picty900 (HP OEM) */
        { 0x03f0, 0x0004, USBLP_QUIRK_BIDIR }, /* HP DeskJet 895C */
        { 0x03f0, 0x0104, USBLP_QUIRK_BIDIR }, /* HP DeskJet 880C */
        { 0x03f0, 0x0204, USBLP_QUIRK_BIDIR }, /* HP DeskJet 815C */
--- cut here --- cut here --- cut here --- cut here --- cut here ---

--
Taisuke Yamada <[EMAIL PROTECTED]>
PGP fingerprint = 6B 57 1B ED 65 4C 7D AE  57 1B 49 A7 F7 C8 23 46

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to