LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sane-find-scanner

Detect SCSI and USB scanner devices

TLDR

Find all SCSI and USB scanners
$ sane-find-scanner
copy
Verbose output with device details
$ sane-find-scanner -v
copy
Very verbose with SCSI inquiry and USB descriptors
$ sane-find-scanner -vv
copy
Quiet mode showing only device names
$ sane-find-scanner -q
copy
Probe for parallel port scanners
$ sane-find-scanner -p
copy
Force specific devices to be checked
$ sane-find-scanner -f [/dev/sg0] [/dev/usb/scanner0]
copy

SYNOPSIS

sane-find-scanner [-hvqpf] [-F filename] [devname...]

DESCRIPTION

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.

PARAMETERS

-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)

INSTALL

sudo apt install sane-utils
copy
sudo apk add sane-utils
copy

CAVEATS

Cannot detect most parallel port scanners except some Mustek models with -p. Proprietary port scanners are not detected. USB support requires Linux, FreeBSD, NetBSD, or OpenBSD with libusb.

HISTORY

sane-find-scanner is part of the SANE (Scanner Access Now Easy) project, which provides standardized access to scanner hardware on Unix-like systems. The project began in 1996 to create a universal scanner API.

SEE ALSO

scanimage(1), saned(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid