On Wed, 1 Dec 1999, Laura DeWitt wrote:
> This information was captured as a user other than root, since when I try
> any of the commands as root, the machine locks up and I have to power
> cycle. I will capture that information also and send it to you next.
>
> BTW, I was running the find-scanner command as root, but the others as
> another user. Then when I changed the permimssions per Markus's
> recommendation, I could run find-scanner as user. Sorry for the confusion.
So you were having 2 different problems at the same time:
1) The permissions for the device file were probably wrong and that's why
you could not access it other than as root. But the permissions are now
correct, so problem #1 is solved.
2) You have not patched your 'sg' driver or not correctly. This is
described in file 'canon.README', but unfortunately there is a mistake.
This is the change you have to make:
Edit the file '/usr/src/linux/drivers/scsi/sg.c' and change the
'sg_write' procedure (near to where 'size=COMMAND_SIZE(opcode);'
appears. Add the two lines:
if ((opcode == 0xd4) || (opcode == 0xd5) || (opcode == 0xd6)) size = 6;
else
before the line:
if (opcode >= 0xc0 && device->header.twelve_byte) size = 12;
Then recompile the kernel (or the 'sg' module, if you use modules).
Unless you do this, your computer will hang when trying to scan.
Try it, this time it should work!
By the way, your scanner identifies itself at the SCSI level as model
IX-06015C. What's the "normal" name that Canon uses for that model?
Manuel Panea Tel. +49 89 3299 1133
Rechenzentrum Garching Fax +49 89 3299 1301
Postfach 1533 E-mail: mpd@rzg.mpg.de
85740 Garching Germany http://www.rzg.mpg.de/~mpd
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQCVAwUBOEboV4nxRMteJ3RRAQHPogP+Pz/bnmczwKaRHOsihW2yJllduRHqSGtw
kAD24QGSV1PbsVM3W67Yx/uM7sSgo9nJiO1nWFJhnw00VX3LAV25Drqv4lnylNyc
0Fc6rDpIR4Sca9UTgnVq7eYP8Szb8+GWkJAeKROh7hBPBNdUKqH7OtVP0nBK8mKh
+osMjE4P74Y=
=nRCz
-----END PGP SIGNATURE-----
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com