From owner-freebsd-questions Sun Feb 17 13: 1:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id C5FAF37B405 for ; Sun, 17 Feb 2002 13:01:17 -0800 (PST) Received: (qmail 782 invoked by uid 100); 17 Feb 2002 21:01:12 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15472.6679.951226.877318@guru.mired.org> Date: Sun, 17 Feb 2002 15:01:11 -0600 To: "Pierre-Luc Drouin" Cc: questions@freebsd.org Subject: Re: Setup HP LaserJet 1200 on usb: get ugen0 but not ulpt0 In-Reply-To: <35506768@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Pierre-Luc Drouin types: > I'm unable to get ulpt0 for my printer in dmesg. > > -Option ulpt is activated in my kernel > -I get ugen0 in dmesg > -ulpt0 exists in /dev/ > > When i try to configure apsfilter or anything with ulpt0, it says than > the device is not configured. > > dmesg: > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 4 ports with 4 removable, self powered > ugen0: HewLett Packard HP LaserJet 1200, rev 1.10/1.00, addr 2 > > What can i do? Make absolutely sure you're running a kernel with the ulpt code compiled into it. If that is the case, then you're probably going to have to start working on the driver source in /usr/src/sys/dev/usb/ulpt.c In particular, USB_MATCH(ulpt) walks through the description of the USB device making sure it's a printer that speaks one of the protocols that the ulpt driver supports. Check to see why that's failing, and if how it will do on any tests that may not be making. You can then try assuming that the printer's USB support is broken, and tweak the driver so the printer passes the test and see how things go. On the other hand, you may have a printer that connects via USB, but doesn't follow the USB standards for printers, or doesn't support any of the protocols that ulpt needs. In which case, things are going to be noticably harder. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message