<div dir="ltr">I can scan properly with all resolutions (75, 150, 300 and 600). If, while scanning I press the "cancel" button, it cancels properly in xsane. The data related to buttons with scanimage -A is (there's info about Scan Mode, Geometry, Gamma and Extras too):<div>
<div>Buttons:</div><div> --button-update</div><div> Update button state</div><div> --button-1 <int> [0]</div><div> Button 1</div><div> --button-2 <int> [0]</div><div> Button 2</div>
</div><div><br></div><div>With debug mode 11, there's no extra information.</div><div><br></div><div>I think that the diff format is the one that I attach.</div><div><br></div><div>Anything else you need, about commands or testing or something, tell me.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/11 Rolf Bensch <span dir="ltr"><<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Marc,<br>
<br>
Please test all scan options with all resolutions first. I assume that<br>
SANE can only support up to 600 dpi.<br>
<br>
Also test button support. Press any button and send a status request to<br>
the scanner: 'scanimage -A'. The response should contain something like<br>
this:<br>
<br>
Buttons:<br>
--button-update<br>
Update button state<br>
--button-1 <int> [0] [read-only]<br>
Button 1<br>
--button-2 <int> [1] [read-only]<br>
Button 2<br>
--original <int> [0] [read-only]<br>
Type of original to scan<br>
--target <int> [5] [read-only]<br>
Target operation type<br>
--scan-resolution <int> [0] [read-only]<br>
Scan resolution<br>
<br>
If no data will be shown, please enable debut output with: 'export<br>
SANE_DEBUG_PIXMA=11'. Then look for these lines:<br>
<br>
Buttons:<br>
--button-update<br>
Update button state<br>
[pixma] INTR T=1.663 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>
<br>
(Shown data is from my scanner and may be different from your scanner's<br>
data.)<br>
<br>
The received data is processed in function handle_interrupt(). For<br>
details please read the comments in the code and 'man sane-pixma'. If<br>
you'll have problems with this, you can also send the responses for all<br>
buttons to the mailing list. Then I can create the patch.<br>
<br>
Then you can send the diff file to the mailing list. I'll commit it to<br>
SANE git.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
<br>
Am 10.09.2013 23:57, schrieb Marc Marí:<br>
<div class="im">> The root problem is solved. I didn't put the scanner on udev rules.<br>
><br>
> So now, how should I proceed to insert this scanner in sane scanner<br>
> database? What tests should I perform, how should I add it to the global<br>
> scanner list, etc. I'd like to contribute with this very small patch.<br>
><br>
><br>
</div>> 2013/9/10 Marc Marí <<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a> <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a>>><br>
<div class="im">><br>
> It works!!<br>
><br>
> I just compiled and installed, and it seems to work, but only on<br>
> root mode:<br>
> sudo xsane -> works, detects and seems to scan properly<br>
> xsane -> [pixma] pixma_open(): Canon PIXMA MP230<br>
> [pixma] pixma_connect() failed EACCES<br>
> [pixma] pixma_open() failed EACCES<br>
> [pixma] pixma_close(): Canon PIXMA MP230<br>
><br>
> Do you have any idea of misconfiguration of my part, or I only found<br>
> a half solution?<br>
><br>
><br>
><br>
> 2013/9/10 Rolf Bensch <<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a><br>
</div>> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>>><br>
<div class="im">><br>
> Hi Marc,<br>
><br>
> You need to compile and install SANE if you change something in<br>
> the code. The installation is described in README.linux, which<br>
> comes with the code or read here:<br>
> <a href="http://www.sane-project.org/README.linux" target="_blank">http://www.sane-project.org/README.linux</a>.<br>
><br>
> Additional to the install description you need to add your<br>
> scanner to the udev.rules file.<br>
><br>
> You don't need to set PIXMA_EXPERIMENT=1.<br>
><br>
> If you want to see the debug output you need to set 'export<br>
> SANE_DEBUG_PIXMA=4' and start xsane from the command line.<br>
> 'export SANE_DEBUG_PIXMA=11' is useful if you want to see the<br>
> usb protocols.<br>
><br>
> Don't hestitate to contact me if you have any problems.<br>
><br>
> Cheers,<br>
> Rolf<br>
><br>
><br>
> Am 09.09.2013 23:15, schrieb Marc Marí:<br>
>> I looked at the code, and I found the MP250 definitions. I<br>
>> copied those lines, and changed the product_id to MP230, with<br>
>> everything the same. Now, is there a way to generate the<br>
>> libraries without downloading and compiling everything? I<br>
>> suppose that, generating and replacing this files<br>
>> /usr/lib/x86_64-linux-gnu/sane/{<a href="http://libsane-pixma.la" target="_blank">libsane-pixma.la</a><br>
</div>>> <<a href="http://libsane-pixma.la" target="_blank">http://libsane-pixma.la</a>>,libsane-pixma.so.1,libsane-pixma.so.1.0.22}<br>
<div class="im">>> should be enough to test the compatibility between 250 and 230?<br>
>><br>
>> Help me a bit! I'm not new to code and Linux, but I'm new to<br>
>> big Linux open-source codes.<br>
>><br>
>> Thank you in advance<br>
>><br>
>><br>
>> 2013/9/9 Marc Marí <<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a><br>
</div>>> <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a>>><br>
<div class="HOEnZb"><div class="h5">>><br>
>> Hello everyone<br>
>><br>
>> I just bought a Canon Pixma MP230. Unfortunately, there is<br>
>> no good support. I tried the native drivers, and it<br>
>> printed properly but not scanned. So I looked for other<br>
>> solutions.<br>
>><br>
>> I found that the MP250 driver is compatible for the MP230.<br>
>> I removed the propietary drivers, and I tried configuring<br>
>> CUPS with that driver. And it worked. Now, I'm wondering<br>
>> how can I force to load the MP250 driver.<br>
>><br>
>> So, my question is: how can I force loading the MP250<br>
>> driver for using with MP250 in sane?<br>
>><br>
>> I have Crunchbang Waldorf (based on Debian 7), kernel<br>
>> 3.2.0-4 and 64 bits. I enabled the debug mode with<br>
>> SANE_DEBUG_PIXMA=11 and PIXMA_EXPERIMENT=1, and I use<br>
>> xsane 0.996<br>
>><br>
>> Thank you in advance<br>
>><br>
>><br>
><br>
><br>
><br>
</div></div></blockquote></div><br></div>