From owner-freebsd-current@FreeBSD.ORG Fri Nov 7 17:36:09 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 A6FCD1065670 for ; Fri, 7 Nov 2008 17:36:09 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 140108FC13 for ; Fri, 7 Nov 2008 17:36:08 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d6BVkb5LuPPVEe4iNQMLyA==:17 a=6I5d2MoRAAAA:8 a=hBUDUTInW-7mcqYz1wMA:9 a=rrQi3QKMImGYr2OLA0cA:7 a=YRNvfTtgC3nBeURXG95rdufhs3MA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.113.135.6] (account mc467741@c2i.net [62.113.135.6] verified) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 754286854; Fri, 07 Nov 2008 18:36:06 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 7 Nov 2008 18:38:15 +0100 User-Agent: KMail/1.9.7 References: <200811071134.42761.shoesoft@gmx.net> <200811071702.48123.hselasky@c2i.net> <200811071743.40319.shoesoft@gmx.net> In-Reply-To: <200811071743.40319.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811071838.16493.hselasky@c2i.net> Cc: Stefan Ehmann 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: Fri, 07 Nov 2008 17:36:09 -0000 On Friday 07 November 2008, Stefan Ehmann wrote: > On Friday 07 November 2008 17:02:47 Hans Petter Selasky wrote: > > On Friday 07 November 2008, Stefan Ehmann wrote: > > > I recompiled sane-backends and linked it against libusb20. The include > > > path needed to be fixed. > > > > > > scanimage -L doesn't detect any scanners. > > > > > > sane-find-scanner correctly detects it on first run: > > > found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan], > > > chip=GL842) at libusb:/dev/usb:/dev/ugen3.2 > > > > > > on subsequent runs no scanners are found > > > > > > dmesg only says > > > ugen3.2: at usbus3 > > > > > > no ugen detached message even if I unplug the scanner > > > > > > I tried some of the debugging sysctls but I couldn't spot anything > > > useful. > > > > > > ugen seems to work in general as I could access my camera with > > > libgphoto2. > > > > > > Will provide more info as needed. > > > > Hi Stefan, > > > > Which version/date is the libusb20 you are using? > > The one commited to current. > > > Does usbconfig list your device? > > After I plug it in: > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > After I run scanimage or sane-find-scanner it silently disappears and > usbconfig no longer lists it. > > > Try changing ownership of the USB devices? Maybe it is a permissions > > problem. > > > > usbconfig -u xx -a xx set_owner xx:yy > > I tried to run as root, so this shouldn't be the problem. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Hi, Could you dump the current config descriptor of your scanner? usbconfig -u 3 -a 2 dump_curr_config_desc It can also be a set-config issue. --HPS