From owner-freebsd-bugs Fri Dec 21 15:30:26 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 194E437B417 for ; Fri, 21 Dec 2001 15:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBLNU1i96687; Fri, 21 Dec 2001 15:30:01 -0800 (PST) (envelope-from gnats) Received: from astart2.astart.com (tcubed-gw.customer.nethere.net [216.188.53.211]) by hub.freebsd.org (Postfix) with ESMTP id 85A5037B417 for ; Fri, 21 Dec 2001 15:20:53 -0800 (PST) Received: from h110.private (h110.private [10.0.0.110]) by astart2.astart.com (8.11.6/8.11.6) with ESMTP id fBLNKqs08617 for ; Fri, 21 Dec 2001 15:20:53 -0800 (PST) (envelope-from papowell@astart.com) Received: (from papowell@localhost) by h110.private (8.11.3/8.11.3) id fBLNKqi73181; Fri, 21 Dec 2001 15:20:52 -0800 (PST) (envelope-from papowell) Message-Id: <200112212320.fBLNKqi73181@h110.private> Date: Fri, 21 Dec 2001 15:20:52 -0800 (PST) From: papowell@astart.com Reply-To: papowell@astart.com To: FreeBSD-gnats-submit@freebsd.org Cc: papowell@h110.private X-Send-Pr-Version: 3.113 Subject: kern/33074: USB printer support does not detect printers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33074 >Category: kern >Synopsis: USB printer support does not detect printers >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 21 15:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Powell >Release: FreeBSD 4.4-RELEASE i386 >Organization: LPRng.com >Environment: Tested on FreeBSD 4.4-RELEASE >Description: System: various, including ASUS A7V. Does not appear to be a motherboard/system issue. PRINTER: HP2200, HP Deskjet, Ricoh (i.e. - not a printer issue) Note: RedHat Linux does detection, as does MS 2000, so it does not appear to be defective combination >How-To-Repeat: 1. start GENERIC system. Plug and Play USB support is enabled. 2. kill usbd (killall usbd) 3. start usbd: usbd -v -d usbd: opened /dev/usb0 usbd: reading configuration file /etc/usbd.conf usbd: opened /dev/usb usbd: detach event at 1008976442.172197000, product 0x0217, Hewlett Packard: vndr=0x03f0 prdct=0x0217 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000 usbd: Found action 'Printer' for product 0x0217, Hewlett Packard usbd: attach event at 1008976447.059681000, HP LaserJet 2200, HewLett Packard: vndr=0x03f0 prdct=0x0217 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000 usbd: Found action 'Printer' for HP LaserJet 2200, HewLett Packard usbd: Executing '/usr/bin/uprinter ${DEVNAME}' usbd.conf has the following added: # The entry below starts moused when a mouse is plugged in. Moused # stops automatically (actually it bombs :) when the device disappears. # device "Printer" class 0x0000 attach "/usr/bin/uprinter ${DEVNAME}" Note: /usr/bin/uprinter is just: #!/bin/sh echo "$0" "$@" >/tmp/log printenv >>/tmp/log exit 0 and we get in /tmp/log: /usr/bin/uprinter ugen0 DEVNAME=ugen0 ----- Basically, it appears that the ulpt driver is either not being called during the probing, or it is not detecting the HP printer. This is, as they say, VERY odd. However, /dev/ugen0.1 is attached to the printer, and you can write data to it. I am totally baffled. >Fix: I sure would like to know... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message