So i was trying to setup my scanner(HP scanjet 5300c usb) with debian
sarge kernel 2.6.8-2-386. I did googling and edited avision.conf file
in /etc/sane.d and execute sane-find-scanner as root. It detects it.
But when i scanimage -L or xsane at command line(also as root) scanner
can't be found. <br>
<br>
mutuski:~#sane-find-scanner<br>
found USB scanner (vendor=0x03f0, product=0x0701) at libusb:001:002<br>
&nbsp; # Your USB scanner was (probably) detected. It may or may not be supported by<br>
&nbsp; # SANE. Try scanimage -L and read the backend's manpage.<br>
<br>
&nbsp; # Not checking for parallel port scanners.<br>
&nbsp; # Most Scanners connected to the parallel port or other proprietary ports<br>
&nbsp; # can't be detected by this program.<br>
<br>
mutuski:~#scanimage -L<br>
No scanners were identified. If you were expecting something different,<br>
check that the scanner is plugged in, turned on and detected by the<br>
sane-find-scanner tool (if appropriate). Please read the documentation<br>
which came with this software (README, FAQ, manpages).<br>
<br>
Then I did:<br>
mutuski:~# export SANE_DEBUG_AVISION=255<br>
mutuski:~#scanimage -L<br>
[sanei_debug] Setting debug level of avision to 255.<br>
[avision] sane_init: parsing config line &quot;&quot;<br>
[avision] sane_init: config file line 1: ignoring empty line<br>
[avision] sane_init: parsing config line &quot;# This are the possible options. Normally any scanner&quot;<br>
[avision] sane_init: config file line 2: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;# should work just fine without them - and they are only&quot;<br>
[avision] sane_init: config file line 3: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;# needed for test and debugging. So if you experience problems&quot;<br>
[avision] sane_init: config file line 4: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;# and you solve them with enabling options here, please notify&quot;<br>
[avision] sane_init: config file line 5: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;# the SANE/Avision maintainer.&quot;<br>
[avision] sane_init: config file line 6: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;&quot;<br>
[avision] sane_init: config file line 7: ignoring empty line<br>
[avision] sane_init: parsing config line &quot;#option disable-gamma-table&quot;<br>
[avision] sane_init: config file line 8: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;#option disable-calibration&quot;<br>
[avision] sane_init: config file line 9: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;#option old-calibration&quot;<br>
[avision] sane_init: config file line 10: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;#option one-calib-only&quot;<br>
[avision] sane_init: config file line 11: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;#option force-a4&quot;<br>
[avision] sane_init: config file line 12: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;#option disable-c5-guard&quot;<br>
[avision] sane_init: config file line 13: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;&quot;<br>
[avision] sane_init: config file line 14: ignoring empty line<br>
[avision] sane_init: parsing config line &quot;scsi AVISION&quot;<br>
[avision] sane_init: config file line 15: trying to attach SCSI: scsi
AVISION'[avision] sane_init: parsing config line &quot;scsi FCPA&quot;<br>
[avision] sane_init: config file line 16: trying to attach SCSI: scsi FCPA'<br>
[avision] sane_init: parsing config line &quot;scsi MINOLTA&quot;<br>
[avision] sane_init: config file line 17: trying to attach SCSI: scsi
MINOLTA'[avision] sane_init: parsing config line &quot;scsi MITSBISH
MCA-S600C&quot;<br>
[avision] sane_init: config file line 18: trying to attach SCSI: scsi MITSBISH MCA-S600C'<br>
[avision] sane_init: parsing config line &quot;scsi MITSBISH MCA-SS600&quot;<br>
[avision] sane_init: config file line 19: trying to attach SCSI: scsi MITSBISH MCA-SS600'<br>
[avision] sane_init: parsing config line &quot;scsi HP&quot;<br>
[avision] sane_init: config file line 20: trying to attach SCSI: scsi HP'<br>
[avision] sane_init: parsing config line &quot;scsi hp&quot;<br>
[avision] sane_init: config file line 21: trying to attach SCSI: scsi hp'<br>
[avision] sane_init: parsing config line &quot;&quot;<br>
[avision] sane_init: config file line 22: ignoring empty line<br>
[avision] sane_init: parsing config line &quot;#scsi /dev/scanner&quot;<br>
[avision] sane_init: config file line 23: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;usb libusb:001:002&quot;<br>
[avision] sane_init: config file line 24: trying to attach USB:`usb libusb:001:002'<br>
[avision] sane_init: parsing config line &quot;#usb 0x03f0 0x0701&quot;<br>
[avision] sane_init: config file line 25: ignoring comment line<br>
[avision] sane_init: parsing config line &quot;&quot;<br>
[avision] sane_init: config file line 26: ignoring empty line<br>
[avision] sane_init: Trying to find USB device 638 a24 ...<br>
[avision] sane_init: Trying to find USB device 638 a23 ...<br>
[avision] sane_init: Trying to find USB device 638 a18 ...<br>
[avision] sane_init: Trying to find USB device 638 a16 ...<br>
[avision] sane_init: Trying to find USB device 638 a13 ...<br>
[avision] sane_init: Trying to find USB device 638 a18 ...<br>
[avision] sane_init: Trying to find USB device 638 a16 ...<br>
[avision] sane_init: Trying to find USB device 3f0 701 ...<br>
[avision] attach: (Version: 1.0 Build: 99)<br>
[avision] attach: opening libusb:001:002<br>
[avision] attach: open failed (Invalid argument)<br>
[avision] sane_init: Trying to find USB device 3f0 701 ...<br>
[avision] attach: (Version: 1.0 Build: 99)<br>
[avision] attach: opening libusb:001:002<br>
[avision] attach: open failed (Invalid argument)<br>
[avision] sane_init: Trying to find USB device 3f0 801 ...<br>
[avision] sane_init: Trying to find USB device 3f0 b01 ...<br>
[avision] sane_init: Trying to find USB device 638 26a ...<br>
[avision] sane_init: Trying to find USB device 686 4004 ...<br>
[avision] sane_init: Trying to find USB device 638 268 ...<br>
[avision] sane_get_devices:<br>
<br>
No scanners were identified. If you were expecting something different,<br>
check that the scanner is plugged in, turned on and detected by the<br>
sane-find-scanner tool (if appropriate). Please read the documentation<br>
which came with this software (README, FAQ, manpages).<br>
[avision] sane_exit:<br>
<br>
<br>
Hmmmm....why is it unable to open libusb:001:002? Does anyone why it is
acting strange? For information the output of some commands are given
below:<br>
<br>
mutuski:~#lsusb<br>
Bus 005 Device 001: ID 0000:0000<br>
Bus 004 Device 001: ID 0000:0000<br>
Bus 003 Device 001: ID 0000:0000<br>
Bus 002 Device 001: ID 0000:0000<br>
Bus 001 Device 002: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c<br>
Bus 001 Device 001: ID 0000:0000<br>
<br>
mutuski:~#cat /proc/bus/usb/devices<br>
T:&nbsp; Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=&nbsp; 2 Spd=12&nbsp; MxCh= 0<br>
D:&nbsp; Ver= 1.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=&nbsp; 1<br>
P:&nbsp; Vendor=03f0 ProdID=0701 Rev= 0.01<br>
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA<br>
I:&nbsp; If#= 0 Alt= 0 #EPs= 3 Cls=00(&gt;ifc ) Sub=00 Prot=00 Driver=(none)<br>
E:&nbsp; Ad=01(O) Atr=02(Bulk) MxPS=&nbsp;&nbsp; 8 Ivl=0ms<br>
E:&nbsp; Ad=82(I) Atr=03(Int.) MxPS=&nbsp;&nbsp; 8 Ivl=10ms<br>
E:&nbsp; Ad=83(I) Atr=02(Bulk) MxPS=&nbsp; 64 Ivl=0ms<br>
<br>
I'm using libsane 1.0.15-9 and avision.conf backend. Thanks for your time.<br>
<br>
--Anthony