# HG changeset patch # User Pascal Bellard # Date 1561667244 -7200 # Node ID 9a1f50677074f50069ed741b63ed6ded73cd8796 # Parent cdd470f2c93f052e42c2f071438b19d97321926e fake-sane: add pixma mp150 diff -r cdd470f2c93f -r 9a1f50677074 fake-sane/stuff/fake:pixma:04A91709.log --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fake-sane/stuff/fake:pixma:04A91709.log Thu Jun 27 22:27:24 2019 +0200 @@ -0,0 +1,73 @@ +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 `pixma': + Scan mode: + --resolution auto||75|150|300|600|1200dpi [75] + Sets the resolution of the scanned image. + --mode auto|Color|Gray [Color] + Selects the scan mode (e.g., lineart, monochrome, or color). + --source Flatbed [Flatbed] + Selects the scan source (such as a document-feeder). + --button-controlled[=(yes|no)] [no] + When enabled, scan process will not start immediately. To proceed, + press "SCAN" button (for MP150) or "COLOR" button (for other models). + To cancel, press "GRAY" button. + Gamma: + --custom-gamma[=(auto|yes|no)] [yes] + Determines whether a builtin or a custom gamma-table should be used. + --gamma-table auto|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). + Geometry: + -l auto|0..216.069mm [0] + Top-left x position of scan area. + -t auto|0..297.011mm [0] + Top-left y position of scan area. + -x auto|0..216.069mm [216.069] + Width of scan-area. + -y auto|0..297.011mm [297.011] + Height of scan-area. + Buttons: + --button-update + Update button state + --button-1 [0] + Button 1 + --button-2 [0] + Button 2 + +Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. + +List of available devices: + pixma:04A91709 diff -r cdd470f2c93f -r 9a1f50677074 fake-sane/stuff/sane-fake.log --- a/fake-sane/stuff/sane-fake.log Thu Jun 27 14:19:03 2019 +0200 +++ b/fake-sane/stuff/sane-fake.log Thu Jun 27 22:27:24 2019 +0200 @@ -1,1 +1,1 @@ -fake-sane/fake:brother:bus1;dev2,[fake] Brother MFC-8420|fake-sane/fake:hpoj:mlc:usb:psc_1200_series,[fake] Hewlett-Packard psc 1200 series|fake-sane/fake:hpaio::usb:PSC_1600_series:serial=MY5CJF3044L0,[fake] hp PSC_1600_series|fake-sane/fake:brother:bus1;dev2.patched,[fake+patched] Brother MFC-8420|fake-sane/fake:hpoj:mlc:usb:psc_1200_series.patched,[fake+patched] Hewlett-Packard psc 1200 series| +fake-sane/fake:brother:bus1;dev2,[fake] Brother MFC-8420|fake-sane/fake:hpoj:mlc:usb:psc_1200_series,[fake] Hewlett-Packard psc 1200 series|fake-sane/fake:hpaio::usb:PSC_1600_series:serial=MY5CJF3044L0,[fake] hp PSC_1600_series|fake-sane/fake:brother:bus1;dev2.patched,[fake+patched] Brother MFC-8420|fake-sane/fake:hpoj:mlc:usb:psc_1200_series.patched,[fake+patched] Hewlett-Packard psc 1200 series|fake-sane/fake:pixma:04A91709,[fake] PIXMA MP150| diff -r cdd470f2c93f -r 9a1f50677074 sane-backends/stuff/tazpanel/sane.cgi --- a/sane-backends/stuff/tazpanel/sane.cgi Thu Jun 27 14:19:03 2019 +0200 +++ b/sane-backends/stuff/tazpanel/sane.cgi Thu Jun 27 22:27:24 2019 +0200 @@ -286,7 +286,7 @@ if (match("-l-t-x-y", $1)) minmax() if (match("--resolution--brightness--contrast--source--mode", $1)) enum() } -')" +' | sed 's/||/|/g')" fi output="$(n=$(echo "$params" | wc -l); echo "$params" | \ while read name def min max ; do