From owner-freebsd-usb@FreeBSD.ORG Mon Mar 9 13:02:11 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 468CA10656C1; Mon, 9 Mar 2009 13:02:11 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 4E20A8FC1D; Mon, 9 Mar 2009 13:02:10 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=8kQB0OdkAAAA:8 a=xll7L2ZOAAAA:8 a=6I5d2MoRAAAA:8 a=wuJmI64MVVcqUQyr4AoA:9 a=zOHZ3qYl7LokAK99cy0A:7 a=uSw5tXOs2HivGFnoxOeoo7pPn3AA:4 a=LY0hPdMaydYA:10 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1037915142; Mon, 09 Mar 2009 14:02:08 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Mon, 9 Mar 2009 14:04:34 +0100 User-Agent: KMail/1.9.7 References: <20090308.154353.-1350498283.imp@bsdimp.com> <200903091233.55089.hselasky@c2i.net> <20090309.065558.-432839106.imp@bsdimp.com> In-Reply-To: <20090309.065558.-432839106.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903091404.34912.hselasky@c2i.net> Cc: usb@freebsd.org, thompsa@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Latest kernel breaks scanner 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: Mon, 09 Mar 2009 13:02:11 -0000 On Monday 09 March 2009, M. Warner Losh wrote: > In message: <200903091233.55089.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Sunday 08 March 2009, Andrew Thompson wrote: > : > On Sun, Mar 08, 2009 at 03:43:53PM -0600, M. Warner Losh wrote: > : > > In message: <20090308203157.GC30672@citylink.fud.org.nz> > : > > > : > > Andrew Thompson writes: > : > > : On Sun, Mar 08, 2009 at 01:06:59PM -0600, M. Warner Losh wrote: > : > > : > Sigh. Had a working system from Mar 4th. Upgraded now it > : > > : > doesn't work. Scanner not found by xsane. > : > > : > : > > : Are you sure its not this? > : > > : > : > > : 20090227: > : > > : The /dev handling for the new USB stack has changed, a > : > > : buildworld/installworld is required for libusb20. > : > > > : > > Yes. Been there, done that. Also have the libmap.conf changes in > : > > place for old binaries that had worked for months before that. xsane > : > > used to just work in this setup, but now fails. Looks like some kind > : > > of mismatch in the ABI: > : > > > : > > found USB scanner (UNKNOWN vendor and product) at device > : > > /dev/uscanner0 > : > > : > Not sure what would have caused that. Before you spend too much time on > : > this you may want to note that the integration patches for libusb into > : > the ports build will likely be committed tomorrow. This will bump the > : > port numbers so the affected ports rebuild, hopefully sane with DTRT > : > after that. > : > : Maybe you need to chown or rm /dev/uscanner0 to enforce use of libusb > : backend? > > never had to do that before... Or recompile all of the sane backends. Probably an IOCTL on the uscanner0 is broken, and the fallback to libusb backend will maybe solve your problem temporarily if you rm /dev/uscanner0 . Actually that is another question: Should we remove ID's from uscanner.c which will work fine attaching through the libusb backend ? --HPS