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 [2019/12/26 10:52] – [Issues] niziak | linux:sane [2024/12/15 19:21] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== SANE ====== | ||
| + | |||
| + | SANE - Scanner Access Now Easy | ||
| + | |||
| + | |||
| + | |||
| ====== Sane frontends in Debian ====== | ====== Sane frontends in Debian ====== | ||
| * xsane | * xsane | ||
| * 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/ | ||
| + | | ||
| * gscan2pdf | * gscan2pdf | ||
| + | |||
| ====== Sane backend ====== | ====== Sane backend ====== | ||
| Line 13: | Line 21: | ||
| usermod -aG lp saned | usermod -aG lp saned | ||
| </ | </ | ||
| + | |||
| + | Prepare udev rules to give access permission to USB: | ||
| + | * Download and extract udev rules from: [[https:// | ||
| + | * rules are inside `CONTENTS.cpio` file | ||
| + | * or here: {{ : | ||
| + | * <code bash> | ||
| + | * <code bash> | ||
| List scanners: | List scanners: | ||
| + | |||
| <code bash> | <code bash> | ||
| scanimage -L | scanimage -L | ||
| Line 21: | Line 37: | ||
| ====== Canon Lide 400 ====== | ====== Canon Lide 400 ====== | ||
| - | Bus 001 Device 003: ID 04a9:1912 Canon, Inc. | + | < |
| ===== proprietary ===== | ===== proprietary ===== | ||
| Line 29: | 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 | ||
| - | dpkg -i ../fdupes_1.50-PR2-3_< | + | dpkg -i ../sane-backends.deb |
| </ | </ | ||
| ==== Build from source ==== | ==== Build from source ==== | ||
| - | < | + | Remove files installed by distribution: |
| - | apt-get | + | < |
| + | sudo apt-get | ||
| + | </ | ||
| + | <code bash> | ||
| + | apt-get install libjpeg-dev libpng-dev libpoppler-glib-dev | ||
| git clone https:// | git clone https:// | ||
| </ | </ | ||
| Line 57: | Line 116: | ||
| Download daily snapshoot from: http:// | Download daily snapshoot from: http:// | ||
| <code bash> | <code bash> | ||
| + | apt-get install libjpeg-dev libpng-dev libpoppler-glib-dev libglib2.0-dev | ||
| ./configure | ./configure | ||
| make | make | ||
| sudo make install | sudo make install | ||
| + | sudo ldconfig | ||
| </ | </ | ||
| Line 68: | 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 ===== | ||
| Line 112: | Line 190: | ||
| </ | </ | ||
| + | ===== Others ===== | ||
| + | Epson driver: [[https:// | ||