From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 16 16:40:29 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2EB316A4D2 for ; Thu, 16 Dec 2004 16:40:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9450843D75 for ; Thu, 16 Dec 2004 16:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBGGeHHf050423 for ; Thu, 16 Dec 2004 16:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBGGeHKK050422; Thu, 16 Dec 2004 16:40:17 GMT (envelope-from gnats) Resent-Date: Thu, 16 Dec 2004 16:40:17 GMT Resent-Message-Id: <200412161640.iBGGeHKK050422@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hernán Di Pietro Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEBE316A4CE for ; Thu, 16 Dec 2004 16:39:38 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B04F43D39 for ; Thu, 16 Dec 2004 16:39:38 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBGGdbAI079809 for ; Thu, 16 Dec 2004 16:39:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id iBGGdbDQ079808; Thu, 16 Dec 2004 16:39:37 GMT (envelope-from nobody) Message-Id: <200412161639.iBGGdbDQ079808@www.freebsd.org> Date: Thu, 16 Dec 2004 16:39:37 GMT From: Hernán Di Pietro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/75157: Cannot print to /dev/lpt0 with HP Laserjet 1005 : Device Busy X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 16:40:29 -0000 >Number: 75157 >Category: kern >Synopsis: Cannot print to /dev/lpt0 with HP Laserjet 1005 : Device Busy >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 16 16:40:17 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Hernán Di Pietro >Release: FreeBSD 5.3 RELEASE, i386, Generic Kernel >Organization: >Environment: FreeBSD 5.3-RELEASE GENERIC i386 >Description: Cannot print files to /dev/lpt0 with a Parallel HP Laserjet 1005 after successfully uploading the HP Laserjet 1005 firmware. Note that you can't upload anything with interrupt-driven port. If lpt is set to polled mode with lptcontrol, it's possible to upload the firmware to the printer. Seems that's a timing problem, because the firmware can be successfully uploaded through the parallel port ONLY when the printer is powering up. If you leave the printer ON for some seconds after powerup tasks, sending the firmware with cat will output a Device Busy message. >How-To-Repeat: * In interrupt-driven port, just try to send anything to the port, it won't respond. * Set the port with lptcontrol at boot time to polled mode (-p). Turn off the printer. When the printer is powering up, send the HP 1005 firmware with cat Hp1005fw > /dev/lpt0 the firmware is uploaded correctly (you can check this because when you bootup the system the next time it will identify the printer with a string like): ppc0: HP Laserjet 1005...... 200302xx When the firmware is not loaded, it will just report the printer name, not any feature or manufacturing date. Note that in Linux, this firmware uploading is required, and it can be done like in FreeBSD, altough it's possible to send any job to the printer. In FreeBSD, even with the firmware loaded, the printer does not respond. >Fix: The HP Laserjet 1005 firmware can be successfully uploaded to the printer if you set lpt to polling mode (device.hints at loader.conf w/ACPI disabled to avoid ACPI to reset the port to interrupt-driven). After bootup, turn off the printer. Type the command to upload the printer firmware, but do not press ENTER. Just execute the cat hp1005fw>/dev/lpt0 when the printer is doing the powerup tests. THe firmware will be successfully loaded. After that, it won't respond to printing requests (Device busy error). >Release-Note: >Audit-Trail: >Unformatted: