On 03.10.2007 10:27, Joerg Platte wrote: > Hi, > > today I updated the kernel on my Debian stable box to vanilla 2.6.23-rc9 and > now, saned (version 1.0.14-2) is unable to find my scanner. Here is the > strace output of sane-find-scanner: > > open("/proc/scsi/scsi", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = > 0xb7f52000 > read(3, "Attached devices:\nHost: scsi0 Ch"..., 1024) = 976 > read(3, "", 1024) = 0 > close(3) = 0 > munmap(0xb7f52000, 4096) = 0 > open("/dev/scanner", O_RDWR|O_NONBLOCK|O_EXCL) = 3 > ioctl(3, SG_SET_TIMEOUT, 0xbf84a834) = 0 > ioctl(3, SG_GET_VERSION_NUM, 0x8062524) = 0 > ioctl(3, SG_GET_SCSI_ID, 0xbf84a7f0) = -1 ENOTTY (Inappropriate ioctl for > device) > close(3) = 0 > > Is there a patch available to fix sane?
It is very weird that the SG_GET_SCSI_ID ioctl does not work: Could you check, if /dev/scanner -- should be a symlink -- indeed points to a device file of some SCSI device (ideally, to the scanner's device file)? And if so, do you see any "suspicious" output in /var/log/messages? Finally, can you run sane-find-scaner with SANE_DEBUG_SANEI_SCSI=255 and send us the output? And which SCSI adapter and which adapter driver are you using? Abel