From owner-freebsd-hackers Wed Dec 4 19:23: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CB9A37B401; Wed, 4 Dec 2002 19:23:00 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40DE243E4A; Wed, 4 Dec 2002 19:22:59 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 146465374; Thu, 5 Dec 2002 04:22:55 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: John Nielsen Cc: Bernd Walter , freebsd-hackers@FreeBSD.ORG, iedowse@freebsd.org, joe@freebsd.org Subject: Re: USB support for new HP printers? References: <200208252336.15970.john@jnielsen.net> <20021202121358.GI58609@cicely8.cicely.de> <200212021235.23537.john@jnielsen.net> From: Dag-Erling Smorgrav Date: Thu, 05 Dec 2002 04:22:54 +0100 In-Reply-To: (Dag-Erling Smorgrav's message of "Wed, 04 Dec 2002 22:06:52 +0100") Message-ID: Lines: 12 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= 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