[sane-devel] Testing for Canon PIXMA MG5420

Rolf Bensch rolf at bensch-online.de
Tue Apr 4 09:41:16 UTC 2017

Hi James,

Many thanks for your report.

Your scanner has already been listed as supported in the listing for the
SANE Development (git) Version

You can check if the backend (pixma) implementation supports button
controlled scanning with your scanner:

(1) Connect your scanner via USB, disconnect WiFi

(2) Push any button, which should trigger a scan

(3) Request the pushed button on a console with:
$ SANE_DEBUG_PIXMA=11 scanimage -A

The response should contain data similar like this:

        Update button state
[pixma] INTR T=1.270 len=32
[pixma]  00000000:00 30 00 00 00 00 00 00  00 00 00 00 00 00 00 00
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
    --button-1 <int> [1] [read-only]
        Button 1
    --button-2 <int> [0] [read-only]
        Button 2
    --original <int> [0] [read-only]
        Type of original to scan
    --target <int> [3] [read-only]
        Target operation type
    --scan-resolution <int> [0] [read-only]
        Scan resolution

If the response doesn't contain lines starting with [pixma], your
scanner doesn't support button controlled scanning.

If you can see lines starting with [pixma], please report this data for
all available buttons.

Hope this helps.


Am 30.03.2017 um 00:06 schrieb James Duvall:
> I have a Canon PIXMA MG5420 printer/scanner that seems to mostly work
> with sane-pixma backend.  Support for the MG5400 series is still
> listed as unconfirmed in the documentation.  I would be happy to test
> my device and report any results.
> I am running Ubuntu 16.10 (yakkety) amd64
> In the Ubuntu package release (sane-utils
> 1.0.25+git20150528-1ubuntu2), the systemd configuration for saned is
> broken, but it works fine with the updated build from
> ppa:rolfbensch/sane-git.  I am using the following:
> sane 1.0.14-11 amd64
> libsane 1.0.26-git20160712
> sane-utils 1.0.26-git20160712
> I primarily use the scanner over a wifi network, and most features
> seem to work
> Here is what works:
> scanning from Simple Scan
> scanning from XSane 0.999
> All resolutions (75, 150, 300, 600, 1200, 2400 dpi)
> Here is what doesn't work:
> button controlled scanning
> initiating scanning from the scanner control panel
> For the items that don't work, it is entirely possible that I just
> don't understand how to configure these features correctly.  With my
> win7 box with the proprietary Canon IJ network tool installed, I am
> able to select my computer as a destination for the scanned file, then
> initiate the scan by hitting either the "Start Color" or "Start B&W"
> buttons on the pixma front panel.  I am normally unable to see my
> Ubuntu box on this destination list.  However, if I enter
> scanimage -d pixma:MG5400_192.168.0.3 --button-controlled=yes > tempimage
> My Ubuntu box will temporarily appear in the destination list. 
> However, I am still unable to initiate the scan.
> I don't know anything about the BJNP protocol except what I read in
> the sane-pixma documentation, but I am happy to learn and help you test.
> Regards,
> James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20170404/97f4b2bd/attachment.html>

More information about the sane-devel mailing list