Eu estava usando scanimage
para digitalizar alguns documentos com meu scanner de folhas planas da Brother DS-620 com o seguinte comando:
scanimage --device 'dsseries:usb:0x04F9:0x60E0' \
--format=tiff \
--mode 'Gray' \
--resolution 300 \
-l 90 \
-t 90 \
--brightness -20 \
--contrast 15 \
> ex.tiff
Eu estava testando parâmetros diferentes para -t, que acho que configurei para 500, quando estava no meio da varredura quando o alimentador de folhas parou e acredito que um erro de segfault foi lançado (desculpe, perdi a mensagem de erro exata e não posso replicá-la , embora, -t
tenha um valor máximo de 355.6 na página do manual específica do dispositivo, o que possivelmente explica um segfault). Depois disso, o comando acima e scanimage -T
(para teste) fornecem o erro sane_start: Document feeder out of documents
. Abaixo da opção dependente de dispositivo para --source
, a única opção é ADF, o que acho incorreto. O scanner estava funcionando perfeitamente antes que isso acontecesse. Eu tentei desconectar o scanner, reiniciar meu computador e tentar xsane, simple-scan etc com resultados negativos. Eu postei algumas das informações que considero importantes abaixo.
Alguém tem alguma pista sobre o que deu errado e como corrigir / solucionar esse problema?
Eu estou no Ubuntu 14.04. Versões scanimage e libsane:
desktop:~$ scanimage --version
scanimage (sane-backends) 1.0.23; backend version 1.0.23
O driver instalado a partir do site da Brother:
libsane-dsseries_1.0.5-1_amd64.
O changelog para o driver:
x64-dsscanner (1.0.5-1) unstable; urgency=low
* Fix duplex cut image error.
-- Brother Industries, Ltd. <> Thu, 21 Nov 2013 14:42:01 +0800
Informações específicas do dispositivo:
desktop:~$ scanimage --help -d 'dsseries:usb:0x04F9:0x60E0'
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner)
--format=pnm|tiff file format of output file
-i, --icc-profile=PROFILE include this ICC profile into TIFF file
-L, --list-devices show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
can be specified: %d (device name), %v (vendor),
%m (model), %t (type), %i (index number), and
%n (newline)
-b, --batch[=FORMAT] working in batch mode, FORMAT is 'out%d.pnm' or
'out%d.tif' by default depending on --format
--batch-start=# page number to start naming files with
--batch-count=# how many pages to scan in batch mode
--batch-increment=# increase page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-A, --all-options list all available backend options
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
Options specific to device 'dsseries:usb:0x04F9:0x60E0':
Scan mode:
--mode LineArt|Gray|Color [Gray]
Selects the scan mode (e.g., lineart, monochrome, or color).
--resolution 75..600dpi (in steps of 1) [300]
Sets the resolution of the scanned image.
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--source ADF [ADF]
Selects the scan source (such as a document-feeder).
Geometry:
-l 0..215.9mm [0]
Top-left x position of scan area.
-t 0..355.6mm [0]
Top-left y position of scan area.
-x 0..215.9mm [215.9]
Width of scan-area.
-y 0..355.6mm [355.6]
Height of scan-area.
MultiFeed Detection:
--ultrasonic Disable [Disable]
Use ultrasonic sensor to detect multifeed
Enhancement:
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
--gamma-table 0..255,...
Gamma-correction table. In color mode this option equally affects the
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
--red-gamma-table 0..255,...
Gamma-correction table for the red band.
--green-gamma-table 0..255,...
Gamma-correction table for the green band.
--blue-gamma-table 0..255,...
Gamma-correction table for the blue band.
Type ''scanimage --help -d DEVICE'' to get list of all options for DEVICE.
List of available devices:
dsseries:usb:0x04F9:0x60E0
Comportamento inconsistente para detecção de scanners:
Às vezes, se eu emitir o sudo sane-find-scanner
, concluo que ele não encontra nenhum scanner usb e que sudo scanimage -L
lista meu scanner.
Anteriormente e sem nenhuma causa identificável, sudo sane-find-scanner
apenas trava e sudo scanimage -L
me causa um erro do sistema Ubuntu e o relatório apresenta um problema na janela de diálogo que não consigo copiar e colar, mas as partes importantes parecem ser:
Estou perplexo com esse comportamento errático.
Sem sudo
:
desktop:~$ scanimage -L
device 'dsseries:usb:0x04F9:0x60E0' is a BROTHER DS-620 sheetfed scanner
desktop:~$ 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.
could not open USB device 0x8087/0x8000 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x8087/0x8008 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x04f9/0x60e0 at 003:005: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc016 at 003:004: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc315 at 003:003: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
desktop:~$ sudo 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.
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
Usar scanimage -n --device 'dsseries:usb:0x04F9:0x60E0' etc...
fornece a mensagem correta para uma verificação bem-sucedida:
scanimage: rounded value of br-x from 305.9 to 215.9
scanimage: rounded value of br-y from 445.6 to 355.6
Se eu puder testar outro scanner, postarei os resultados.