我有一台佳能 DR-1210C USB 扫描仪。
插入时内核会识别它:
[5365651.911506] usb 2-2.1: USB disconnect, address 3
[5365661.952066] usb 2-2: USB disconnect, address 2
[5365683.268060] usb 2-2: new full speed USB device using uhci_hcd and address 4
[5365683.441019] usb 2-2: New USB device found, idVendor=1083, idProduct=160f
[5365683.441027] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[5365683.441033] usb 2-2: Product: CANON DR-1210C
[5365683.441037] usb 2-2: Manufacturer: CANON
[5365683.441248] usb 2-2: configuration #1 chosen from 1 choice
sane-find-scanner
可以看到它:
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x1083 [CANON ], product=0x160f [CANON DR-1210C ], chip=GL845) at libusb:002:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x1083 [CANON ], product=0x160f [CANON DR-1210C ], chip=GL845) at libusb:002:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
但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).
那么我错过了什么?我尝试遵循 HOWTO,但它没有给我任何基于故障排除建议的见解。
答案1
如果运行的用户scanimage
无权访问该设备,则这种情况很常见。您可以使用以下方法检查设备属于哪个组:
ls -la /dev/bus/usb/002/004
(该002/004
部分取自您的sane-find-scanner
输出)并确保用户saned
是拥有该设备的组的成员。确保saned
在更改后重新启动守护程序。