[sane-devel] 'scanimage -L' fails first time with modular SCSI drivers
Tim Waugh
twaugh@redhat.com
Tue, 19 Feb 2002 14:40:24 +0000
--gdTfX7fkYsEEjebm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Linux, when the SCSI drivers are compiled modular, 'scanimage -L'
fails unless they modules are loaded.
After running it once (and it fails), the drivers appear to have been
automatically loaded (by an open("/dev/sg0") I think), and so a
subsequent 'scanimage -L' works.
[root@cyberelk root]# scanimage -L
No scanners were identified. If you were expecting something
different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[root@cyberelk root]# scanimage -L
device `hp:/dev/sg0' is a Hewlett-Packard C5110A flatbed scanner
Curiously enough, if I create a link /dev/scanner -> sg0, I don't see
this behaviour and the first 'scanimage -L' succeeds.
I'm trying this with SANE 1.0.7.
Tim.
*/
--gdTfX7fkYsEEjebm
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8cmPXyaXy9qA00+cRAvbKAKC6xkBEvVFm6Uwaw2oab1um3kJ21wCfQYqZ
3QiE99c/ABsBTQy/cOUS09k=
=lEak
-----END PGP SIGNATURE-----
--gdTfX7fkYsEEjebm--