← 返回命令列表

Linux command

sane-find-scanner 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Find all SCSI and USB scanners

sane-find-scanner

Verbose output

sane-find-scanner -v

Very verbose

sane-find-scanner -vv

Quiet mode

sane-find-scanner -q

Probe for parallel port scanners

sane-find-scanner -p

Force specific devices

sane-find-scanner -f [/dev/sg0] [/dev/usb/scanner0]

说明

sane-find-scanner detects SCSI and USB scanners and reports their device files. It helps verify that scanners are properly connected and accessible to SANE backends. For SCSI scanners, it sends inquiry commands to generic device files like /dev/sg0 looking for scanner or processor device types. For USB scanners, it checks kernel scanner device files and uses libusb to detect devices, identifying vendor and product IDs along with the USB chip type. The tool can find scanners even if they are not supported by any SANE backend, making it useful for initial hardware detection and troubleshooting.

参数

-h, -?
Print usage message
-v
Verbose output; use twice for SCSI inquiry and USB descriptors
-q
Quiet mode; print only device names without comments
-p
Probe for parallel port scanners
-f
Force treating specified devices as SCSI or USB scanners
-F _filename_
Read USB descriptors from file (Linux /proc/bus/usb/devices format)

FAQ

What is the sane-find-scanner command used for?

sane-find-scanner detects SCSI and USB scanners and reports their device files. It helps verify that scanners are properly connected and accessible to SANE backends. For SCSI scanners, it sends inquiry commands to generic device files like /dev/sg0 looking for scanner or processor device types. For USB scanners, it checks kernel scanner device files and uses libusb to detect devices, identifying vendor and product IDs along with the USB chip type. The tool can find scanners even if they are not supported by any SANE backend, making it useful for initial hardware detection and troubleshooting.

How do I run a basic sane-find-scanner example?

Run `sane-find-scanner` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, -? do in sane-find-scanner?

Print usage message