[sane-devel] [genesys] Canon LiDE 210: How to use scanner buttons
Thorsten M?ller wrote: Am Montag, 24. M?rz 2014, 09:17:46 schrieb Dominik Kopp: You will need somthing like scanbd: http://sourceforge.net/projects/scanbd/files/ AFAIK this is not included in any distro repositories, so you have to build it for yourself. I wrote a script and modified the configuration of scanbd to use this script with my LiDE 210. The files are attached - the genesys.conf goes into the scanner.d subdirectory under PATH/etc/scanbd. The scanbd.conf file replaces the one shipped with the sources. The autopdf script goes into the PATH/etc/scanbd directory. It makes use of consolekit to get the user name who started the scanning process and KDE's kdialog to get file names for saving scanned pages and the like. Since you mentioned gscan2pdf, you probably use gnome. You could try to modify the script into using zenity. The autopdf config file goes into your home dir as .autopdf or into /etc/default/ which is the location for default settings on debian systems. HTH Greetings Skildron Thanks. I'm also using KDE. gscan2pfd is just a nice scanning application. Some month ago I tried to install and configure scandb for my old scanner, but I didn't accomplish the mission. In most cases it would be totally fine for me to start the scanning programm (skanlite, gscan2pdf, xsane,...), configure it (b/w or colour, resolution, file name...) and then scan several pages by using the scanner's button. I don't need the power of scandb. I'm just questioning whether xsane (or gscan2pdf, or skanlite) can react on a pressed buttons or not. To put it in a nutshell: Is it a problem before or behind the keyboard? Greetings Dominik
[sane-devel] [genesys] Canon LiDE 210: How to use scanner buttons
Hi, I'm using sane 1.0.24 and have a Canon LiDE 210. scanimage -A provides: ... Sensors: --scan[=(yes|no)] [no] [hardware] Scan button --file[=(yes|no)] [no] [hardware] File button --email[=(yes|no)] [no] [hardware] Email button --copy[=(yes|no)] [no] [hardware] Copy button --extra[=(yes|no)] [no] [hardware] Extra button then I press one one of the scanner buttons and repeat scanimage -A. Same result. And using the scanner buttons in XSane and/or gscan2pdf have no effects. Looking in xsane at window-show advanced options the five sensor flags ar always unmarked. What am I doing wrong? What I want is to scan multiple pages without touching the mouse or keyboard by using one of the five scanner buttons. Dominik (tested under openSUSE 13.1 and Fedora 20)
[sane-devel] genesys md6228: buttons supported?
Hi, does my scanner MD6228 (ID 0461:0377) support the hardware buttons? (probably equal to Medion MD 5345) Because the buttons (OCR, email, copy...) in skanlite as well as in xscan are grey. And scanimage -A shows: All options specific to device `genesys:libusb:004:003': Scan Mode: --mode Color|Gray|Lineart [Gray] Selects the scan mode (e.g., lineart, monochrome, or color). ... than the vertical resolution this disables horizontal interpolation. --color-filter Red|Green|Blue [Green] When using gray or lineart this option selects the used color. Sensors: --scan[=(yes|no)] [no] [hardware] Scan button --email[=(yes|no)] [no] [hardware] Email button --copy[=(yes|no)] [no] [hardware] Copy button --ocr[=(yes|no)] [no] [hardware] OCR button --power[=(yes|no)] [no] [hardware] Power button Buttons: --clear-calibration Clear calibration cache Dominik
[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Louis Lagendijk wrote: On Thu, 2013-01-03 at 22:12 +0100, Dominik Kopp wrote: This was something missed in the autoconf configuation. I hopefully fixed it in svn. Can you try again? I also fixed the autoconf rebuilding. yes, make all was sucessfully. it compiles. Note: in the doc/README.txt chapter 1.1 stands, that libjpeg8-devel is required. however, it seems to work with libjpeg62(-devel) as well, which is installed per default (nevertheless, the libjpeg8(-devel) is also available in the repo) ok, and where is the binary? (this is my fourth or fifth program I'm trying to compile. Therefore I'm not very skilled...) In src/scanbd. Use make install to install the binary. It ends up in /usr/local/bin or /usr/local/sbin cc -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL -c -o scanbd.o scanbd.c In file included from scanbd.h:45:0, from scanbd.c:23: slog.h:33:1: error: unknown type name ?bool? In file included from scanbd_dbus.h:33:0, from scanbd.h:46, from scanbd.c:23: /usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: Datei oder Verzeichnis nicht gefunden compilation terminated. make: *** [scanbd.o] Fehler 1 Did you change something in the Makefile? no It is really strange that it tries to compile with HAL and not UDEV. I would guess that Suse switched to udev? yes, suse moved completely from hal to udev. echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/ Copy scanbd_dbus.conf to /etc/dbus-1/system.d/ cp scanbd_dbus.conf /etc/dbus-1/system.d cp scanbuttond/backends/meta.conf /usr/local/etc/scanbd/scanbuttond/backends || /bin/true echo Edit /etc/inetd.conf Edit /etc/inetd.conf is that OK? Should I try to move forward with the next steps as described in INSTALL? It looks that you compiled scanbd ok here. So you should be able to continue from here. Have a look at scanbd.conf and Try scanbd -f regards, Louis next problem: I don't have any /etc/inetd.conf opensuse has /etc/xinetd.conf And this uses a different style as in chapter 3) of README.txt (sane-port stream tcp4 nowait ... regards Dominik
[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Louis Lagendijk wrote: hello On Wed, 2013-01-02 at 20:45 +0100, Dominik Kopp wrote: There is something wrong with the autoconf configuration that you need to solve before you can run autoreconf -if if you have installed autoconf and libtool (install them first otherwise). I will check what we are missing in svn to avoid this in the future. After running autoreconf, run configure again. If compilation still fails, please report back to me and we will work on it. Kind regards, Louis I installed libtool (autoconf 1.12 was already installed) and did the autoreconf -if the ./configure and make fails again with same error message. I changed also the line 140 in the makefile from automake-1.11 into automake 1.12, but this doesn't make any differences, too. regards Dominik
[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Wilhelm wrote: Hi Dominik, Am 02.01.2013 20:45, schrieb Dominik Kopp: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse- linux/bin/ld: dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse- linux/bin/ld: note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line /lib64/libpthread.so.0: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[1]: *** [scanbd] Fehler 1 make[1]: Leaving directory `/home/dom/scanbd/trunk/src/scanbd' make: *** [all-recursive] Fehler 1 looks like -lpthread is missing on openSUSE. file /lib64/libpthread.so.0 exists. (linked to /lib64/libpthread-2.15.so) Do you mind trying to compile with the Makefile.simple instead of configure? dom at linux-8k4r:~/scanbd/trunk make -f Makefile.simple make -f Makefile.simple -C src/scanbd all make[1]: Entering directory `/home/dom/scanbd/trunk/src/scanbd' cc scanbd.o slog.o sane.o daemonize.o dbus.o udev.o -lsane -ludev - lconfuse -lpthread -ldbus-1 -o scanbd make[1]: Leaving directory `/home/dom/scanbd/trunk/src/scanbd' make -f Makefile.simple -C doc all make[1]: Entering directory `/home/dom/scanbd/trunk/doc' echo Generating manpage scanbd.8...; Generating manpage scanbd.8... sed -e 's|@PACKAGEVERSION@|1.2.1|g' \ -e 's|@PACKAGENAME@|scanbd|g' \ -e 's|@SBINDIR@|/usr/local/bin|g' \ -e 's|@SCANBDCFGDIR@|/usr/local/etc/scanbd|g' scanbd.man scanbd.8 make[1]: Leaving directory `/home/dom/scanbd/trunk/doc' ok, and where is the binary? (this is my fourth or fifth program I'm trying to compile. Therefore I'm not very skilled...) As safer aproach would be to use scanbd-1.2.1 instead of trunk. ok, according to the INSTALL file: dom at linux-8k4r:~/scanbd/releases/1.2.1 USE_SANE=yes make -e clean all make -C scanbuttond clean make[1]: Entering directory `/home/dom/scanbd/releases/1.2.1/scanbuttond' make -C backends clean make[2]: Entering directory `/home/dom/scanbd/releases/1.2.1/scanbuttond/backends' rm -f *.o *~ *.so make[2]: Leaving directory `/home/dom/scanbd/releases/1.2.1/scanbuttond/backends' make -C interface clean make[2]: Entering directory `/home/dom/scanbd/releases/1.2.1/scanbuttond/interface' rm -f *.o *~ make[2]: Leaving directory `/home/dom/scanbd/releases/1.2.1/scanbuttond/interface' rm -f *~ make[1]: Leaving directory `/home/dom/scanbd/releases/1.2.1/scanbuttond' rm -f -f scanbd test *.o *~ cc -DUSE_SANE -UUSE_SCANBUTTOND -DUSE_HAL -c -o scanbd.o scanbd.c In file included from scanbd.h:45:0, from scanbd.c:23: slog.h:33:1: error: unknown type name ?bool? In file included from scanbd_dbus.h:33:0, from scanbd.h:46, from scanbd.c:23: /usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: Datei oder Verzeichnis nicht gefunden compilation terminated. make: *** [scanbd.o] Fehler 1 dbus-1-devel package is installed and contains following files: /usr/include/dbus-1.0/dbus/dbus.h /usr/lib64/dbus-1.0/include/dbus/dbus-arch-deps.h ... (full list at http://pkgs.org/opensuse-12.2/opensuse-update-x86_64/dbus-1- devel-1.5.12-4.10.1.x86_64.rpm.html ) - then I tried: dom at linux-8k4r:~/scanbd/releases/1.2.1 make clean all ok, this is working. make install does mostly well. dom at linux-8k4r:~/scanbd/releases/1.2.1 su Passwort: linux-8k4r:/home/dom/scanbd/releases/1.2.1 # make install echo Make /usr/local/etc/scanbd Make /usr/local/etc/scanbd mkdir -p /usr/local/etc/scanbd echo Copy files to /usr/local/etc/scanbd Copy files to /usr/local/etc/scanbd cp scanbd.conf /usr/local/etc/scanbd cp example.script /usr/local/etc/scanbd cp scanadf.script /usr/local/etc/scanbd cp test.script /usr/local/etc/scanbd echo Copy scanbd to /usr/local/bin Copy scanbd to /usr/local/bin mkdir -p /usr/local/bin cp scanbd /usr/local/bin echo Copy scanbuttond backends to /usr/local/etc/scanbd/scanbuttond/backends Copy scanbuttond backends to /usr/local/etc/scanbd/scanbuttond/backends mkdir -p /usr/local/etc/scanbd/scanbuttond/backends cp scanbuttond/backends/*.so /usr/local/etc/scanbd/scanbuttond/backends || /bin/true cp: Aufruf von stat f?r ?scanbuttond/backends/*.so? nicht m?glich: Datei oder Verzeichnis nicht gefunden echo Copy scanbd_dbus.conf to /etc/dbus-1/system.d/ Copy scanbd_dbus.conf to /etc/dbus-1/system.d/ cp scanbd_dbus.conf /etc/dbus-1/system.d cp scanbuttond/backends/meta.conf /usr/local/etc/scanbd/scanbuttond/backends || /bin/true echo Edit /etc/inetd.conf Edit /etc/inetd.conf is that OK? Should I try to move forward with the next steps as described in INSTALL? regards Dominik
[sane-devel] compile problems with scanbd: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Hi, I'm trying to complile scanbd inside VirtualBox (host/client both openSUSE 12.2 64-bit) but I have no success. The error message during make is: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: dbus.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5' Here are my executed commands with the (hopefully) important parts of the output messages: dom at linux-8k4r:~ svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/ ... Ausgecheckt, Revision 132. dom at linux-8k4r:~/scanbd/trunk cd scanbd dom at linux-8k4r:~/scanbd/trunk cd trunk dom at linux-8k4r:~/scanbd/trunk ./configure ... checking pkg-config is at least version 0.9.0... yes checking for CONFUSE... yes checking for DBUS... yes checking for UDEV... yes checking for SANE... no checking for sane-config... sane-config configure: creating ./config.status config.status: creating Makefile config.status: creating src/scanbd/Makefile ... dom at linux-8k4r:~/scanbd/trunk make cd . /bin/sh /home/dom/scanbd/trunk/missing --run automake-1.11 -- foreign /home/dom/scanbd/trunk/missing: Zeile 52: automake-1.11: Kommando nicht gefunden. WARNING: `automake-1.11' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.ac'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. CDPATH=${ZSH_VERSION+.}: cd . /bin/sh /home/dom/scanbd/trunk/missing --run autoconf aclocal.m4:17: warning: this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'. /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p ... gcc -DPACKAGE_NAME=\scanbd\ -DPACKAGE_TARNAME=\scanbd\ - DPACKAGE_VERSION=\1.2.1\ -DPACKAGE_STRING=\scanbd\ 1.2.1\ - DPACKAGE_BUGREPORT=\wilhelm.meier at fh-kl.de\ -DPACKAGE_URL=\\ - DPACKAGE=\scanbd\ -DVERSION=\1.2.1\ -DSTDC_HEADERS=1 - DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 - DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\.libs/\ -DHAVE_ALARM=1 - DHAVE_DUP2=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 - DHAVE_PUTENV=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 - DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 - DHAVE_UNISTD_H=1 -DHAVE_CHOWN=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 - DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 - DHAVE_MALLOC=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_LINUX_LIMITS_H=1 - DHAVE_UTMP_H=1 -DHAVE_UTMPX_H=1 -DUSE_UDEV=1 -DUSE_SANE=1 -I.-Wall - Wextra - std=c99 -g -Werror -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ - DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\ -g -O2 -MT sane.o -MD -MP -MF .deps/sane.Tpo -c -o sane.o sane.c mv -f .deps/sane.Tpo .deps/sane.Po /bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -Wextra -std=c99 -g -Werror -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include- DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ - DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\ -g -O2 -lconfuse -ludev -lrt -ldbus-1 -rdynamic -lsane -L/usr/lib64 -lnetsnmp -lcrypto -lm -ldl -lm -ljpeg -lgphoto2 -lgphoto2_port -lm -lexif -lusb-1.0 -o scanbd scanbd.o daemonize.o dbus.o udev.o slog.o sane.o -ldl libtool: link: gcc -Wall -Wextra -std=c99 -g -Werror -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include - DSCANBUTTOND_LIB_DIR=\/usr/local/lib64/scanbd/scanbuttond/backends/\ - DSCANBD_CFG_DIR=\/usr/local/etc/scanbd/\ -g -O2 -rdynamic