<div dir="ltr">Oh, as it wasn't on the lists, and I downloaded the stable version, I didn't see it was already supported.<div><br></div><div>Thank you for your help</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 follow the installation description in README.Linux from here:<br>
<a href="http://www.sane-project.org/README.linux" target="_blank">http://www.sane-project.org/README.linux</a>. Then you'll get latest SANE<br>
code 1.0.24 which supports MP230.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
<br>
Am 11.09.2013 20:42, schrieb Marc Marí:<br>
<div class="im">> I forgot about the udev rules. I can't find the file in the original<br>
> source, so I suppose is automatically generated somewhere. In any case,<br>
> I only added this lines in libsane.rules:<br>
> # Canon PIXMA MP230<br>
> ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="175f", MODE="0664",<br>
> GROUP="scanner", ENV{libsane_matched}="yes"<br>
><br>
><br>
</div>> 2013/9/11 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>
>     I can scan properly with all resolutions (75, 150, 300 and 600). If,<br>
>     while scanning I press the "cancel" button, it cancels properly in<br>
>     xsane. The data related to buttons with scanimage -A is (there's<br>
>     info about Scan Mode, Geometry, Gamma and Extras too):<br>
>     Buttons:<br>
>         --button-update<br>
>             Update button state<br>
>         --button-1 <int> [0]<br>
>             Button 1<br>
>         --button-2 <int> [0]<br>
>             Button 2<br>
><br>
>     With debug mode 11, there's no extra information.<br>
><br>
>     I think that the diff format is the one that I attach.<br>
><br>
>     Anything else you need, about commands or testing or something, tell me.<br>
><br>
><br>
>     2013/9/11 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><div class="h5">><br>
>         Hi Marc,<br>
><br>
>         Please test all scan options with all resolutions first. I<br>
>         assume that<br>
>         SANE can only support up to 600 dpi.<br>
><br>
>         Also test button support. Press any button and send a status<br>
>         request to<br>
>         the scanner: 'scanimage -A'. The response should contain<br>
>         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<br>
>         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<br>
>         sane-pixma'. If<br>
>         you'll have problems with this, you can also send the responses<br>
>         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<br>
>         it to<br>
>         SANE git.<br>
><br>
>         Cheers,<br>
>         Rolf<br>
><br>
><br>
>         Am 10.09.2013 23:57, schrieb Marc Marí:<br>
>         > The root problem is solved. I didn't put the scanner on udev<br>
>         rules.<br>
>         ><br>
>         > So now, how should I proceed to insert this scanner in sane<br>
>         scanner<br>
>         > database? What tests should I perform, how should I add it to<br>
>         the global<br>
>         > scanner list, etc. I'd like to contribute with this very small<br>
>         patch.<br>
>         ><br>
>         ><br>
>         > 2013/9/10 Marc Marí <<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a><br>
</div></div>>         <mailto:<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">>         <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a>>>><br>
>         ><br>
>         >     It works!!<br>
>         ><br>
>         >     I just compiled and installed, and it seems to work, but<br>
>         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<br>
>         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>
>         <mailto:<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> <mailto:<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>>>><br>
<div><div class="h5">>         ><br>
>         >         Hi Marc,<br>
>         ><br>
>         >         You need to compile and install SANE if you change<br>
>         something in<br>
>         >         the code. The installation is described in<br>
>         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<br>
>         '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<br>
>         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<br>
>         definitions. I<br>
>         >>         copied those lines, and changed the product_id to<br>
>         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>
>         <<a href="http://libsane-pixma.la" target="_blank">http://libsane-pixma.la</a>><br>
>         >><br>
>         <<a href="http://libsane-pixma.la" target="_blank">http://libsane-pixma.la</a>>,libsane-pixma.so.1,libsane-pixma.so.1.0.22}<br>
>         >>         should be enough to test the compatibility between<br>
>         250 and 230?<br>
>         >><br>
>         >>         Help me a bit! I'm not new to code and Linux, but I'm<br>
>         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>
>         <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a>><br>
</div></div>>         >>         <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a><br>
<div class="HOEnZb"><div class="h5">>         <mailto:<a href="mailto:5.markmb.5@gmail.com">5.markmb.5@gmail.com</a>>>><br>
>         >><br>
>         >>             Hello everyone<br>
>         >><br>
>         >>             I just bought a Canon Pixma MP230. Unfortunately,<br>
>         there is<br>
>         >>             no good support. I tried the native drivers, and it<br>
>         >>             printed properly but not scanned. So I looked for<br>
>         other<br>
>         >>             solutions.<br>
>         >><br>
>         >>             I found that the MP250 driver is compatible for<br>
>         the MP230.<br>
>         >>             I removed the propietary drivers, and I tried<br>
>         configuring<br>
>         >>             CUPS with that driver. And it worked. Now, I'm<br>
>         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>
><br>
><br>
><br>
</div></div></blockquote></div><br></div>