Skip to content

pixma: MG5700 button-controlled scan

András Wacha requested to merge awacha/sane-backends:mg5700_buttons into master

Button-controlled scanning was not working on my Canon MG5700 series (more precisely MG5750) scanner, because an incorrect format was assumed for the button press report message in the driver (backend/pixma/pixma_mp150.c). The change is straightforward:

diff '--color=auto' -Naur backends-1.1.1/backend/pixma/pixma_mp150.c backends-1.1.1_patched/backend/pixma/pixma_mp150.c
--- backends-1.1.1/backend/pixma/pixma_mp150.c  2022-01-19 17:36:00.000000000 +0100
+++ backends-1.1.1_patched/backend/pixma/pixma_mp150.c  2022-12-21 17:03:17.792807914 +0100
@@ -929,6 +929,7 @@
    * poll event with 'scanimage -A' */
   if (s->cfg->pid == MG5300_PID
       || s->cfg->pid == MG5400_PID
+      || s->cfg->pid == MG5700_PID
       || s->cfg->pid == MG6200_PID
       || s->cfg->pid == MG6300_PID
       || s->cfg->pid == MX340_PID

Hope that helps.

Merge request reports