[sane-devel] Canon Pixma MX525

Trygve Flathen at.sane at flathen.net
Mon Mar 10 21:48:00 UTC 2014


On Mon, Mar 10, 2014 at 9:39 PM, Rolf Bensch <rolf at bensch-online.de> wrote:
> The attached patch should fix these issues:
> (1) interlacing @ 1200 dpi

Did not see any change to this problem.
However, this patch fixed it (don't know if it breaks something else though)

--- a/backend/pixma_common.c
+++ b/backend/pixma_common.c
@@ -1053,7 +1053,7 @@ pixma_check_scan_param (pixma_t * s,
pixma_scan_param_t * sp)

   /* FIXME: I assume the same minimum width and height for every model. */
   CLAMP2 (sp->x, sp->w, 13, s->cfg->width, sp->xdpi);
-  CLAMP2 (sp->y, sp->h, 8, s->cfg->height, sp->ydpi);
+  CLAMP2 (sp->y, sp->h, 16, s->cfg->height, sp->ydpi);


> (2) 14" legal paper size in ADF mode

I assume the 877->1050 does this. Have not tested.

> (3) button support

Results:

$ export SANE_DEBUG_PIXMA=11
# pressing "black"
$ scanimage -A
...
    --button-update
        Update button state
[pixma] INTR T=7.333 len=32
[pixma]  00000000:00 00 00 00 01 01 03 02  01 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
[pixma]
...
# wait for scanner to time out
# pressing "color"
$ scanimage -A
...
    --button-update
        Update button state
[pixma] INTR T=7.401 len=32
[pixma]  00000000:00 00 00 00 01 01 03 01  01 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
[pixma]
...


-Trygve



More information about the sane-devel mailing list