首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >scsi幻灯片扫描器对扫描图像-L是可见的,然后消失。

scsi幻灯片扫描器对扫描图像-L是可见的,然后消失。
EN

Ask Ubuntu用户
提问于 2017-05-09 15:38:32
回答 1查看 175关注 0票数 0

我们有一台2000年代初的幻灯片扫描仪。它被PC所认可,但只有一次。在某个配置文件(/etc/sane.d/,或/etc/udev/rues.d)中似乎有一个微小的错误,但我们无法找出错误或缺失的地方。

下面的输出表明存在一个hardware error和一个lamp failure,但是这很可能是误导的。扫描仪正常工作时,启动与旧的Windows运行专有佳能软件。扫描工作在Windows下,灯是旧的,但没问题。此外,扫描仪已经在这台Linux上工作了很短时间(只改变了硬盘),然后就停止了工作,显然是在apt upgrade第一次运行之后。

命令:

代码语言:javascript
复制
    export SANE_DEBUG_CANON=255 && export SANE_DEBUG_SANEI_SCSI=255 && export SANE_DEBUG_DLL=255  && scanimage -L

第一次产出:

代码语言:javascript
复制
device `canon:/dev/sg2' is a CANON IX-27015C        film scanner

输出:

代码语言:javascript
复制
[sanei_debug] Setting debug level of canon to 255.
[canon] >> sane_init
[canon] sane_init: sane-backends 1.0.25git
[canon] >> attach_one
[canon] >> attach
[canon] attach: opening /dev/sg1
[canon] attach: open failed: Invalid argument
[canon] << attach_one
[canon] >> attach_one
[canon] >> attach
[canon] attach: opening /dev/sg2
[canon] attach: sending (standard) INQUIRY
[canon] >> inquiry
[canon] << inquiry
[canon] attach: sending TEST_UNIT_READY
[canon] >> test_unit_ready
[canon] >> sense_handler
[canon] canon_sense_handler(10, 0xb6bf1060, (nil))
[canon] sense buffer: f0 00 44 00 00 00 00 06 00 00 00 00 60 00 00 00
[canon] sense data interpretation for SCSI-2 devices
[canon] sense category: hardware error
[canon] sense message: lamp failure
[canon] << sense_handler
[canon] << test_unit_ready
[canon] attach: test unit ready failed (Error during device I/O)
[canon] << attach_one
[canon] << sane_init
[canon] >> sane_get_devices
[canon] << sane_get_devices

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).
[canon] >> sane_exit
[canon] << sane_exit

scanimage -L生成的输出类似于以下内容:

扫描设备4 0 3 0.

代码语言:javascript
复制
OLD: Host: scsi4 Channel: 00 Id: 03 Lun: 00
      Vendor: CANON    Model: IX-27015C        Rev: 1.15
      Type:   Scanner                          ANSI SCSI revision: 02

udevadm命令:

代码语言:javascript
复制
 udevadm info -a -p /sys/class/scsi_generic/sg2

udevadm输出:

代码语言:javascript
复制
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1e.0/0000:05:05.0/host4/target4:0:3/4:0:3:0/scsi_generic/sg2':
    KERNEL=="sg2"
    SUBSYSTEM=="scsi_generic"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:05:05.0/host4/target4:0:3/4:0:3:0':
    KERNELS=="4:0:3:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""
    ATTRS{device_blocked}=="0"
    ATTRS{device_busy}=="0"
    ATTRS{dh_state}=="detached"
    ATTRS{eh_timeout}=="10"
    ATTRS{evt_capacity_change_reported}=="0"
    ATTRS{evt_inquiry_change_reported}=="0"
    ATTRS{evt_lun_change_reported}=="0"
    ATTRS{evt_media_change}=="0"
    ATTRS{evt_mode_parameter_change_reported}=="0"
    ATTRS{evt_soft_threshold_reached}=="0"
    ATTRS{iocounterbits}=="32"
    ATTRS{iodone_cnt}=="0x19"
    ATTRS{ioerr_cnt}=="0x6"
    ATTRS{iorequest_cnt}=="0x19"
    ATTRS{model}=="IX-27015C       "
    ATTRS{queue_depth}=="2"
    ATTRS{queue_type}=="none"
    ATTRS{rev}=="1.15"
    ATTRS{scsi_level}=="3"
    ATTRS{state}=="running"
    ATTRS{timeout}=="0"
    ATTRS{type}=="6"
    ATTRS{vendor}=="CANON   "

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:05:05.0/host4/target4:0:3':
    KERNELS=="target4:0:3"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:05:05.0/host4':
    KERNELS=="host4"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

个人电脑数据:

操作系统版本:4.10.0-20-generic #22-Ubuntu SMP Thu Apr 20 09:22:16 UTC 2017 i686 i686 i686 GNU/Linux

由我们创建:

来自/etc/udev/rules.d/45-scsi-scanner.rules的内容(一行:

代码语言:javascript
复制
# canon CanoScan 2700F scsi scanner
SUBSYSTEM=="scsi_generic", ATTRS{vendor}=="CANON", ATTRS{model}=="IX-27015C", NAME="%k", SYMLINK="scanner%n", MODE="0660",GROUP="scanner"

/etc/sane.d/canon.conf含量

代码语言:javascript
复制
#canon.conf
scsi CANON
#scsi CANON IX
#scsi /dev/sg2

也请参阅这个1999年年起的安装指示

EN

回答 1

Ask Ubuntu用户

发布于 2017-05-16 11:02:15

回答我自己的问题:

出乎意料的是,在从Windows再次访问驱动器之后,扫描仪发现了驱动器更改后的问题所在。

另一条错误消息(不能在这里复制--以前和之后都看不见)表明启动时的自我测试没有完成。

滑块机构存在电子和/或机械缺陷,使扫描仪无法正常工作。只要从入口系统中移除滑块,扫描仪就会启动。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/913472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档