From owner-freebsd-questions@FreeBSD.ORG Sun Apr 6 09:59:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B65E237B401 for ; Sun, 6 Apr 2003 09:59:05 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F73243F85 for ; Sun, 6 Apr 2003 09:59:04 -0700 (PDT) (envelope-from mwm-dated-1050080343.49c58b@mired.org) Received: (qmail 83543 invoked from network); 6 Apr 2003 16:59:03 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 6 Apr 2003 16:59:03 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Sun, 06 Apr 2003 11:59:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16016.23766.995945.259510@guru.mired.org> Date: Sun, 6 Apr 2003 11:59:02 -0500 To: Marc Wiz In-Reply-To: <20030406161652.GA4518@freshaire.wiz.com> References: <20030406161652.GA4518@freshaire.wiz.com> X-Mailer: VM 7.07 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.73 (Jet Pilot) cc: freebsd-questions@freebsd.org Subject: Re: USB Printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 16:59:06 -0000 In <20030406161652.GA4518@freshaire.wiz.com>, Marc Wiz typed: > Now here comes the interesting part since I figured it would be a > good idea to start debugging this with a simple setup (no printer > spooler, etc.) I have tried to do echo "hello there" > /dev/ulpt0 > and nothing happens. > It takes about 30 seconds before the command ends. This was interpreted as meaning that this was a winprinter. However... > If I try the echo using Linux the printer works just fine. I.e. a page is > printed with "hello there". That's not good. That sounds like it isn't a winprinter, but the driver is just not working. > The code is compiled into the kernel (not a module) > > Any suggestions as to how to proceed? Are there any driver debug options > that can be enabled either for USB or the printer code? You can enable USB_DEBUG at kernel build time, then use "gdb -k" to set ulptdebug in ulpt.c to positive values - increasing values get you increasing levels of debug information. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.