Thanks, that worked.  Attached is the log.  

If I had been a bit quicker, I could have saved you some work, but I
managed to patch the lib a couple of minutes ago and got it working as
well.  I am going to throw in my patch just in case you find it useful.
If not, no hard feelings :).

Thanks again,
Don

On Sat, 2005-02-05 at 19:13 +0100, Julien BLACHE wrote:
> Don Porter <[EMAIL PROTECTED]> wrote:
> 
> Hi Don,
> 
> > Just this morning I figured out that if I hard-code in either
> > libusb:001:003 or /dev/usbscanner (a symlink to /proc/bus/usb/001/003),
> > it works.  
> 
> Yep.
> 
> > Perhaps I misunderstood the documentation, but I was under the
> > impression that it should be able to use the 'usb <Vendor> <Device>'
> > syntax and automagically discern which usb device to use.
> 
> The backend is basically unmaintained and unfinished, so, well, the
> documentation is somewhat more advanced than the code. :)
> 
> Could you try the attached package ? It contains a patched hp4200
> backend that might work.
> 
> MD5SUM:
> 3af02faaa7b2ec8b57fb4ab398a3ff40  libsane-extras_1.0.15.4_i386.deb
> 
> Please run as root:
>   SANE_DEBUG_HP4200=255 scanimage -L 2> log
> 
> and send the log file.
> 
> If it works, I'll upload this version right away.
> 
> > Thanks again for your time,
> 
> You're welcome :)
> 
> JB.
> 
[sanei_debug] Setting debug level of hp4200 to 255.
[hp4200] sane_hp4200_init
[hp4200] sane_hp4200_init: looking for devices with vendor = 0x03f0 product = 
0x0105
[hp4200] attach
[hp4200] add_device(libusb:001:003)
[hp4200] find_device
[hp4200] sane_get_devices (0xbfffcb18, 0)
[hp4200] sane_get_devices: exit
[hp4200] sane_hp4200_exit
[hp4200] sane_exit: exit
--- hp4200.c.orig	2005-02-05 11:57:13.000000000 -0600
+++ hp4200.c	2005-02-05 12:14:53.000000000 -0600
@@ -71,7 +71,7 @@
 
 #include "hp4200_lm9830.c"
 
-#define HP4200_CONFIG_FILE "HP4200.conf"
+#define HP4200_CONFIG_FILE "hp4200.conf"
 
 #define DEFAULT_DEVICE "/dev/usb/scanner0"
 
@@ -2323,7 +2323,11 @@
 			if (!len)
 				continue;		/* ignore empty lines */
 
-			sanei_config_attach_matching_devices (dev_name, attach);
+			if(strncmp (dev_name, "usb", 3) == 0){
+			  sanei_usb_attach_matching_devices (dev_name, attach);
+			} else {
+			  sanei_config_attach_matching_devices (dev_name, attach);
+			}
 		}
 
 		fclose (fp);

Reply via email to