Re: re Mustek scanner

Nick Lamb (njl98r@ecs.soton.ac.uk)
Tue, 11 May 1999 20:07:07 +0100 (GMT)

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--1318610500-510110161-926449627=:16320
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 11 May 1999, Oliver Rauch wrote:

> Did you enable generic scsi support in the kernel?

Inspired by the find-scanner tool, and in particular the success of the
"Try running this as root" message, I have developed the attached patch
to make find-scanner tell newbies about SCSI generic. At the very least
it simplifies trouble shooting, reducing the number of FAQs on this list.

NB - A particular feature of the design of this patch is the order. By
making the test for SCSI generic immediately after we've scanned the
appropriate SCSI devices, we can be sure that drivers, loadable modules,
etc. will still be in memory. If find-scanner knows how to look for
tell-tale signs of sg drivers for your OS, and it doesn't see them, it
will print...

# If your scanner uses SCSI, you must have a driver for your SCSI
# adaptor and support for SCSI Generic (sg) in your Operating System
# in order for the scanner to be used with SANE. If your scanner is
# NOT listed above, check that you have installed the drivers.

comments?

Nick.

--1318610500-510110161-926449627=:16320
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=find-scanner-patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.04.9905112007070.16320@chef.ecs.soton.ac.uk>
Content-Description: Unified patch
Content-Disposition: attachment; filename=find-scanner-patch

LS0tIGZpbmQtc2Nhbm5lci5jLm9sZAlUdWUgTWF5IDExIDE1OjMwOjA3IDE5
OTkNCisrKyBmaW5kLXNjYW5uZXIuYwlUdWUgTWF5IDExIDIwOjA1OjQ0IDE5
OTkNCkBAIC03NCw2ICs3NCwzNiBAQA0KICAgICBmcHJpbnRmIChzdGRlcnIs
ICJcdCVzXG4iLCBtc2cpOw0KIH0NCiANCisvKiBpZiBTQ1NJIGdlbmVyaWMg
aXMgb3B0aW9uYWwgb24geW91ciBPUywgYW5kIHRoZXJlIGlzIGEgc29mdHdh
cmUgdGVzdA0KKyAgIHdoaWNoI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IHNj
YW5uZXJfZG9faW5xdWlyeSAodW5zaWduZWQgY2hhciAqYnVmZmVyLCBpbnQg
c2ZkKQ0KIHsNCkBAIC00MDgsNiArNDM4LDEzIEBADQogCSAgc2FuZWlfc2Nz
aV9jbG9zZSAoc2ZkKTsNCiAJfQ0KICAgICB9DQorICBpZiAoIWNoZWNrX3Nn
KCkpIHsNCisgICAgcHJpbnRmICgNCisgICAgICIjIElmIHlvdXIgc2Nhbm5l
ciB1c2VzIFNDU0ksIHlvdSBtdXN0IGhhdmUgYSBkcml2ZXIgZm9yIHlvdXIg
U0NTSVxuIg0KKyAgICAgIiMgYWRhcHRvciBhbmQgc3VwcG9ydCBmb3IgU0NT
SSBHZW5lcmljIChzZykgaW4geW91ciBPcGVyYXRpbmcgU3lzdGVtXG4iDQor
ICAgICAiIyBpbiBvcmRlciBmb3IgdGhlIHNjYW5uZXIgdG8gYmUgdXNlZCB3
aXRoIFNBTkUuIElmIHlvdXIgc2Nhbm5lciBpc1xuIg0KKyAgICAgIiMgTk9U
IGxpc3RlZCBhYm92ZSwgY2hlY2sgdGhhdCB5b3UgaGF2ZSBpbnN0YWxsZWQg
dGhlIGRyaXZlcnMuXG5cbiIpOw0KKyAgfQ0KICAgaWYgKHZlcmJvc2UpDQog
ICAgIHByaW50ZiAoIiVzOiBkb25lXG4iLCBwcm9nX25hbWUpOw0KICAgcmV0
dXJuIDA7DQo=
--1318610500-510110161-926449627=:16320--

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com