[sane-devel] Timeouts with UHCI and gt68xx based scanners in sane-backends 1.0.12

Henning Meier-Geinitz henning at meier-geinitz.de
Thu Jun 5 11:25:44 BST 2003


Hi,

Some people reported kernel USB timeouts with their gt68xx based
scanners, e.g. Plustek 1247 or Mustek BearPaw series. This seems to be
caused by the check if the firmware is already loaded in the gt68xx
backend. I've disabled this check for now.

If you encounter this problem, get the latest backend (at least
1.0-47) or an unofficial snapshot from
http://www.meier-geinitz.de/sane/gt68xx-backend/ .

I'll attach a patch against 1.0.12 that contains the work-around.

Bye,
  Henning

Index: backend/gt68xx.c
===================================================================
RCS file: /cvsroot/external/sane/sane-backends/backend/gt68xx.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -u -r1.20 -r1.21
--- backend/gt68xx.c	27 Apr 2003 12:43:43 -0000	1.20
+++ backend/gt68xx.c	5 Jun 2003 09:58:45 -0000	1.21
@@ -48,7 +48,7 @@
 
 #include "../include/sane/config.h"
 
-#define BUILD 46
+#define BUILD 47
 #define MAX_DEBUG
 #define WARMUP_TIME 30
 #define CALIBRATION_HEIGHT 2.5
@@ -1245,12 +1245,13 @@
       DBG (0, "         details as possible, e.g. the exact name of your\n");
       DBG (0, "         scanner and what does (not) work.\n");
     }
-  RIE (gt68xx_device_check_firmware (dev, &firmware_loaded));
+  /*  RIE (gt68xx_device_check_firmware (dev, &firmware_loaded));*/
+  firmware_loaded = SANE_FALSE;
   if (firmware_loaded)
     DBG (3, "sane_open: firmware already loaded, skipping load\n");
   else
     RIE (download_firmware_file (dev));
-  RIE (gt68xx_device_check_firmware (dev, &firmware_loaded));
+  /*  RIE (gt68xx_device_check_firmware (dev, &firmware_loaded));*/
   if (!firmware_loaded)
     {
       DBG (1, "sane_open: firmware still not loaded? Proceeding anyway\n");
  



More information about the sane-devel mailing list