Re: [sane-devel] [Scanbd] Set up for Canon PIXMA multifunction scanner - no button response

2016-10-12 Thread matt clark
Here's the original message again, removing the formatting from the
original forum website version that didn't seem to work.  Lots of the
original content went missing. Sorry for the double post if it did work for
you originally.  I've also added my config file to the end of this message,
so it's huge.
---
I've had a Canon MG8150 attached to my network for ages and decided to hook
it up to my network box (Fedora 23), basically hoping to automatically save
scans to my network drive when I press the scan button on the machine.

I followed various articles around the place to try and set this up but I
seem to have failed.  Here's a summary of where I'm up to - would love some
help troubleshooting the problem:

- Have installed sane-backends-devel via dnf, and scanbd 1.4.4 from source
(using default configure / gmake approach, no options).
- Copied the /etc/sane.d/* files to /usr/local/etc/scanbd/sane.d/
- added a symbolic link from /etc/scanbd to /usr/local/etc/scanbd just in
case anything refers to that.  I prefer working in usr to etc directly.
- Changed /etc/sane.d/saned.conf to only allow localhost
- Changed /usr/local/etc/scanbd/sane.d/saned.conf to allow all local
network clients
- Changed /etc/sane.d/net.conf to have 2 lines, connect_timeout = 3 and
localhost
- Changed /etc/sane.d/dll.conf to have only net
- Changed /etc/local/etc/scanbd/sane.d/dll.conf to comment out net, and
remove the unnecessary references (just kept pixma)
- Saved scanbd_dbus to /etc/dbus-1/system.d/scandb_dbus.conf
- Create systemd files /usr/lib/systemd/system/scanbd.service and
scanbm.socket.  Only change is to add the revised sane.d config directory.

scanbd.service:

[Unit]
Description=Scanner button polling Service

[Service]
Type=simple
ExecStart=/usr/local/sbin/scanbd -f -c /usr/local/etc/scanbd/scanbd.conf
#ExecReload=?
Environment=SANE_CONFIG_DIR=/usr/local/etc/scanbd/sane.d
StandardInput=null
StandardOutput=syslog
StandardError=syslog
#NotifyAccess=?

[Install]
WantedBy=multi-user.target
Also=scanbm.socket
Alias=dbus-de.kmux.scanbd.server.service

My scanbd.conf file is default, with some minor amendments.  See the bottom
of the message for full copy.


When the scanner is started either manually or via the service, it appears
to work ok but never picks up a button press.  The log always seems to show
a value of zero for the button polling response.

Outputs:
Test printer exists and is connected:
[matt@localhost scanbd]$ lsusb
Bus 002 Device 003: ID 04a9:174b Canon, Inc.

Test scanimage can find printer:
[matt@localhost scanbd]$ SANE_CONFIG_DIR=/usr/local/etc/scanbd/sane.d
scanimage -L
device `pixma:MG8100_192.168.1.49' is a CANON Canon PIXMA MG8100
multi-function peripheral

Scanimage can also send test greyscale.tiff to the network drive.

sane-find-scanner also finds the scanner, albeit only if signed in as root.
[matt@localhost scanbd]$ sudo sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon], product=0x174b [MG8100 series])
at libusb:002:003

I've saved the log from scanbd to pastebin because it's huge.
http://pastebin.com/T6RHVsdV

I dont know if there's anything interesting in all that.  I couldn't find
any errors. At the end of the log you can see that it just repeats a
polling cycle, but the values for the buttons never change no matter how
much I press them.

Has anyone got any thoughts on how I could get this working?

Finally, added conf files as requested by Wilhelm:

[matt@localhost scanbd]$ cat /usr/local/etc/scanbd/scanbd.conf
/*
 * $Id: scanbd.conf 213 2015-10-05 06:52:50Z wimalopaan $
 *
 *  scanbd - KMUX scanner button daemon
 *
 *  Copyright (C) 2008 - 2015  Wilhelm Meier (wilhelm.me...@fh-kl.de)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
 */


# global settings
global {
# turn on debugging

# log to console
debug   = true

# debug logging
# 1=error, 2=warn, 3=info, 4-7=debug
debug-level = 4

# drop priviliges to this user
#=
# Linux (most distributions use the saned user):
# user= saned
# ArchLinux (ArchLinux doesn't have saned user)
# user= daemon
# *BSD
# user= root
user= saned

# Group to be used
#=
# Linux (most 

[sane-devel] gscan2pdf v1.5.3 released

2016-10-12 Thread Jeffrey Ratcliffe
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Five clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.

Changelog for 1.5.3:
* Added scroll bars to all tabs on scan dialog.
  Closes bug #228 (missing scan+close button on scanning window)
* Fixed bug copy-pasting pages where subsequent operations on new pages are
  carried out on old pages.
* Changed default compression for lineart PDFs to PNG.
* Fixed cycle SANE handle option to reset options after reloading.
* Fixed Perl warnings if backend offers no "source" scan option.
* Update to Catalan translation (thanks to Davidmp)
* Update to Slovak translation (thanks to DuĊĦan Kazik)

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] [Scanbd] Set up for Canon PIXMA multifunction scanner - no button response

2016-10-12 Thread Wilhelm
Please post your config-file!


