From 2350fef3ba51a67f09bbd840d262bc2c66d2a86d Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Mon, 18 Sep 2000 18:20:44 +0000 Subject: [PATCH] 2000-09-18 Henning Meier-Geinitz * README: Removed comment about xscanimage error message. Added comment about find-scanner (may find scanners not supported by SANE). * tools/README: Added comment about find-scanner and some lines about sane-desc.el and sane-config. * tools/find-scanner.c: Added comment about scanners not supported by SANE. Removed some warnings. * TODO LEVEL2: Removed xscanimage error comment from TODO and moved ideas for SANE 2.0 from TODO to LEVEL2. --- README | 6 +++++- tools/README | 19 ++++++++++++++++--- tools/find-scanner.c | 13 +++++++++---- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/README b/README index a819a8231..aad9ac971 100644 --- a/README +++ b/README @@ -189,9 +189,13 @@ should produce output similar to this: find-scanner: found "MUSTEK MFC-06000CZ 1.01" at device /dev/scanner find-scanner: found "MUSTEK MFC-06000CZ 1.01" at device /dev/sge +Note that find-scanner will find any scanner that is connected to a +SCSI bus. It will even find scanners that are not supported at all +by SANE. + There may be several causes for the following messages from the frontends: "scanimage: no SANE devices found" or "xscanimage: no -devices available." (together with a GTK error message). +devices available.". * Your scanner is not recognized by any backend. It is not supported. You may ask the maintainer of your backend (see AUTHORS) or diff --git a/tools/README b/tools/README index b41470bb3..24b2697ad 100644 --- a/tools/README +++ b/tools/README @@ -1,11 +1,13 @@ -Wed Nov 12 20:47:04 1997 +Mon Sep 18 19:38:21 CEST 2000 This directory contains various tools that may be useful: find-scanner: - Attempts to find a scanner attached to your system. + Attempts to find a SCSI scanner attached to your system. Invoke with "find-scanner -h" to get command-line - syntax. + syntax. Note that find-scanner will find any scanner that + is connected to a SCSI bus. It will even find scanners + that are not supported at all by SANE. xerox: A simple script to make photocopies ("xeroxing"). In @@ -17,3 +19,14 @@ This directory contains various tools that may be useful: mustek600iin-off: Allows you to turn off a Mustek 600 II N scanner. Use "make mustek600iin-off" to compile. + +Maybe usefull for SANE developers: + + sane-desc.el: + Some handy elisp stuff to automagically generate descriptive + SANE webpages from backend .desc files with emacs. Look at the + top of the file for more details. + + sane-config: + Show SANE version, linker flags etc. Might be usefull for + frontend developers. \ No newline at end of file diff --git a/tools/find-scanner.c b/tools/find-scanner.c index fa0a4d57a..415c9d196 100644 --- a/tools/find-scanner.c +++ b/tools/find-scanner.c @@ -1,6 +1,6 @@ /* find-scanner.c - Copyright (C) 1997-1999 Oliver Rauch and others. + Copyright (C) 1997-2000 Oliver Rauch and others. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -149,9 +149,9 @@ scanner_identify_scanner (unsigned char *buffer, int sfd, char *devicename) && devtype != IN_periph_devtype_cpu) return; /* no, continue searching */ - get_inquiry_vendor ((char *) buffer, vendor); - get_inquiry_product ((char *) buffer, product); - get_inquiry_version ((char *) buffer, version); + get_inquiry_vendor ((char *) buffer, (char *) vendor); + get_inquiry_product ((char *) buffer, (char *) product); + get_inquiry_version ((char *) buffer, (char *) version); pp = &vendor[7]; vendor[8] = '\0'; @@ -409,6 +409,11 @@ main (int argc, char **argv) dev_list = default_dev_list; } + printf ( + "# Note that find-scanner will find any scanner that is connected\n" + "# to a SCSI bus. It will even find scanners that are not supported\n" + "# at all by SANE.\n\n"); + if (getuid ()) printf ( "# You may want to run this program as super-user to find all devices.\n"