From owner-freebsd-current@FreeBSD.ORG Fri Jul 3 15:57:23 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC4AB1065670 for ; Fri, 3 Jul 2009 15:57:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF038FC18 for ; Fri, 3 Jul 2009 15:57:22 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=BQeo18V-fugA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=LW_lHvPeHecOIxRYOa0A:9 a=d9WZKUr1I55NipgeVG8A:7 a=ab8BiIIzGlbPuIFN5SX9rBnwrqYA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 529420021; Fri, 03 Jul 2009 17:57:20 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 3 Jul 2009 17:56:54 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090703172600.1971111e@baby-jane.lamaiziere.net> In-Reply-To: <20090703172600.1971111e@baby-jane.lamaiziere.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907031756.55253.hselasky@c2i.net> Cc: Patrick Lamaiziere Subject: Re: ulpt problem (USB_ERR_IOERROR) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 15:57:23 -0000 On Friday 03 July 2009 17:26:00 Patrick Lamaiziere wrote: > Hello, > > [Yesterday CURRENT/i386] > > I've got some troubles with unlpt, most of the time I can't print and I > must stop cupsd, kill -9 the process usb, and unplug the USB printer. > Then it works again for some time (but mostly one time). > > The printer is a Brother HL-1430 (working fine under FreeBSD since > FreeBSD 4.X) > > ulpt0: addr 2> on usbus0 > ulpt_attach:562: setting alternate config number: 0 > ulpt0: using bi-directional mode > > With hw.usb.ulpt.debug=1, I've got a lot of: > > ulpt_write_callback:204: state=0x0 actlen=0 > ulpt_status_callback:328: error=USB_ERR_IOERROR > last message repeated 31 times > last message repeated 78 times > ... > > When it works: > ulpt_write_callback:220: state=0x0 actlen=0 > ulpt_write_callback:220: state=0x1 actlen=2889 > ulpt_write_callback:220: state=0x1 actlen=3023 > ... Hi, Have you tried: usbconfig -u XXX -a YYY reset Does it help? To me it looks like a problem about your printer USB firmware. Does it respond to: usbconfig -u XXX -a YYY dump_curr_config_desc After the first print job? XXX and YYY are the numbers after the "ugen" in dmesg. --HPS