[sane-devel] Scanner Button Daemon [scanbd]: release 1.3

Michael Watson mwatson33 at comcast.net
Sun Jan 6 20:25:38 UTC 2013


Thank you.

I have 1.3 working on archlinuxarm (systemd).  Please find below
"integration" tweaks:

------------------------------------------------------
/usr/lib/systemd/system/scanbd.service
#Type=simple
# dbus
Type=dbus

------------------------------------------------------
/usr/lib/systemd/system/scanbm at .service
# required for systemctl enable scanbm@
[Install]
WantedBy=multi-user.target

#/etc/systemd/system/multi-user.target.wants/scanbm at .service ->
/usr/lib/systemd/system/scanbm at .service
------------------------------------------------------
/etc/xinetd.d/sane
service sane-port
{
        port        = 6566
        socket_type = stream
        wait        = no
        user        = saned
        group       = scanner
        server      = /usr/local/sbin/scanbm
	  #not sure if this is required
        server_args = scanbm
        # disabled by default!
        disable     = no
}
------------------------------------------------------

R/
Michael

-----Original Message-----
From: sane-devel-bounces+mwatson33=comcast.net at lists.alioth.debian.org
[mailto:sane-devel-bounces+mwatson33=comcast.net at lists.alioth.debian.org] On
Behalf Of sane-devel-request at lists.alioth.debian.org
Sent: Sunday, January 06, 2013 7:00 AM
To: sane-devel at lists.alioth.debian.org
Subject: sane-devel Digest, Vol 91, Issue 6


Send sane-devel mailing list submissions to
	sane-devel at lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
or, via email, send a message with subject or body 'help' to
	sane-devel-request at lists.alioth.debian.org

You can reach the person managing the list at
	sane-devel-owner at lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of sane-devel digest..."


Today's Topics:

   1. Willing to test Canon MG8150 (David Legg)
   2. Re: compile problems with scanbd: undefined reference	to
      symbol 'pthread_sigmask@@GLIBC_2.2.5' (Dominik Kopp)
   3. Re: compile problems with scanbd: undefined reference to
      symbol 'pthread_sigmask@@GLIBC_2.2.5' (Prof. Dr.-Ing. Wilhelm Meier)
   4. Scanner Button Daemon [scanbd]: release 1.3 (Wilhelm)
   5. Re: Scanner Button Daemon [scanbd]: release 1.3 (e.marc at orange.fr)


----------------------------------------------------------------------

Message: 1
Date: Sat, 05 Jan 2013 17:40:55 +0000
From: David Legg <david.legg at searchevent.co.uk>
To: sane-devel at lists.alioth.debian.org
Subject: [sane-devel] Willing to test Canon MG8150
Message-ID: <50E865A7.2040408 at searchevent.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I bought a Canon Pixma MG8150 printer over a year ago which has been 
brilliant for both printing and scanning.

Recently, I've acquired the family slides which I'd like to archive for 
safety and so I tried the slide scanner.  After setting the scan source 
to 'Transparency Unit' and pressing the Scan button I can see the slide 
scanning light turn on but after a few moments a dialog pops up to say 
'Operation was cancelled.'

The device is attached to the network via cat6 ethernet cable. Normal 
document scanning and printing works fine, it is just the slide scanner 
which stalls.  I'm running xsane 0.998 on an Ubuntu 12.10 (64bit) system 
with 8GB ram and 3TB storage.

I see from the SANE compatibility table [1] that testers are wanted for 
this model... I'm happy to help :-)


Regards,
David Legg


[1] http://www.sane-project.org/sane-mfgs.html#Z-CANON



------------------------------

Message: 2
Date: Sun, 06 Jan 2013 00:12:27 +0100
From: Dominik Kopp <my at kabelfunk.de>
To: sane-devel at lists.alioth.debian.org
Subject: Re: [sane-devel] compile problems with scanbd: undefined
	reference	to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Message-ID: <kcac0e$gc5$1 at ger.gmane.org>
Content-Type: text/plain; charset="UTF-8"

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




------------------------------

Message: 3
Date: Sun, 6 Jan 2013 08:54:16 +0100
From: "Prof. Dr.-Ing. Wilhelm Meier" <wilhelm.meier at fh-kl.de>
To: Dominik Kopp <my at kabelfunk.de>,
	<sane-devel at lists.alioth.debian.org>
Subject: Re: [sane-devel] compile problems with scanbd: undefined
	reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
Message-ID: <50E92DA8.7030106 at fh-kl.de>
Content-Type: text/plain; charset="UTF-8"; format=flowed

Am 06.01.2013 00:12, schrieb Dominik Kopp:
> 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 ..."

Just updated trunk to include an example.

But you can also look here (in german):

http://www.mehr4u.de/component/k2/item/99-mit-scanbd-scannertasen-an-einem-c
anon-mx700-nutzen.html

-- 
Wilhelm




------------------------------

Message: 4
Date: Sun, 6 Jan 2013 09:11:48 +0100
From: Wilhelm <wilhelm.meier at fh-kl.de>
To: <sane-devel at lists.alioth.debian.org>
Subject: [sane-devel] Scanner Button Daemon [scanbd]: release 1.3
Message-ID: <50E931C4.9070305 at fh-kl.de>
Content-Type: text/plain; charset="ISO-8859-15"; format=flowed

Hi all,

I like to announce the new version 1.3 of scanbd, the scanner button 
daemon.

This release is mostly a maintainers release as it restructures the 
layout of the source repository and adds support for autotools / 
configure. This makes compilation / integration much more simple. More 
documentation and helpful integration files (like systemd-config or 
startup for FreeBSD e.g.) for various platforms are added.

I would like to clearly mention that all the hard work was done by Louis
Lagendijk (louis at fazant.net)! Many thanks for his efforts and his 
patience!

http://sourceforge.net/projects/scanbd/files/releases/scanbd-1.3.tar.gz/down
load

or

svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/releases/1.3

[
scanbd is a scanner button daemon. It polls the scanner buttons looking for
buttons pressed or function knob changes or other scanner events  as 
paper inserts / removals and at the same time allows
also scan-applications to access the scanners. If buttons are pressed, etc.,
various actions can be submitted (scan, copy, email, ...) via 
action scripts. The function knob values are passed to the 
action-scripts as well. Scan actions are also signaled via dbus. This 
can be useful for foreign applications. Scans can also be triggered via 
dbus from foreign applications.
On platforms which support signaling of dynamic device insertion / 
removal (libudev, dbus, hal) scanbd supports this as well. scanbd can use
all sane-backends or some special backends from the (old) 
scanbuttond project.
Supported platforms: Linux, FreeBSD, NetBSD, OpenBSD
]

-- 
Wilhelm




------------------------------

Message: 5
Date: Sun, 6 Jan 2013 10:28:33 +0100
From: e.marc at orange.fr
To: sane-devel at lists.alioth.debian.org
Subject: Re: [sane-devel] Scanner Button Daemon [scanbd]: release 1.3
Message-ID: <201301061028.33744.e.marc at orange.fr>
Content-Type: Text/Plain;  charset="iso-8859-1"

Hello,

I tired to setup this version on my Debain Wheezy system. Unfortunatelly,
I'm not keen on compilation and setup of application :-(

In Readme, it is OK for ?1.

But for ?2, which file scanbd_dbus.confmust be copied?wher is it  created by

your bundle?
===
2) scanbd_dbus.conf

copy this file into the dbus system-bus configuration directory 
(/etc/dbus-1/system.d/ or /usr/local/etc/dbus-1/system.d/), then restart
dbus and hald. ===

Then is ther an install command to apply, in user or in su mode? often there

is a ./configure, a make all and an install, isn't it?

Regards

Le dimanche 6 janvier 2013 09:11:48, Wilhelm a ?crit :
> Hi all,
> 
> I like to announce the new version 1.3 of scanbd, the scanner button 
> daemon.
> 
> This release is mostly a maintainers release as it restructures the 
> layout of the source repository and adds support for autotools / 
> configure. This makes compilation / integration much more simple. More 
> documentation and helpful integration files (like systemd-config or 
> startup for FreeBSD e.g.) for various platforms are added.
> 
> I would like to clearly mention that all the hard work was done by 
> Louis Lagendijk (louis at fazant.net)! Many thanks for his efforts and 
> his patience!
> 
> http://sourceforge.net/projects/scanbd/files/releases/scanbd-1.3.tar.g
> z/dow
> nload
> 
> or
> 
> svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/releases/1.3
> 
> [
> scanbd is a scanner button daemon. It polls the scanner buttons 
> looking for buttons pressed or function knob changes or other scanner 
> events  as paper inserts / removals and at the same time allows also 
> scan-applications to access the scanners. If buttons are pressed, 
> etc., various actions can be submitted (scan, copy, email, ...) via 
> action scripts. The function knob values are passed to the 
> action-scripts as well. Scan actions are also signaled via dbus. This 
> can be useful for foreign applications. Scans can also be triggered 
> via dbus from foreign applications. On platforms which support 
> signaling of dynamic device insertion / removal (libudev, dbus, hal) 
> scanbd supports this as well. scanbd can use all sane-backends or some 
> special backends from the (old) scanbuttond project.
> Supported platforms: Linux, FreeBSD, NetBSD, OpenBSD
> ]



------------------------------

_______________________________________________
sane-devel mailing list
sane-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel

End of sane-devel Digest, Vol 91, Issue 6
*****************************************




More information about the sane-devel mailing list