Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Dec 2002 04:22:54 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        John Nielsen <john@jnielsen.net>
Cc:        Bernd Walter <ticso@cicely.de>, freebsd-hackers@FreeBSD.ORG, iedowse@freebsd.org, joe@freebsd.org
Subject:   Re: USB support for new HP printers?
Message-ID:  <xzpk7ipm9o1.fsf@flood.ping.uio.no>
In-Reply-To: <xzpadjl7atv.fsf@flood.ping.uio.no> (Dag-Erling Smorgrav's message of "Wed, 04 Dec 2002 22:06:52 %2B0100")
References:  <200208252336.15970.john@jnielsen.net> <20021202121358.GI58609@cicely8.cicely.de> <200212021235.23537.john@jnielsen.net> <xzpadjl7atv.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

The attached patch allows me to print to my HP OfficeJet by making
ulpt0 use the bidirectional interface (7/1/2) instead of the IEEE1284
interface (7/1/3).  I haven't had time to set up CUPS yet, but simply
catting a text file do /dev/ulpt0 works fine, while previously it
would just hang.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=ulpt.diff

Index: sys/dev/usb/ulpt.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/ulpt.c,v
retrieving revision 1.50
diff -u -r1.50 ulpt.c
--- sys/dev/usb/ulpt.c	30 Oct 2002 01:18:58 -0000	1.50
+++ sys/dev/usb/ulpt.c	4 Dec 2002 23:33:39 -0000
@@ -236,8 +236,7 @@
 		    id->bInterfaceNumber == ifcd->bInterfaceNumber) {
 			if (id->bInterfaceClass == UICLASS_PRINTER &&
 			    id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
-			    (id->bInterfaceProtocol == UIPROTO_PRINTER_BI ||
-			     id->bInterfaceProtocol == UIPROTO_PRINTER_1284))
+			    id->bInterfaceProtocol == UIPROTO_PRINTER_BI)
 				goto found;
 			altno++;
 		}

--=-=-=--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpk7ipm9o1.fsf>