From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 20:05:23 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF29B16A4CE for ; Thu, 13 Jan 2005 20:05:23 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C1A343D49 for ; Thu, 13 Jan 2005 20:05:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 789C17A403; Thu, 13 Jan 2005 12:05:23 -0800 (PST) Message-ID: <41E6D483.8050005@elischer.org> Date: Thu, 13 Jan 2005 12:05:23 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Sandy Rutherford References: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> In-Reply-To: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: ulpt hangs on offline status X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 20:05:23 -0000 Sandy Rutherford wrote: >I have an Entrega USB->Centronics adapter attached to an HP Laserjet >III. When the printer (printer name is lp) runs out of paper, I get >the usual > > "waiting for lp to become ready (offline?)" > >message from lpq. However, when I refill the printer and bring it >back online, ultp, seems not to notice. It stays stuck in this state. >With a direct parallel connection, the status is updated and the >printer queue starts moving again. > >I have found that the only way to get ultp to update the status is to >disconnect and reconnect the USB cable, forcing a detach/attach >event. > >This is with FreeBSD 4.10 / i386. > >1. Has anybody else seen this behaviour? > >2. Is it a driver bug or a problem with the Entrega adapter? The > specs of my adapter and USB controller are below. > >3. Does anybody know of a patch to ultp.c to fix this problem? > >4. Any ideas for a (software) workaround, such as a way to force a soft > detach/attach? > You might close and reopen the device. I have had no problems with my USB HP deskjet. > >[root@szamoca:14] usbdevs -v -d >Controller /dev/usb0: >addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 > uhub0 > port 1 powered > port 2 addr 2: full speed, power 98 mA, config 1, Centronics connector(0x0006), Entrega(0x1645), rev 1.00 > ulpt0 > >I am willing to muck around with the driver to try to fix this myself, >but it would be useful to know if anybody else has seen or worked on >this problem. > not yet but I'm willing to believe that you may need to poll the device to see the change in status. That would be handled in the "interrupt" type transfers.. We do not support them very well yet. > >Thanks, >Sandy >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > >