kopia lustrzana https://gitlab.com/sane-project/website
156 wiersze
5.7 KiB
HTML
156 wiersze
5.7 KiB
HTML
<!-- received="Mon Nov 29 03:13:54 1999 PST" -->
|
||
<!-- sent="Mon, 29 Nov 1999 12:19:29 +0100" -->
|
||
<!-- name="Manuel Panea" -->
|
||
<!-- email="mpd@rzg.mpg.de" -->
|
||
<!-- subject="Re: Problem with SANE and SCSI scanner" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="3841DEFA.249FCC42@home.net" -->
|
||
<title>sane-devel: Re: Problem with SANE and SCSI scanner</title>
|
||
<h1>Re: Problem with SANE and SCSI scanner</h1>
|
||
<b>Manuel Panea</b> (<a href="mailto:mpd@rzg.mpg.de"><i>mpd@rzg.mpg.de</i></a>)<br>
|
||
<i>Mon, 29 Nov 1999 12:19:29 +0100</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#287">[ date ]</a><a href="index.html#287">[ thread ]</a><a href="subject.html#287">[ subject ]</a><a href="author.html#287">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0288.html">Douglas Gilbert: "Re: Problem with SANE and SCSI scanner"</a>
|
||
<li> <b>Previous message:</b> <a href="0286.html">John Gay: "Re: Snapscan 1236s & AVA1505AE"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
-----BEGIN PGP SIGNED MESSAGE-----<br>
|
||
<p>
|
||
<p>
|
||
<p>
|
||
Hi, Laura and everyone who has followed this thread.<br>
|
||
<p>
|
||
I have put together all things which Laura has tried. I find the results<br>
|
||
puzzling:<br>
|
||
<p>
|
||
<p>
|
||
1) Is Linux seeing the scanner? Yes:<br>
|
||
<p>
|
||
<i>> sh-2.03$ cat /proc/scsi/scsi</i><br>
|
||
<i>> Attached devices:</i><br>
|
||
<i>> Host: scsi0 Channel: 00 Id: 02 Lun: 00</i><br>
|
||
<i>> Vendor: CANON Model: IX-06015C Rev: 2.02</i><br>
|
||
<i>> Type: Scanner ANSI SCSI revision: 02</i><br>
|
||
<p>
|
||
<p>
|
||
2) Does "find-scanner" find the scanner? Yes:<br>
|
||
<p>
|
||
<i>> [root@c554912-a ldewitt]# find-scanner</i><br>
|
||
<i>> find-scanner: found scanner "CANON IX-06015C 2.02" at device /dev/sg0</i><br>
|
||
<i>> find-scanner: found scanner "CANON IX-06015C 2.02" at device /dev/sga</i><br>
|
||
<p>
|
||
<p>
|
||
3) Does "scanimage" find the scanner? No!:<br>
|
||
<p>
|
||
<i>> [root@c554912-a ldewitt]# scanimage --list-devices</i><br>
|
||
<p>
|
||
<i>> sh-2.03$ scanimage -d /dev/sga</i><br>
|
||
<i>> scanimage: open of device /dev/sga failed: Invalid argument</i><br>
|
||
<p>
|
||
<i>> sh-2.03$ scanimage -d /dev/sg0</i><br>
|
||
<i>> scanimage: open of device /dev/sg0 failed: Invalid argument</i><br>
|
||
<p>
|
||
<p>
|
||
4) Why not? Let's see some debugging information:<br>
|
||
<p>
|
||
<i>> sh-2.03$ export SANE_DEBUG_CANON=128</i><br>
|
||
<i>> sh-2.03$ scanimage --list-devices</i><br>
|
||
<i>> [sanei_init_debug]: Setting debug level of canon to 128.</i><br>
|
||
<i>> [canon] >> sane_init</i><br>
|
||
<i>> [canon] sane_init: sane 1.0.1</i><br>
|
||
<i>> [canon] >> attach_one</i><br>
|
||
<i>> [canon] >> attach</i><br>
|
||
<i>> [canon] attach: opening /dev/scanner</i><br>
|
||
<i>> [canon] attach: open failed: Access to resource has been denied</i><br>
|
||
<i>> [canon] << attach_one</i><br>
|
||
<i>> [canon] << sane_init</i><br>
|
||
<i>> [canon] >> sane_get_devices</i><br>
|
||
<i>> [canon] << sane_get_devices</i><br>
|
||
<i>> [canon] >> sane_exit</i><br>
|
||
<i>> [canon] << sane_exit</i><br>
|
||
<p>
|
||
<p>
|
||
5) Aha! Maybe she tried "find-scanner" as root and "scanimage" as a<br>
|
||
normal user, so she has no access to the device? Wrong! See the<br>
|
||
devices:<br>
|
||
<p>
|
||
<i>> [root@c554912-a ldewitt]# ls -l /dev/sg0 /dev/sga</i><br>
|
||
<i>> lrwxrwxrwx 1 root root 3 Nov 10 03:57 /dev/sg0 -> sga</i><br>
|
||
<i>> crwxrwxrwx 1 root cdwriter 21, 0 May 5 1998 /dev/sga</i><br>
|
||
<i>> </i><br>
|
||
<i>> [root@c554912-a ldewitt]# ls -l /dev/scanner</i><br>
|
||
<i>> lrwxrwxrwx 1 root root 8 Nov 24 19:54 /dev/scanner -> /dev/sga</i><br>
|
||
<p>
|
||
<p>
|
||
<p>
|
||
I checked the "find-scanner" sources and the SANE sources to see in what<br>
|
||
way they could be doing things differently. But they do the same thing,<br>
|
||
namely:<br>
|
||
<p>
|
||
sanei_scsi_open(devname, &fd, NULL, NULL);<br>
|
||
<p>
|
||
Apparently, on Laura's system, this works for "find-scanner" but not<br>
|
||
for "scanimage". This, of course, is impossible, but Laura's system<br>
|
||
doesn't seem to care.<br>
|
||
<p>
|
||
<p>
|
||
Does anyone know how this could be happenning?<br>
|
||
<p>
|
||
<p>
|
||
Just to be sure, I would ask Laura to try the following things, in this order,<br>
|
||
and tell us what the output is:<br>
|
||
<p>
|
||
1) Switch on the scanner, then the computer, then log in as "root".<br>
|
||
<p>
|
||
2) Do 'cat /proc/scsi/scsi'<br>
|
||
<p>
|
||
3) Do 'find-scanner'<br>
|
||
<p>
|
||
4) Do 'export SANE_DEBUG_CANON=128' and 'export SANE_DEBUG_SANEI=128', then<br>
|
||
'scanimage --list-devices'<br>
|
||
<p>
|
||
5) Do 'scanimage -d canon:/dev/sga'<br>
|
||
<p>
|
||
6) Do 'ls -l /dev/sga /dev/scanner'<br>
|
||
<p>
|
||
<p>
|
||
<p>
|
||
======<br>
|
||
<p>
|
||
Manuel Panea Tel. +49 89 3299 1133<br>
|
||
Rechenzentrum Garching Fax +49 89 3299 1301<br>
|
||
Postfach 1533 E-mail: <a href="mailto:mpd@rzg.mpg.de">mpd@rzg.mpg.de</a><br>
|
||
85740 Garching Germany <a href="http://www.rzg.mpg.de/~mpd">http://www.rzg.mpg.de/~mpd</a><br>
|
||
<p>
|
||
-----BEGIN PGP SIGNATURE-----<br>
|
||
Version: PGPfreeware 5.0i for non-commercial use<br>
|
||
Charset: noconv<br>
|
||
<p>
|
||
iQCVAwUBOEJTOYnxRMteJ3RRAQEddgP/RYRS2OdDZILw78bpcqHpCrilT/0jAmdz<br>
|
||
TaU2tdEXkDpw09FmP2J0BuiIrcmUv1PiX4bmA93h+jGnMTexM8YSa+lxrsbCkDhN<br>
|
||
uvd56pK2oewUF/IBf1ZOP9xcIrUA9h8PxyWlNpCW16qxj378fwcIZHWcdfWHHcSa<br>
|
||
g6vRjIaGLTU=<br>
|
||
=xenj<br>
|
||
-----END PGP SIGNATURE-----<br>
|
||
<p>
|
||
<p>
|
||
<pre>
|
||
--
|
||
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
|
||
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0288.html">Douglas Gilbert: "Re: Problem with SANE and SCSI scanner"</a>
|
||
<li> <b>Previous message:</b> <a href="0286.html">John Gay: "Re: Snapscan 1236s & AVA1505AE"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|