[sane-devel] [scanbd] CanoScan 210 buttons "off by one"
Michael Watson
mwatson33 at comcast.net
Wed Jan 30 23:54:38 UTC 2013
Greetings,
One can argue s it's not off by one - per the manual the button with the PDF
label (left most) is PDF start and the PDF finish has the >| looking symbol,
like when you go to the end of a video (finished? :)).
To get the right-most PDF button to work - it's mapped as file. I utilize:
action file0 {
filter = "^file.*"
numerical-trigger {
from-value = 1
to-value = 0
}
desc = "Scan to pdf start"
# script must be an relative path starting from scriptdir
(see above),
# or an absolute pathname.
# It must contain the path to the action script without
arguments
# Absolute path example: script = "/some/path/foo.script
# script = "test.script"
script = "/usr/local/etc/scanbd/ccp2pdf0.script"
}
R/
Mike
-----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: Wednesday, January 30, 2013 7:00 AM
To: sane-devel at lists.alioth.debian.org
Subject: sane-devel Digest, Vol 91, Issue 38
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. [scanbd] CanoScan 210 buttons "off by one" (Hans Schou)
2. Re: [scanbd] CanoScan 210 buttons "off by one" (Wilhelm)
----------------------------------------------------------------------
Message: 1
Date: Tue, 29 Jan 2013 18:13:00 +0100
From: Hans Schou <hans.schou at gmail.com>
To: sane-devel at lists.alioth.debian.org
Subject: [sane-devel] [scanbd] CanoScan 210 buttons "off by one"
Message-ID:
<CAApBw35sX2jEf7WcOpF2rKeL7AnyXeJzZKV=MPONZigTTX66fg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi
I have successful installed scanbd 1.3 and it works fine with my Canon
CanoScan LiDE 210.
I only have one small problem: The scanner has 5 buttons and only 3 of them
is working.
Press -> SCANBD_ACTION
-----------------------------------
Email -> [does not work]
Copy -> email
Auto scan -> copy
PDF-end -> scan
PDF-start -> [does not work]
It seems like there is a mapping problem which is "off by one" or something
like that.
The syslog is rather large so here is some of the lines which might give a
clue about what is wrong:
Jan 29 10:28:09 h scanbd: scanbd: found 41 options for device
genesys:libusb:001:005 Jan 29 10:28:09 h scanbd: scanbd: found 5 actions in
section (null) Jan 29 10:28:09 h scanbd: scanbd: option[29] sensors for
device genesys:libusb:001:005 not of type BOOL|INT|FIXED|STRING|BUTTON.
Skipping Jan 29 10:28:09 h scanbd: scanbd: found active option[30] scan
(type: 0) for device genesys:libusb:001:005 Jan 29 10:28:09 h scanbd:
scanbd: installing action scan (0) for genesys:libusb:001:005, option[30]:
scan as: test.script Jan 29 10:28:09 h scanbd: scanbd: multiple actions
allowed Jan 29 10:28:09 h scanbd: scanbd: Initial value of option scan is
358649033 Jan 29 10:28:09 h scanbd: scanbd: found active option[31] file
(type: 0) for device genesys:libusb:001:005 Jan 29 10:28:09 h scanbd:
scanbd: found active option[32] email (type: 0) for device
genesys:libusb:001:005 Jan 29 10:28:09 h scanbd: scanbd: found active
option[33] copy (type: 0) for device genesys:libusb:001:005 Jan 29 12:43:54
h scanbd: scanbd: installing action copy (2) for genesys:libusb:001:005,
option[33]: copy as: test.script Jan 29 14:38:25 h scanbd: scanbd: trigger
action for email for device genesys:libusb:001:005 with script test.script
Jan 29 14:38:25 h scanbd: scanbd: Value of mode as string (len 4, hash
2089152600): Gray
Jan 29 14:38:26 h scanbd: scanbd: waiting for child:
/usr/local/etc/scanbd/test.script
Full syslog can be found here http://sslug.dk/~chlor/canon/#scanbd
Any help appreciated.
best regards
Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130129/93
1c64d8/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 29 Jan 2013 19:54:47 +0100
From: Wilhelm <wilhelm.meier at fh-kl.de>
To: Hans Schou <hans.schou at gmail.com>
Cc: sane-devel at lists.alioth.debian.org
Subject: Re: [sane-devel] [scanbd] CanoScan 210 buttons "off by one"
Message-ID: <51081AF7.5000308 at fh-kl.de>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Am 29.01.2013 18:13, schrieb Hans Schou:
> Hi
>
> I have successful installed scanbd 1.3 and it works fine with my Canon
> CanoScan LiDE 210.
>
> I only have one small problem: The scanner has 5 buttons and only 3 of
> them is working.
>
> Press -> SCANBD_ACTION
> -----------------------------------
> Email -> [does not work]
> Copy -> email
> Auto scan -> copy
> PDF-end -> scan
> PDF-start -> [does not work]
You installed scripts for options
"scan2, "email", "copy", "preview"
you missed: "file"
The naming and function of the buttons are in total control of the
backend not scanbd. So, I think that "preview" isn't a button. Try to
use the option "file" instead.
>
> It seems like there is a mapping problem which is "off by one" or
> something like that.
>
> The syslog is rather large so here is some of the lines which might
> give a clue about what is wrong:
>
> Jan 29 10:28:09 h scanbd: scanbd: found 41 options for device
> genesys:libusb:001:005 Jan 29 10:28:09 h scanbd: scanbd: found 5
> actions in section (null) Jan 29 10:28:09 h scanbd: scanbd: option[29]
> sensors for device genesys:libusb:001:005 not of type
> BOOL|INT|FIXED|STRING|BUTTON. Skipping Jan 29 10:28:09 h scanbd:
> scanbd: found active option[30] scan (type: 0) for device
> genesys:libusb:001:005 Jan 29 10:28:09 h scanbd: scanbd: installing
> action scan (0) for genesys:libusb:001:005, option[30]: scan as:
> test.script Jan 29 10:28:09 h scanbd: scanbd: multiple actions allowed
> Jan 29 10:28:09 h scanbd: scanbd: Initial value of option scan is
358649033
> Jan 29 10:28:09 h scanbd: scanbd: found active option[31] file (type: 0)
> for device genesys:libusb:001:005
> Jan 29 10:28:09 h scanbd: scanbd: found active option[32] email (type:
> 0) for device genesys:libusb:001:005
> Jan 29 10:28:09 h scanbd: scanbd: found active option[33] copy (type: 0)
> for device genesys:libusb:001:005
> Jan 29 12:43:54 h scanbd: scanbd: installing action copy (2) for
> genesys:libusb:001:005, option[33]: copy as: test.script
> Jan 29 14:38:25 h scanbd: scanbd: trigger action for email for device
> genesys:libusb:001:005 with script test.script
> Jan 29 14:38:25 h scanbd: scanbd: Value of mode as string (len 4, hash
> 2089152600): Gray
> Jan 29 14:38:26 h scanbd: scanbd: waiting for child:
> /usr/local/etc/scanbd/test.script
>
> Full syslog can be found here http://sslug.dk/~chlor/canon/#scanbd
>
> Any help appreciated.
>
> best regards
> Hans
>
>
--
Wilhelm
------------------------------
_______________________________________________
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 38
******************************************
More information about the sane-devel
mailing list