From papowell@astart.com  Fri Dec 21 15:20:54 2001
Return-Path: <papowell@astart.com>
Received: from astart2.astart.com (tcubed-gw.customer.nethere.net [216.188.53.211])
	by hub.freebsd.org (Postfix) with ESMTP id 85A5037B417
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: USB printer support does not detect printers
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         33074
>Category:       kern
>Synopsis:       USB printer support does not detect printers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 21 15:30:01 PST 2001
>Closed-Date:    Fri Nov 05 01:38:26 GMT 2004
>Last-Modified:  Fri Nov 05 01:38:26 GMT 2004
>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:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Jan 9 02:54:17 PST 2002 
Responsible-Changed-Why:  
Joseph, this area is of interest to you, no? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33074 
State-Changed-From-To: open->feedback 
State-Changed-By: joe 
State-Changed-When: Wed Nov 13 12:10:46 PST 2002 
State-Changed-Why:  
A lot has changed in the usb stack since this report.  Can 
you confirm whether the problem still exists please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33074 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Fri Nov 5 01:34:56 GMT 2004 
State-Changed-Why:  

Feedback timed out. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33074 
>Unformatted:
