Translation

(itstool) path: sect2/screen
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
368/3680
Context English Chinese (Simplified) (zh_CN) State
FreeBSD supports both <acronym>SCSI</acronym> and <acronym>USB</acronym> scanners. Depending upon the scanner interface, different device drivers are required. Be sure the scanner is supported by <application>SANE</application> prior to performing any configuration. Refer to <link xlink:href="http://www.sane-project.org/sane-supported-devices.html"> http://www.sane-project.org/sane-supported-devices.html</link> for more information about supported scanners.
FreeBSD 支持 SCSI 和 USB 扫描仪。 在做任何配置之前请确保您的扫描仪被 <application>SANE</application> 支持。 <application>SANE</application> 有一个 <link xlink:href="http://www.sane-project.org/sane-supported-devices.html"> 支持的设备</link> 列表, 可以为您提供有关扫描仪的支持情况和状态的信息。 在 FreeBSD 8.X 之前版本的系统中, <citerefentry><refentrytitle>uscanner</refentrytitle><manvolnum>4</manvolnum></citerefentry> 手册页也提供了系统支持的 USB 扫描仪列表。
This chapter describes how to determine if the scanner has been detected by FreeBSD. It then provides an overview of how to configure and use <application>SANE</application> on a FreeBSD system.
本章介绍如何确定 FreeBSD 是否检测到扫描仪。然后,它概述了如何在 FreeBSD 系统上配置和使用<application>SANE</application>。
Checking the Scanner
检查扫描仪
The <filename>GENERIC</filename> kernel includes the device drivers needed to support <acronym>USB</acronym> scanners. Users with a custom kernel should ensure that the following lines are present in the custom kernel configuration file:
默认的 <filename>GENERIC</filename> 内核包含了支持 USB 扫描仪需要的设备驱动。 如果您决定使用一个定制的内核, 确保下面在您的内核配置文件中存在下面这些行:
device usb
device uhci
device ohci
device ehci
device xhci
device usb
device uhci
device ohci
device ehci
device xhci
To determine if the <acronym>USB</acronym> scanner is detected, plug it in and use <command>dmesg</command> to determine whether the scanner appears in the system message buffer. If it does, it should display a message similar to this:
要确定是否检测到<acronym>USB</acronym>扫描仪,请将其插入并使用<command>dmesg</command>确定扫描仪是否显示在系统消息缓冲区中。如果是,它应显示类似于此消息:
ugen0.2: &lt;EPSON&gt; at usbus0
ugen0.2: &lt;EPSON&gt; at usbus0
In this example, an <trademark class="registered">EPSON Perfection</trademark> 1650 <acronym>USB</acronym> scanner was detected on <filename>/dev/ugen0.2</filename>.
本例在 <filename>/dev/ugen0.2</filename>检测到<trademark class="registered">EPSON Perfection</trademark> 1650 <acronym>USB</acronym>扫描仪。
If the scanner uses a <acronym>SCSI</acronym> interface, it is important to know which <acronym>SCSI</acronym> controller board it will use. Depending upon the <acronym>SCSI</acronym> chipset, a custom kernel configuration file may be needed. The <filename>GENERIC</filename> kernel supports the most common <acronym>SCSI</acronym> controllers. Refer to <filename>/usr/src/sys/conf/NOTES</filename> to determine the correct line to add to a custom kernel configuration file. In addition to the <acronym>SCSI</acronym> adapter driver, the following lines are needed in a custom kernel configuration file:
如果扫描仪使用 <acronym> SCSI </acronym> 接口,则了解它将使用哪个 <acronym> SCSI </acronym> 控制器板非常重要。根据<acronym>SCSI</acronym>芯片组, 可能需要自定义内核配置文件。<filename> GENIC </filename> 内核支持常见 <acronym> SCSI </acronym> 控制器。请参阅<filename>/usr/src/sys/conf/NOTES</filename>,以确定要添加到自定义内核配置文件中的正确行。除了 <acronym> SCSI </acronym> 适配器驱动程序外,自定义内核配置文件中还需要以下行:
device scbus
device pass
device scbus
device pass
Verify that the device is displayed in the system message buffer:
验证设备是否显示在系统消息缓冲区中:
pass2 at aic0 bus 0 target 2 lun 0
pass2: &lt;AGFA SNAPSCAN 600 1.10&gt; Fixed Scanner SCSI-2 device
pass2: 3.300MB/s transfers
pass2 at aic0 bus 0 target 2 lun 0
pass2: &lt;AGFA SNAPSCAN 600 1.10&gt; Fixed Scanner SCSI-2 device
pass2: 3.300MB/s transfers
If the scanner was not powered-on at system boot, it is still possible to manually force detection by performing a <acronym>SCSI</acronym> bus scan with <command>camcontrol</command>:
如果您的扫描仪没有在系统启动的时候加电, 很可能还需要强制手动检测一下,用 <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> 命令执行一次 SCSI 总线扫描:
<prompt>#</prompt> <userinput>camcontrol rescan all</userinput>
Re-scan of bus 0 was successful
Re-scan of bus 1 was successful
Re-scan of bus 2 was successful
Re-scan of bus 3 was successful
<prompt>#</prompt> <userinput>camcontrol rescan all</userinput>
Re-scan of bus 0 was successful
Re-scan of bus 1 was successful
Re-scan of bus 2 was successful
Re-scan of bus 3 was successful
The scanner should now appear in the <acronym>SCSI</acronym> devices list:
然后扫描仪就会出现在 SCSI 设备列表里:
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
Refer to <citerefentry><refentrytitle>scsi</refentrytitle><manvolnum>4</manvolnum></citerefentry> and <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> for more details about <acronym>SCSI</acronym> devices on FreeBSD.
有关 SCSI 设备的更多细节, 可查看 <citerefentry><refentrytitle>scsi</refentrytitle><manvolnum>4</manvolnum></citerefentry> 和 <citerefentry><refentrytitle>camcontrol</refentrytitle><manvolnum>8</manvolnum></citerefentry> 手册页。
<application>SANE</application> Configuration
<application>SANE</application>设定
The <application>SANE</application> system provides the access to the scanner via backends (<package>graphics/sane-backends</package>). Refer to <link xlink:href="http://www.sane-project.org/sane-supported-devices.html">http://www.sane-project.org/sane-supported-devices.html</link> to determine which backend supports the scanner. A graphical scanning interface is provided by third party applications like <application>Kooka</application> (<package>graphics/kooka</package>) or <application>XSane</application> (<package>graphics/xsane</package>). <application>SANE</application>'s backends are enough to test the scanner.
<application>SANE</application> 系统通过后端 (<package>graphics/sane-backends</package>) 连接扫描仪。 参考<link xlink:href="http://www.sane-project.org/sane-supported-devices.html">http://www.sane-project.org/sane-supported-devices.html</link>查看扫描仪支持情况。图形扫描接口由类似<application>Kooka</application> (<package>graphics/kooka</package>) 或 <application>XSane</application> (<package>graphics/xsane</package>)提供。<application>SANE</application>的功能足已完成扫描仪测试。
To install the backends from binary package:
使用二进制安装包安装后端:
<prompt>#</prompt> <userinput>pkg install sane-backends</userinput>
<prompt>#</prompt> <userinput>pkg install sane-backends</userinput>
Alternatively, to install from the Ports Collection
或由 Port 套件集安装
<prompt>#</prompt> <userinput>cd /usr/ports/graphics/sane-backends</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
<prompt>#</prompt> <userinput>cd /usr/ports/graphics/sane-backends</userinput>
<prompt>#</prompt> <userinput>make install clean</userinput>
After installing the <package>graphics/sane-backends</package> port or package, use <command>sane-find-scanner</command> to check the scanner detection by the <application>SANE</application> system:
要做的第一步就是安装 <package>graphics/sane-backends</package> port 或者 package。然后,使用 <command>sane-find-scanner</command> 命令来检查 <application>SANE</application> 系统做的扫描仪检测:
<prompt>#</prompt> <userinput>sane-find-scanner -q</userinput>
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
<prompt>#</prompt> <userinput>sane-find-scanner -q</userinput>
found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pass3
The output should show the interface type of the scanner and the device node used to attach the scanner to the system. The vendor and the product model may or may not appear.
输出显示了扫描仪的接口类型和扫描仪连接到系统上的设备节点。 生产厂家和产品型号可能没有显示,不过不重要。
Some <acronym>USB</acronym> scanners require firmware to be loaded. Refer to sane-find-scanner(1) and sane(7) for details.
一些 USB 扫描仪需要您加载固件,后端的手册页中有这方面的解释。 您也应该阅读 <citerefentry vendor="ports"><refentrytitle>sane-find-scanner</refentrytitle><manvolnum>1</manvolnum></citerefentry> 和 <citerefentry vendor="ports"><refentrytitle>sane</refentrytitle><manvolnum>7</manvolnum></citerefentry> 手册页。
Next, check if the scanner will be identified by a scanning frontend. The <application>SANE</application> backends include <command>scanimage</command> which can be used to list the devices and perform an image acquisition. Use <option>-L</option> to list the scanner devices. The first example is for a <acronym>SCSI</acronym> scanner and the second is for a <acronym>USB</acronym> scanner:
现在我们需要检查扫描仪是否可以被扫描前端识别。 默认情况下, <application>SANE</application> 后端自带一个叫做 <citerefentry vendor="ports"><refentrytitle>scanimage</refentrytitle><manvolnum>1</manvolnum></citerefentry> 的命令行工具。 这个命令允许您列出设备以及从命令行执行图片扫描。 <option>-L</option> 选项用来列出扫描仪设备:
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner
<prompt>#</prompt> <userinput>scanimage -L</userinput>
device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner
In this second example, <literal>epson2</literal> is the backend name and <literal>libusb:000:002</literal> means <filename>/dev/ugen0.2</filename> is the device node used by the scanner.
在第二个示例中, <literal>libusb:000:002</literal>是后端名称 (<literal> epson2 </literal>),<filename>/dev/ugen0.2</filename>是扫描仪使用的设备挂载点。
If <command>scanimage</command> is unable to identify the scanner, this message will appear:
或者, 如果使用的是 <xref linkend="scanners-kernel-usb"/> 中的 USB 扫描仪:

Loading…

<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
<prompt>#</prompt> <userinput>camcontrol devlist</userinput>
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 5 lun 0 (pass0,da0)
&lt;IBM DDRS-34560 S97B&gt; at scbus0 target 6 lun 0 (pass1,da1)
&lt;AGFA SNAPSCAN 600 1.10&gt; at scbus1 target 2 lun 0 (pass3)
&lt;PHILIPS CDD3610 CD-R/RW 1.00&gt; at scbus2 target 0 lun 0 (pass2,cd0)
9 months ago
Browse all component changes

Things to check

Unchanged translation

Source and translation are identical

Reset

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/screen
Labels
No labels currently set.
Flags
no-wrap
Source string location
book.translate.xml:15580
Source string age
11 months ago
Translation file
books/zh_CN/handbook.po, string 2749