Hi,
I have a problem scanning as non-root as long as the modules are not loaded.
I'm using a HP6200 scanner with a Tekram 315 SCSI card (i have on board a
7880 SCSI controller for disks and CD ROM) and kernel 2.4.0-prerelease with
RedHat 7.0 and the sane software that was delivered with RedHat 7.0. I patched
the kernel to get the Tekram card supported. This set-up works quite well,
although not perfect.
I added this to my modules.conf to get the Tekram module loaded as soon as i
access the scanner:
#######################################
# Preload Tekram module before sg module
alias char-major-21 sg
pre-install sg modprobe -k dc395x_trm
#######################################
If I issue scanimage -L as root the modules are loaded and i get the correct
answer:
device `hp:/dev/scanner' is a Hewlett-Packard C6270A flatbed scanner
If I do this as a normal user it doesn't work and the debug says this:
[reinout@takke /tmp]$ scanimage -L
[sanei_debug] Setting debug level of hp to 128.
[hp] init called
[hp] get_devices called
[hp] hp_read_config: hp backend v0.88 starts reading config file
[hp] hp_read_config: processing line <scsi HP>
[hp] hp_read_config: processing line </dev/scanner>
[hp] hp_read_config: attach scsi HP
[hp] hp_read_config: attach /dev/scanner
[hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1
[hp] scsi_new: open failed (Invalid argument)
[hp] /dev/scanner: Can't open scsi device
[hp] exit called
If I preload the Tekram module all works fine, but i'd prefer to load it
automatically.
Any hints or specific documentation to get this working?
--Regards,
Reinout Wijnveen reinout@mktaal.nl
"All who believe in psychokinesis raise my hand"
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Wed Jan 03 2001 - 08:48:40 PST