Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 15:20:52 -0800 (PST)
From:      papowell@astart.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        papowell@h110.private
Subject:   kern/33074: USB printer support does not detect printers
Message-ID:  <200112212320.fBLNKqi73181@h110.private>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112212320.fBLNKqi73181>