[sane-devel] USB Scanner problem

Cory Foy usergroup@cornetdesign.com
Mon, 12 Jul 2004 22:10:12 -0500


Hello,

I have been working to get my Canon LIDE 30 scanner working under Gentoo 
with a 2.6 kernel. I've installed Sane (and Xsane). My dll.conf has only 
"plustek" not commented out, and my plustek.conf file looks like:

[usb] 0x04a9 0x220e
device /dev/usbscanner

However, when I do a sane-find-scanner it shows no scanners available 
(tried as both a user and as root).

Another interesting point on my system is that /dev/usbscanner, 
/dev/scanner, /dev/usb/scanner0, etc are all not in /dev. /dev/usb is 
available and only contains an empty hid directory.

I began to think that USB wasn't enabled. But looking at 
/proc/bus/usb/devices I get:

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.5-gentoo-r1 uhci_hcd
S:  Product=VIA Technologies, Inc. USB (#2)
S:  SerialNumber=0000:00:07.3
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=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.5-gentoo-r1 uhci_hcd
S:  Product=VIA Technologies, Inc. USB
S:  SerialNumber=0000:00:07.2
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#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=047d ProdID=5003 Rev=20.50
S:  Manufacturer=KTG
S:  Product=VideoCAM
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 256 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 2 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 384 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 3 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 4 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 640 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 5 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 768 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 6 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS= 896 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 7 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS=1024 Ivl=1ms
E:  Ad=82(I) Atr=01(Isoc) MxPS=  64 Ivl=1ms
I:  If#= 0 Alt= 8 #EPs= 0 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=04a9 ProdID=220e Rev= 1.00
S:  Manufacturer=Canon
S:  Product=CanoScan
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=16ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms


(The Canon is what I am working with. Haven't gotten the VideoCAM to 
work either).

Running modprobe scanner with the version and product, or insmod scanner 
both fail because they can't find the module scanner. (Same goes for 
modprobe usbscanner).

My lsmod output looks like:

Module                  Size  Used by
ohci_hcd               16644  0
ne2k_pci                7776  0
8390                    8064  1 ne2k_pci
snd_emu10k1            80520  1
snd_util_mem            3328  1 snd_emu10k1
snd_hwdep               7200  1 snd_emu10k1
snd_via82xx            21280  0
snd_ac97_codec         63492  2 snd_emu10k1,snd_via82xx
gameport                3712  1 snd_via82xx
snd_mpu401_uart         5760  1 snd_via82xx
snd_rawmidi            19520  2 snd_emu10k1,snd_mpu401_uart
uhci_hcd               28048  0
parport_pc             26432  0
parport                33224  1 parport_pc
via_agp                 5760  1
agpgart                27432  1 via_agp
snd_pcm_oss            48424  0
snd_pcm                80164  3 snd_emu10k1,snd_via82xx,snd_pcm_oss
snd_page_alloc          9224  3 snd_emu10k1,snd_via82xx,snd_pcm
snd_mixer_oss          16384  2 snd_pcm_oss
snd_seq_oss            30976  0
snd_seq_midi_event      6144  1 snd_seq_oss
snd_seq                48272  4 snd_seq_oss,snd_seq_midi_event
snd_timer              20484  2 snd_pcm,snd_seq
snd_seq_device          6664  4 snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd                    46564  15 
snd_emu10k1,snd_util_mem,snd_hwdep,snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_timer,snd_seq_device
sbp2                   20872  0
ohci1394               29828  0
ieee1394               88756  2 sbp2,ohci1394
usb_storage            25856  0
hid                    30528  0
ehci_hcd               23428  0
usbcore                86236  7 ohci_hcd,uhci_hcd,usb_storage,hid,ehci_hcd


I am at a complete loss of where to head from there. By all accounts 
this should have been a fairly straightforward process, but hasn't been. 
  The closest thing I've found is this thread:

http://www.epkowa.co.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Code=30

But it didn't seem to fit because I can see my device in /proc.

Any thoughts? Thanks in advance for your advice.

Cory