[sane-devel] Unable to access minor data

Alexis alexisc at tinyonline.co.uk
Tue Dec 3 20:51:41 GMT 2002


On Tuesday 03 December 2002 8:26 pm, Henning Meier-Geinitz wrote:
> [ I'm cc'ing the list again because this may be of interest for other
> users, too]
did the reply thing - apologies

Please find attached some (slightly edited) output.  I loaded the scanner 
module with the vendor and product id as shown in latest Linux Format mag.  
The scanner is present in /proc/bus/usb/devices but isn't associated with the 
driver - perhaps there is something to modify in the kernel patch?  This is 
now essentially the identical problem I had when I first wrote to the list 
except that an error directly to do with the viceo-backend cropped up as 
well.  Hope this gets us a bit closer.
Tia, Alexis
>
> On Tue, Dec 03, 2002 at 08:15:13PM +0000, Alexis wrote:
> > > It's not a problem of SANE but of the kernel scanner driver.
> >
> > Okay I have recompiled the kernel so that both usb support and scanner
> > support are both modules (this approach fixed a sound problem once), and
> > sane-find-scanner now gives me the
> > checking /somedevice/ failed to open (invalid argument)
> > error that I have had in the past, so it is able to find the device
> > files, just not the scanner...
>
> So it still doesn't find the scanner. What about the other things I
> told you? I mean loading the scanner module with options and looking
> at /proc/bus/devices?
>
> > Just tried scanimage -L.  It gets as far as ScLoader okay now, and then
> > segfaults.
> >
> > Is this still a kernel problem, or something else?
>
> I'm not a viceo expert but I'm pretty sure that you won't have success
> until sane-find-scanner lists your scanner. That's because if it's not
> found by sane-find-scanner it's usually not found by the kernel either
> and so xan't be used by the viceo backend.
>
> Bye,
>   Henning

-- 
Alexis
Registered Linux User 276336.  The Penguin Rocks.
I sometimes CQ #171406154
-------------- next part --------------
bugsy:~# modprobe scanner vendor=0x0461 product=0x360
bugsy:~# cat /proc/bus/usb/devices

Snipped

C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=ff(vend.) Sub=00 Prot=ff MxPS=64 #Cfgs=  1
P:  Vendor=0461 ProdID=0360 Rev= 1.02
S:  Manufacturer=PRIMAX
S:  Product=Colorado USB 19200
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=   1 Ivl=  0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
bugsy:~# scanimage -L-v
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.6 from sane-backends-1.0.9
[dll] add_backend: adding backend `net'

Snipped

[dll] add_backend: adding backend `viceo'
[dll] load: searching backend `viceo' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-viceo.so.1'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-viceo.so.1'
[dll] init: initializing backend `viceo'
[sanei_debug] Setting debug level of viceo to 128.
[viceo] sane_init:
[viceo] sane_init, >usb /dev/usb/scanner0<
[viceo] sane_init, >usb /dev/usb/scanner0<
[viceo] SANE Visioneer/Primax Backend v0.5.0 - 2001-08-30
[viceo] attach(usb /dev/usb/scanner0)
[viceo] attach: opening usb /dev/usb/scanner0
[viceo] ---- ScLoader-----
Segmentation fault


More information about the sane-devel mailing list