From owner-freebsd-current@FreeBSD.ORG Thu Nov 13 15:55:48 2008 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 003CE106567B for ; Thu, 13 Nov 2008 15:55:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 68A9B8FC1C for ; Thu, 13 Nov 2008 15:55:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=aniA1o7mVp4QawOfT9qHqA==:17 a=6I5d2MoRAAAA:8 a=oWt_Cy_Ea0urXib0J18A:9 a=1f0ANpef2Y0D40jBlAXY9fgMFjMA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.1] (account mc467741@c2i.net [62.113.133.1] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 979806268; Thu, 13 Nov 2008 16:55:45 +0100 From: Hans Petter Selasky To: Stefan Ehmann Date: Thu, 13 Nov 2008 16:57:55 +0100 User-Agent: KMail/1.9.7 References: <200811071134.42761.shoesoft@gmx.net> <200811071935.19412.hselasky@c2i.net> <200811130956.30584.shoesoft@gmx.net> In-Reply-To: <200811130956.30584.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131657.56355.hselasky@c2i.net> Cc: freebsd-current@freebsd.org Subject: Re: usb2: scanner no longer working 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: Thu, 13 Nov 2008 15:55:48 -0000 On Thursday 13 November 2008, Stefan Ehmann wrote: > On Friday 07 November 2008 19:35:17 Hans Petter Selasky wrote: > > On Friday 07 November 2008, Stefan Ehmann wrote: > > > On Friday 07 November 2008 18:42:49 Hans Petter Selasky wrote: > > > > On Friday 07 November 2008, Hans Petter Selasky wrote: > > > > > Hi, > > > > > > > > > > Could you dump the current config descriptor of your scanner? > > > > > > > > > > usbconfig -u 3 -a 2 dump_curr_config_desc > > > > > > # usbconfig -u 3 -a 2 dump_curr_config_desc > > > > > > > 3 and 2 are the numbers after ugen, like ugen3.2 > > > > > > To your other mail: > > > I'm running i386. HUB debugging didn't output any obvious errors. > > > > Hi, > > > > Try the following patch to libusb20. I suspect that it is the > > set_configuration call that makes trouble! > > > > http://perforce.freebsd.org/chv.cgi?CH=152628 > > > > Thanks for reporting. > > > > My private SVN repository has also been updated to include this patch if > > you are using that. > > As I previously stated in my other mails. The scanner is now properly > recognized. > > Now I got this problem: > Before scanning starts, the system "locks" for several minutes, i.e. > - input/output to terminals is no longer working > - I can still switch consoles and break into ddb > - CTRL-t on the scanimage console is still working and shows increasing > sys time > > As soon as the actual scanning process starts, everything is fine again. > Sometimes scanning doesn't start at all (or I'm just not patient enough). > > To make debugging a bit more interesting: If I run scanimage with ktrace or > enable usb debugging via sysctl, scanning starts immediately. Don't know if > this is always the case but seemed to work a few times at least. So maybe > it's some kind of timing problem. Strange! Try this before starting your scanimage: sysctl hw.usb2.ugen.debug=15 I guess that the program is looping on a poll-syscall, because I poll on both stdin and the I/O descriptor. This is perhaps another bug in libusb20. --HPS