<div dir="ltr">Hi Rolf,<div><br></div><div style>I will get back to you with the scanning tests as soon as I can. For now, I just tried the button tests on a PIXMA MX895 (over wifi), and I'm not quite sure if I'm doing what you asked me to, so here's what I did:</div>
<div style><br></div><div style>$ <span style="font-family:arial,sans-serif;font-size:13px">export SANE_DEBUG_PIXMA=11</span></div><div style>$ scanimage -A</div><div style><br></div><div style>press any button</div><div style>
<br></div><div style>$ scanimage -A</div><div style><br></div><div style>no result. However, if I actually listen for buttons I get this:</div><div style><br></div><div style><div>$ scanimage -d pixma:MX890_192.168.2.102 --button-controlled=yes > output</div>
<div>[sanei_debug] Setting debug level of pixma to 11.</div><div>[pixma] pixma is compiled without pthread support.</div><div>[pixma] pixma version 0.17.2</div><div>[pixma] Scanner model found: Name MX890(Canon PIXMA MX890 Series) matches MX890 series</div>
<div>[pixma] pixma_collect_devices() found Canon PIXMA MX890 Series at bjnp://<a href="http://192.168.2.102:8612">192.168.2.102:8612</a></div><div>[pixma] pixma_open(): Canon PIXMA MX890 Series</div><div>[pixma] Reader task id=16613 (forked)</div>
<div>[pixma] Reader task started</div><div>[pixma] ==== Button-controlled scan mode is enabled.</div><div>[pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel, press 'GRAY' or 'END' button.</div>
<div>[pixma] INTR T=54.760 len=64</div><div>[pixma]  00000000:00 00 00 00 01 01 01 01  02 01 01 03 03 01 01 02 </div><div>[pixma]  00000010:01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div><div>[pixma]  00000020:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div>
<div>[pixma]  00000030:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div><div>[pixma] </div><div>[pixma] INTR T=100.088 len=64</div><div>[pixma]  00000000:00 00 00 00 01 01 01 02  02 01 01 03 03 01 01 02 </div><div>[pixma]  00000010:01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div>
<div>[pixma]  00000020:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div><div>[pixma]  00000030:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 </div><div>[pixma] </div><div style>... here I quit with CTRL-C</div><div>
<br></div><div style>The first button is "Color", the second "Black". After I hit these buttons the printer sits there for a while, seemingly not doing anything; no scanning noise/movements, and the scanner's screen shows "Processing. Please wait momentarily". </div>
<div style><br></div><div style>Is this what you are looking for?</div><div style><br></div><div style>best </div><div style>Hans</div></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jun 4, 2013 at 11:39 PM, Rolf Bensch <span dir="ltr"><<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Hans,<br>
<br>
Many thanks reporting ADF duplex on MX920.<br>
<br>
Please try to scan a color image with *all* resolutions from 75 dpi up<br>
to 2400 dpi and report if *all* are OK. To reduce scan time you can scan<br>
a small area. If you might see problems you can send the pnm files<br>
directly to my email address. The ml rejects large emails.<br>
<br>
Please also check button support on the command line with 'export<br>
SANE_DEBUG_PIXMA=11' and 'scanimage -A':<br>
- 'export SANE_DEBUG_PIXMA=11'<br>
- press one button<br>
- check the output from 'scanimage -A'<br>
- press the next button and again check the output from 'scanimage -A'<br>
- repeat until all buttons have been tested<br>
<br>
I'm interested in the debug output from each button which looks similar<br>
to this:<br>
<br>
  Buttons:<br>
    --button-update<br>
        Update button state<br>
[pixma] INTR T=1.656 len=32<br>
[pixma]  00000000:00 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>
[pixma]<br>
    --button-1 <int> [1] [read-only]<br>
        Button 1<br>
    --button-2 <int> [0] [read-only]<br>
        Button 2<br>
    --original <int> [0] [read-only]<br>
        Type of original to scan<br>
    --target <int> [2] [read-only]<br>
        Target operation type<br>
<br>
Many thanks for your help.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
<br>
<br>
Am 04.06.2013 00:21, schrieb Hans Pirnay:<br>
<div class="HOEnZb"><div class="h5">> Hi everyone,<br>
><br>
> I just noticed that the current git HEAD version of the pixma backend<br>
> does not register the PIXMA MX920 series as Duplex scanners, although<br>
> they are.<br>
><br>
> After changing pixma_mp150.c:1741 to<br>
><br>
>   DEVICE ("Canon PIXMA MX920 Series", "MX920", MX920_PID, 2400, 0, 0,<br>
> 638, 877, PIXMA_CAP_CIS | PIXMA_CAP_ADFDUP),<br>
><br>
> it works perfectly.<br>
><br>
> best<br>
> Hans<br>
<br>
</div></div></blockquote></div><br></div>