From owner-freebsd-usb@FreeBSD.ORG Sat Mar 14 18:54:57 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A330F106564A for ; Sat, 14 Mar 2009 18:54:57 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 35F818FC0C for ; Sat, 14 Mar 2009 18:54:56 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.38,363,1233529200"; d="scan'208";a="1704827" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 14 Mar 2009 19:54:55 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id 56CB41B07E2; Sat, 14 Mar 2009 19:54:55 +0100 (CET) Date: Sat, 14 Mar 2009 19:54:54 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200903141840.33955.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: problem with usb printer X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 18:54:58 -0000 what do you mean by reset the device? turning it off and on again? nothing! there's no detach notice or attach notice being printed to the console. what actually happens is this: when i try to print a testpage from the cups web interface it says "Processing page 1...". however the print job doesn't get printed. what happens is that a red light on my printer starts flashing telling me that there's an error. if i try to print the testpage another time the whole web interface stops responding. if i run commands like lp or lpq the apps just hang. also running usbconfig lust let's the application hang. if i turn off the printer the console get's flooded with the ulpt_status_callback:328: error=USB_ERR_STALLED message. before flooding the console with those warnings this one get's printed out: ulpt_write_callback:203: state=0x2 if i reboot the system using reboot the flooding stops and the detach info that wasn't output when i unplugged the device get's printed then. i'm not sure at which pint exactly the following warnings are being produced: ulpt_write_callback:203: state=0x0 ulpt_write_callback:203: state=0x1 ulpt_write_callback:203: state=0x1 ulpt_write_callback:203: state=0x2 i'll reboot my machine and check it out. i tried hitting ctrl+alt+esc. unfortunately i'm not able to use my keyboard anymore after entering the debugger. :( cheers. Hans Petter Selasky schrieb am 2009-03-14: > On Saturday 14 March 2009, Alexander Best wrote: > > hi there. > > i'm having a problem with my usb printer. it's being recognised as > > ulpt0, > > but i cannot print. i'm using the cups port for printing. i've set > > hw.usb2.ulpt.debug=15 and this is the output: > > uhub_reattach_port:348: port 2 reset failed, error=USB_ERR_TIMEOUT > > uhub_reattach_port:434: device problem (USB_ERR_TIMEOUT), disabling > > port 2 > > ugen0.3: at usbus0 > > ulpt_probe:472: > > ulpt_attach:498: sc=0xc6f6be80 > > ulpt0: > 0/0, rev > > 1.10/1.00, addr 3> on usbus0 > > ulpt_attach:538: setting alternate config number: 0 > > ulpt0: using bi-directional mode > > ulpt_reset:164: > > ulpt_write_callback:203: state=0x0 > > ulpt_write_callback:203: state=0x1 > > ulpt_write_callback:203: state=0x1 > > ulpt_write_callback:203: state=0x2 > > after turning off the device i constantly get this output: > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > ulpt_status_callback:328: error=USB_ERR_STALLED > > the cups daemon cannot be stopped (even with kill -9) and none of > > the lp* > > apps work anymore. also i'm not able to attach any new usb devices. > > so a > > reboot is the only solution that worked in order to get my computer > > fully > > operational again. > What happens if you try to reset the usb device? > Maybe you could press CTRL + ALT + ESC and dump all the threads or at > least > threads having the word "ulpt" in the function names in the > backtrace? > --HPS