LINUX.ORG.RU

scanimage --mode


0

1

Какое значение необходимо указать в --mode чтобы отсканить в оттенках серого, пробовал grayscale, lineart[grayscale] ругается на синтаксис, в мане какая непонятная фигня написана.

★★★★★

в мане какая непонятная фигня написана

Почемуу фигня?

The description above shows that option --mode accepts an argument that must be one of the strings Lineart, Gray, or Color.

ciiccii
()
Ответ на: комментарий от ciiccii
scanimage -L | grep -i device
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
device `smfp:SAMSUNG SCX-4x24 Series on USB:0' is a SAMSUNG SCX-4x24 Series on USB:0 Flatbed Scanner
 scanimage -T
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
scanimage: scanning image of size 2478x3507 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 7434 bytes...	PASS
scanimage: reading one byte...		PASS
scanimage: stepped read, 2 bytes... 	PASS
scanimage: stepped read, 4 bytes... 	PASS
scanimage: stepped read, 8 bytes... 	PASS
scanimage: stepped read, 16 bytes... 	PASS
...
scanimage: stepped read, 3 bytes... 	PASS
~$ scanimage -T -d 'smfp:SAMSUNG SCX-4x24 Series on USB:0'
Segmentation fault

~$sudo cat /var/log/syslog

Feb 28 10:14:03 sprogrammer kernel: [ 1917.779985] scanimage[2225]: segfault at 0 ip 00b53dc4 sp bfe7aa60 error 4 in libsane-smfp.so.1.0.1[b42000+44000]
Feb 28 10:14:20 sprogrammer kernel: [ 1934.529824] scanimage[2231]: segfault at 0 ip 0027bdc4 sp bfc3cfa0 error 4 in libsane-smfp.so.1.0.1[26a000+44000]
Feb 28 10:15:05 sprogrammer kernel: [ 1980.329852] scanimage[2273]: segfault at 0 ip 00b79dc4 sp bfc452d0 error 4 in libsane-smfp.so.1.0.1[b68000+44000]
Feb 28 10:15:16 sprogrammer kernel: [ 1991.002746] scanimage[2278]: segfault at 0 ip 00125dc4 sp bfda1ea0 error 4 in libsane-smfp.so.1.0.1[114000+44000]
splinter ★★★★★
() автор топика

обновил до версии 1.0.22 один фиг segmentation fault при указании scanimage -d «smfp:SAMSUNG SCX-4x24 Series on USB:0» -T дистр Ubuntu lucid.

sudo cat /var/log/syslog
Feb 28 11:26:08 sprogrammer kernel: [ 6243.242419] scanimage[3765]: segfault at 0 ip 00566dc4 sp bf9e13e0 error 4 in libsane-smfp.so.1.0.1[555000+44000]

splinter ★★★★★
() автор топика
scanimage --mode=Gray -T
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
netdiscovery: relocation error: /lib/tls/i686/cmov/libnss_files.so.2: symbol strcmp, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
sane_control_option (set optionColor Composition) - value Gray out of range!
scanimage: setting of option --mode failed (Invalid argument)
splinter ★★★★★
() автор топика

strace выдает интерессную штуку:

stat64("/dev/usb/lp0", {st_mode=S_IFCHR|0666, st_rdev=makedev(180, 0), ...}) = 0
open("/dev/usb/lp0", O_RDWR)            = 3
ioctl(3, SNDCTL_DSP_SYNC, 0xbf8ba0b8)   = 0
close(3)                                = 0
stat64("/dev/usb/lp1", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp1", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp2", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp2", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp3", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp3", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp4", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp4", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp5", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp5", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp6", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp6", O_RDWR)             = -1 ENOENT (No such file or directory)
stat64("/dev/usb/lp7", 0xbf8ba424)      = -1 ENOENT (No such file or directory)
open("/dev/usblp7", O_RDWR)             = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

splinter ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.