NetBSD Problem Report #16478

Received: (qmail 26262 invoked from network); 24 Apr 2002 13:33:30 -0000
Message-Id: <20020424133311.302FD110583@hermit.home.cs.tu-berlin.de>
Date: Wed, 24 Apr 2002 15:33:11 +0200 (CEST)
From: Bjoern.Labitzke@t-online.de
Reply-To: hermit@cs.tu-berlin.de
To: gnats-bugs@gnats.netbsd.org
Subject: USB-printer can not print because of device problems
X-Send-Pr-Version: 3.95

>Number:         16478
>Category:       kern
>Synopsis:       USB-printer can not print because of device problems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 24 13:34:00 +0000 2002
>Closed-Date:    Sat Jan 19 17:17:32 +0000 2008
>Last-Modified:  Sat Jan 19 17:17:32 +0000 2008
>Originator:     Bjoern Labitzke
>Release:        NetBSD 1.5ZC -current from April 23rd 2002
>Organization:
Bjoern Labitzke  <hermit@cs.tu-berlin.de>
   Use GPG! (Don't you use envelopes for your letters?)
>Environment:


System: NetBSD hermit.home.cs.tu-berlin.de 1.5ZC NetBSD 1.5ZC (LABITZKE) #827: Tue Apr 23 03:03:20 CEST 2002 hermit@hermit.home.cs.tu-berlin.de:/usr/local/junk/build1/kernels/LABITZKE i386
Architecture: i386
Machine: i386
>Description:
I tried to print something from ghostscript to ulpt0 and got errors.
As the same document prints fine on lpt0 and lpa0 and USB reports
problems, I think the problem lies there. After using "usbdebug 5" I
got the following outputs on the console:

After switching on the printer:
ulpt0 at uhub0 port 2 configuration 1 interface 0
ulpt0: Brother Industries HL-1050 laser printer, rev 1.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode

Then I tried to print. But it failed while spewing out the following:
usb_needs_explore
usb_event_thread: woke up
usb_discover
uhub_disconnect: up=0xc060c5c0 dev=0xc07afd80 port=2
usb_disconnect_port: disconnect subdevs
ulpt0: at uhub0 port 2 (addr 2) disconnected
usb_detach_wait: waiting for ulpt0
usb_detach_wakeup: for ulpt0
usb_detach_wait: ulpt0 done
ulpt0 detached
usbd_ar_pipe: pipe=0xc07d1700
usb_needs_explore
usb_event_thread: woke up
usb_discover
usb_needs_explore
usb_event_thread: woke up
usb_discover
usbd_reset_port: port 2 reset done, error=NORMAL_COMPLETION
usbd_new_device bus=0xc064c000 port=2 depth=1 speed=2
usbd_setup_pipe: dev=0xc083d580 iface=0x0 ep=0xc083d5a4 pipe=0xc083d584
usbd_get_desc: type=1, index=0, len=8
usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, protocol=0, maxpacket=8, len=18, speed=2
usbd_get_device_desc:
usbd_get_desc: type=1, index=0, len=18
usbd_new_device: new dev (addr 2), dev=0xc083d580, parent=0xc0640440
usbd_probe_and_attach: trying device specific drivers
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_probe_and_attach: trying config idx=0
usbd_get_config_desc: confidx=0
usbd_get_desc: type=2, index=0, len=9
usbd_get_desc: type=2, index=0, len=32
usbd_set_config_index: (addr 1) cno=2 attr=0x40, selfpowered=1, power=0
usbd_set_config_index: set config 1
usbd_fill_iface_data: ifaceidx=0 altidx=0
usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=2
usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=4
usbd_fill_iface_data: found idesc nendpt=2
usbd_fill_iface_data: bad descriptor(s): 0 length
uhub0: port 2, set config at addr 2 failed, error=INVAL
usbd_remove_device: 0xc083d580
usbd_ar_pipe: pipe=0xc07beb00
uhub_explore: usb_new_device failed, error=INVAL
uhub0: device problem, disabling port 2


(At least I get those errors instead of panicing the kernel, which
happened a few months ago regularly. In the mean time I used lpt0 and
forgot about the problem.)

>How-To-Repeat:
Use a Brother HL-1050 with a -current i386 system and try to print.

>Fix:
No idea.

>Release-Note:
>Audit-Trail:

From: Lennart Augustsson <lennart@augustsson.net>
To: hermit@cs.tu-berlin.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/16478: USB-printer can not print because of device problems
Date: Wed, 24 Apr 2002 19:11:53 +0200

 Could you run usbctl (from the usbutils package) on the device and mail
 me the output?

     -- Lennart

 Bjoern.Labitzke@t-online.de wrote:

 > >Number:         16478
 > >Category:       kern
 > >Synopsis:       USB-printer can not print because of device problems
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Wed Apr 24 06:34:00 PDT 2002
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Bjoern Labitzke
 > >Release:        NetBSD 1.5ZC -current from April 23rd 2002
 > >Organization:
 > Bjoern Labitzke  <hermit@cs.tu-berlin.de>
 >    Use GPG! (Don't you use envelopes for your letters?)
 > >Environment:
 >
 >
 > System: NetBSD hermit.home.cs.tu-berlin.de 1.5ZC NetBSD 1.5ZC (LABITZKE) #827: Tue Apr 23 03:03:20 CEST 2002 hermit@hermit.home.cs.tu-berlin.de:/usr/local/junk/build1/kernels/LABITZKE i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > I tried to print something from ghostscript to ulpt0 and got errors.
 > As the same document prints fine on lpt0 and lpa0 and USB reports
 > problems, I think the problem lies there. After using "usbdebug 5" I
 > got the following outputs on the console:
 >
 > After switching on the printer:
 > ulpt0 at uhub0 port 2 configuration 1 interface 0
 > ulpt0: Brother Industries HL-1050 laser printer, rev 1.00/1.00, addr 2, iclass 7/1
 > ulpt0: using bi-directional mode
 >
 > Then I tried to print. But it failed while spewing out the following:
 > usb_needs_explore
 > usb_event_thread: woke up
 > usb_discover
 > uhub_disconnect: up=0xc060c5c0 dev=0xc07afd80 port=2
 > usb_disconnect_port: disconnect subdevs
 > ulpt0: at uhub0 port 2 (addr 2) disconnected
 > usb_detach_wait: waiting for ulpt0
 > usb_detach_wakeup: for ulpt0
 > usb_detach_wait: ulpt0 done
 > ulpt0 detached
 > usbd_ar_pipe: pipe=0xc07d1700
 > usb_needs_explore
 > usb_event_thread: woke up
 > usb_discover
 > usb_needs_explore
 > usb_event_thread: woke up
 > usb_discover
 > usbd_reset_port: port 2 reset done, error=NORMAL_COMPLETION
 > usbd_new_device bus=0xc064c000 port=2 depth=1 speed=2
 > usbd_setup_pipe: dev=0xc083d580 iface=0x0 ep=0xc083d5a4 pipe=0xc083d584
 > usbd_get_desc: type=1, index=0, len=8
 > usbd_new_device: adding unit addr=2, rev=100, class=0, subclass=0, protocol=0, maxpacket=8, len=18, speed=2
 > usbd_get_device_desc:
 > usbd_get_desc: type=1, index=0, len=18
 > usbd_new_device: new dev (addr 2), dev=0xc083d580, parent=0xc0640440
 > usbd_probe_and_attach: trying device specific drivers
 > usbd_probe_and_attach: no device specific driver found
 > usbd_probe_and_attach: looping over 1 configurations
 > usbd_probe_and_attach: trying config idx=0
 > usbd_get_config_desc: confidx=0
 > usbd_get_desc: type=2, index=0, len=9
 > usbd_get_desc: type=2, index=0, len=32
 > usbd_set_config_index: (addr 1) cno=2 attr=0x40, selfpowered=1, power=0
 > usbd_set_config_index: set config 1
 > usbd_fill_iface_data: ifaceidx=0 altidx=0
 > usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=2
 > usbd_find_idesc: idx=0(-1) altidx=0(0) len=9 type=4
 > usbd_fill_iface_data: found idesc nendpt=2
 > usbd_fill_iface_data: bad descriptor(s): 0 length
 > uhub0: port 2, set config at addr 2 failed, error=INVAL
 > usbd_remove_device: 0xc083d580
 > usbd_ar_pipe: pipe=0xc07beb00
 > uhub_explore: usb_new_device failed, error=INVAL
 > uhub0: device problem, disabling port 2
 >
 > (At least I get those errors instead of panicing the kernel, which
 > happened a few months ago regularly. In the mean time I used lpt0 and
 > forgot about the problem.)
 >
 > >How-To-Repeat:
 > Use a Brother HL-1050 with a -current i386 system and try to print.
 >
 > >Fix:
 > No idea.
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 >


From: Bjoern.Labitzke@t-online.de (Bjoern Labitzke)
To: lennart@augustsson.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/16478: USB-printer can not print because of device problems
Date: Sun, 28 Apr 2002 14:21:00 +0200

 Hello Lennart!

 I just tried to use the appropriate ulpn entry and now I can print. I
 didn't know that that exists. You have to judge if the described
 behaviour is still a problem that should be fixed or if the printer is
 to blame.

 BTW: I stumbled about your email by chance. I queried the GNATS
 database, because I thought about closing the PR. I never received it
 via email, though the address you used is correct!

 And there is no output from usbctl. The printer resets and the error 
     usbctl: /dev/ulpt0: Device not configured
 is printed.

 Thanks for your efforts...

 Bjoern

 -- 
 Bjoern Labitzke  <hermit@cs.tu-berlin.de>
    Use GPG! (Don't you use envelopes for your letters?)
Responsible-Changed-From-To: kern-bug-people->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Sat Jun 26 20:25:42 UTC 2004 
Responsible-Changed-Why:  
. 
State-Changed-From-To: open->feedback 
State-Changed-By: mycroft 
State-Changed-When: Sat Jul 3 19:38:20 UTC 2004 
State-Changed-Why:  
Should be fixed in ulpt.c 1.64. 
Responsible-Changed-From-To: mycroft->kern-bug-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sun, 03 Sep 2006 01:13:49 +0000
Responsible-Changed-Why:
Back to role account, mycroft doesn't have commit access any longer.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@narn.netbsd.org
State-Changed-When: Sat, 19 Jan 2008 17:17:32 +0000
State-Changed-Why:
Feedback timeout.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.