Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2008 18:16:11 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-current@freebsd.org
Cc:        Stefan Ehmann <shoesoft@gmx.net>
Subject:   Re: usb2: scanner no longer working
Message-ID:  <200811071816.11704.hselasky@c2i.net>
In-Reply-To: <200811071743.40319.shoesoft@gmx.net>
References:  <200811071134.42761.shoesoft@gmx.net> <200811071702.48123.hselasky@c2i.net> <200811071743.40319.shoesoft@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Canon> 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: <CanoScan Canon> 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
>

Hi,

If usbconfig does not list your device, then it is no longer present in the 
system.

Are you running USB2 on a 64-bit architecture?

Try again having HUB debugging turned on.

sysctl hw.usb2.uhub.debug=15

I suspect that your device:

a) had firmware loaded and the scanner driver called the device reset 
function, which is a little different than on linux.

b) USB firmware crashed. Maybe your device needs a quirk?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811071816.11704.hselasky>