From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 06:43:18 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 A77D016A4CE for ; Thu, 13 Jan 2005 06:43:18 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B75B43D41 for ; Thu, 13 Jan 2005 06:43:16 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.13.1/8.12.11) with ESMTP id j0D6hFwu001300 for ; Wed, 12 Jan 2005 22:43:15 -0800 (PST) (envelope-from sandy@szamoca.krvarr.bc.ca) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.13.1/8.12.11/Submit) id j0D6hFT9001297; Wed, 12 Jan 2005 22:43:15 -0800 (PST) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> Date: Wed, 12 Jan 2005 22:43:15 -0800 To: freebsd-usb@freebsd.org X-Mailer: VM 7.07 under Emacs 21.3.1 Subject: 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 06:43:18 -0000 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? [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. Thanks, Sandy