meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:sane [2021/07/08 11:02] – niziak | linux:sane [2024/12/15 19:21] (current) – niziak | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| * xscanimage - simple GUI, scans directly to file, not possible to view scanned image | * xscanimage - simple GUI, scans directly to file, not possible to view scanned image | ||
| * simple-scan - perfect to fast scanning of books, etc ,very simple GUI (photo/ | * simple-scan - perfect to fast scanning of books, etc ,very simple GUI (photo/ | ||
| + | * [[https:// | ||
| * [-] brightness/ | * [-] brightness/ | ||
| * skanlite - works slowly, performs some USB polling | * skanlite - works slowly, performs some USB polling | ||
| Line 24: | Line 25: | ||
| * Download and extract udev rules from: [[https:// | * Download and extract udev rules from: [[https:// | ||
| * rules are inside `CONTENTS.cpio` file | * rules are inside `CONTENTS.cpio` file | ||
| + | * or here: {{ : | ||
| * <code bash> | * <code bash> | ||
| * <code bash> | * <code bash> | ||
| Line 43: | Line 45: | ||
| ===== sane ===== | ===== sane ===== | ||
| - | From sane list, it should be supproted | + | |
| + | From sane list, it should be supported | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | Move all .conf files from ''/ | ||
| + | <code bash> | ||
| + | mkdir / | ||
| + | mv / | ||
| + | </ | ||
| + | |||
| + | Create new config: | ||
| + | <file ini / | ||
| + | # Autodetect the Canon CanoScan LiDE 400 | ||
| + | usb 0x04a9 0x1912 | ||
| + | </ | ||
| ==== Build as DEB ==== | ==== Build as DEB ==== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | === manual download === | ||
| + | |||
| + | Download source package from [[https:// | ||
| + | * sane-backends_1.0.31-4.dsc | ||
| + | * sane-backends_1.0.31.orig.tar.gz | ||
| + | * sane-backends_1.0.31-4.debian.tar.xz | ||
| + | |||
| + | <code bash> | ||
| + | dpkg-source -x sane-backends_1.0.31-4.dsc | ||
| + | cd sane-backends-1.0.31 | ||
| + | dpkg-checkbuilddeps | ||
| + | sudo mk-build-deps -i | ||
| + | # sudo apt-get install libcurl4-gnutls-dev | ||
| + | dpkg -i ../ | ||
| + | </ | ||
| + | |||
| + | |||
| + | === apt source download === | ||
| <code bash> | <code bash> | ||
| - | apt-get install build-essential fakeroot devscripts | ||
| - | cd /usr/src | ||
| apt-get source sane-backends | apt-get source sane-backends | ||
| - | cd sane-backends-1.0.27/ | + | cd sane-backends-1.0.27 |
| + | </code> | ||
| + | |||
| + | === build === | ||
| + | |||
| + | <code bash> | ||
| apt-get build-dep sane-backends | apt-get build-dep sane-backends | ||
| debuild -b -uc -us | debuild -b -uc -us | ||
| Line 58: | Line 99: | ||
| ==== Build from source ==== | ==== Build from source ==== | ||
| + | |||
| Remove files installed by distribution: | Remove files installed by distribution: | ||
| <code bash> | <code bash> | ||
| Line 87: | Line 129: | ||
| device `pixma: | device `pixma: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== gamma adjust ===== | ||
| + | |||
| + | Scanner backends supports custom gamma table of size 1024 (10bits). Color range is from 0 to 65535. | ||
| + | To get raw color scan from scanner: | ||
| + | <code bash> | ||
| + | scanimage --custom-gamma=yes --gamma-table `gamma4scanimage 1.0 0 1023 1023 65535` | ||
| + | </ | ||
| + | |||
| + | Options are described here: [[http:// | ||
| + | |||
| + | To get white paper scans: | ||
| + | <code bash> | ||
| + | |||
| + | |||
| + | |||
| ===== Issues ===== | ===== Issues ===== | ||