Am 12.10.2016 um 14:13 schrieb Matt:
> I've had a Canon MG8150 attached to my network for ages and decided to hook
> it up to my network box (Fedora 23), basically hoping to automatically save
> scans to my network drive when I press the scan button on the machine.
> 
> I followed various articles around the place to try and set this up but I
> seem to have failed.  Here's a summary of where I'm up to - would love some
> help troubleshooting the problem:
> 
> - Have installed sane-backends-devel via dnf, and scanbd 1.4.4 from source
> (using default configure / gmake approach, no options).
> - Copied the /etc/sane.d/* files to /usr/local/etc/scanbd/sane.d/
> - added a symbolic link from /etc/scanbd to /usr/local/etc/scanbd just in
> case anything refers to that.  I prefer working in usr to etc directly.
> - Changed /etc/sane.d/saned.conf to only allow localhost
> - Changed /usr/local/etc/scanbd/sane.d/saned.conf to allow all local network
> clients
> - Changed /etc/sane.d/net.conf to have 2 lines, connect_timeout = 3 and
> localhost
> - Changed /etc/sane.d/dll.conf to have only net
> - Changed /etc/local/etc/scanbd/sane.d/dll.conf to comment out net, and
> remove the unnecessary references (just kept pixma)
> - Saved scanbd_dbus to /etc/dbus-1/system.d/scandb_dbus.conf
> - Create systemd files /usr/lib/systemd/system/scanbd.service and
> scanbm.socket.  Only change is to add the revised sane.d config directory.
> 
> scanbd.service:
> 
> 
> My scanbd.conf file is default, with some minor amendments:
> - changed the location of the sane.d configs:
> 
> - commented out unused scanner.d device references at the end apart from the
> pixma one.
> - changed the globaltest to refer to button-1 for testing purposes, but it
> didn't seem to do anything:
> 
> - I also changed a few other actions (mostly commenting them out) but didn't
> make any difference to the output.
> 
> When the scanner is started either manually or via the service, it appears
> to work ok but never picks up a button press.  The log always seems to show
> a value of zero for the button polling response.
> 
> Outputs:
> Test printer exists and is connected:
> 
> 
> Test scanimage can find printer:
> 
> 
> Scanimage can also send test greyscale.tiff to the network drive.
> 
> sane-find-scanner also finds the scanner, albeit only if signed in as root.
> 
> 
> I've saved the log from scanbd to pastebin because it's huge. 
> http://pastebin.com/T6RHVsdV
> 
> I dont know if there's anything interesting in all that.  I couldn't find
> any errors. At the end of the log you can see that it just repeats a polling
> cycle, but the values for the buttons never change no matter how much I
> press them.
> 
> Has anyone got any thoughts on how I could get this working?
> 
> 
> 
> --
> View this message in context: 
> http://sane.10972.n7.nabble.com/Scanbd-Set-up-for-Canon-PIXMA-multifunction-scanner-no-button-response-tp20701.html
> Sent from the SANE - Dev mailing list archive at Nabble.com.
> 


-- 
Wilhelm


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] [Scanbd] Set up for Canon PIXMA multifunction scanner - no button response

2016-10-12 Thread Matt
I've had a Canon MG8150 attached to my network for ages and decided to hook
it up to my network box (Fedora 23), basically hoping to automatically save
scans to my network drive when I press the scan button on the machine.

I followed various articles around the place to try and set this up but I
seem to have failed.  Here's a summary of where I'm up to - would love some
help troubleshooting the problem:

- Have installed sane-backends-devel via dnf, and scanbd 1.4.4 from source
(using default configure / gmake approach, no options).
- Copied the /etc/sane.d/* files to /usr/local/etc/scanbd/sane.d/
- added a symbolic link from /etc/scanbd to /usr/local/etc/scanbd just in
case anything refers to that.  I prefer working in usr to etc directly.
- Changed /etc/sane.d/saned.conf to only allow localhost
- Changed /usr/local/etc/scanbd/sane.d/saned.conf to allow all local network
clients
- Changed /etc/sane.d/net.conf to have 2 lines, connect_timeout = 3 and
localhost
- Changed /etc/sane.d/dll.conf to have only net
- Changed /etc/local/etc/scanbd/sane.d/dll.conf to comment out net, and
remove the unnecessary references (just kept pixma)
- Saved scanbd_dbus to /etc/dbus-1/system.d/scandb_dbus.conf
- Create systemd files /usr/lib/systemd/system/scanbd.service and
scanbm.socket.  Only change is to add the revised sane.d config directory.

scanbd.service:


My scanbd.conf file is default, with some minor amendments:
- changed the location of the sane.d configs:

- commented out unused scanner.d device references at the end apart from the
pixma one.
- changed the globaltest to refer to button-1 for testing purposes, but it
didn't seem to do anything:

- I also changed a few other actions (mostly commenting them out) but didn't
make any difference to the output.

When the scanner is started either manually or via the service, it appears
to work ok but never picks up a button press.  The log always seems to show
a value of zero for the button polling response.

Outputs:
Test printer exists and is connected:


Test scanimage can find printer:


Scanimage can also send test greyscale.tiff to the network drive.

sane-find-scanner also finds the scanner, albeit only if signed in as root.


I've saved the log from scanbd to pastebin because it's huge. 
http://pastebin.com/T6RHVsdV

I dont know if there's anything interesting in all that.  I couldn't find
any errors. At the end of the log you can see that it just repeats a polling
cycle, but the values for the buttons never change no matter how much I
press them.

Has anyone got any thoughts on how I could get this working?



--
View this message in context: 
http://sane.10972.n7.nabble.com/Scanbd-Set-up-for-Canon-PIXMA-multifunction-scanner-no-button-response-tp20701.html
Sent from the SANE - Dev mailing list archive at Nabble.com.

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org