<div dir="ltr">Hi Rolf,<br><br>Thanks for the guidance. Build time is not an issue. So I built with all the backends. I applied your patch, but just to be 100% sure, it removes 1200 and replaces it by 600?<br><br>I don't have any preference for any tool. xsane vs scanimage vs any other. I just need one that works ;) I used scanimage because it was in the frontend folder I just built and I was able to validate the version.<br><br>The following command worked very well:<br>scanimage --resolution 300 --format=jpeg > image.jpg<br><br>However trying to scan with 1200 fails:<br>jmspaggiari@t460s:~/backends$ ./frontend/scanimage --resolution 1200 --format=jpeg > image.jpg<br>scanimage: rounded value of resolution from 1200 to 600<br><br>And the output image is 600dpi.<br><br>When trying gscan2pdf, even if the printer is connected on the USB port, it shows me 2 scans with IP address, so I'm not sure it's taking the one on the USB port. Also, how can I make sure gscan2pdf is using the sane version I just build and deployed and not the one in the system? :-/<br><br>Thanks,<br><br>JMS<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 23 févr. 2020 à 09:29, Rolf Bensch <<a href="mailto:rolf@bensch-online.de">rolf@bensch-online.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jean-Marc,<br>
<br>
With my patch please also test scanning from ADF and send me a logfile.<br>
<br>
For ADF scans I prefer gscan2pdf:<br>
$ SANE_DEBUG_PIXMA=11 gscan2pdf 2> tr4500-adf.log<br>
<br>
These tests are for the pixma backend using USB connection.<br>
<br>
Many thanks for your help.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
<br>
Am 23.02.20 um 15:18 schrieb Rolf Bensch:<br>
> Hi,<br>
><br>
> Installation is described in INSTALL.linux, which comes with the source<br>
> files (or read here: <a href="http://www.sane-project.org/docs.html" rel="noreferrer" target="_blank">http://www.sane-project.org/docs.html</a>). Please give<br>
> me a short note if anything is missing there.<br>
><br>
> You can reduce build time by selecting the desired backends, e.g. for<br>
> escl and pixma:<br>
> $ ./configure --enable-avahi BACKENDS="escl pixma"<br>
><br>
> Due to a bug you need to manually enable avahi for escl.<br>
><br>
> I prefer using xsane as frontend. If you still want to use scanimage,<br>
> here are some examples for simple usage:<br>
> $ scanimage --help<br>
> $ scanimage > image.pnm<br>
> $ scanimage --resolution 300 --format=jpeg > image.jpg<br>
><br>
> Redirecting debug info to a file:<br>
> $ SANE_DEBUG_PIXMA=11 scanimage 2> scan.log > image.pnm<br>
> $ SANE_DEBUG_PIXMA=11 xsane 2> scan.log<br>
> Please have a look at the man pages if you want to see debug infos from<br>
> other backends than pixma.<br>
><br>
> Please try my previously provided patch for the pixma backend and test<br>
> scanning 1200 dpi images. To do this you should connect your scanner on USB.<br>
><br>
> escl is a concurrent backend providing AirScan/eSCL network protocol.<br>
> For older Canon scanners you can still use pixma backend with BJNP and<br>
> MFNP protocol support. For new scanners Canon switched to AirScan/eSCL<br>
> protocol and for these scanners you need escl backend.<br>
><br>
> Hope this helps.<br>
><br>
> Cheers,<br>
> Rolf<br>
><br>
><br>
> Am 21.02.20 um 22:58 schrieb Jean-Marc Spaggiari:<br>
>> @Alexander Thanks. I was able to install it.  How do I try it?<br>
>> @Thierry Do I download and build this new branch? Does it includes the<br>
>> patch that Rolf send before?<br>
>><br>
>> Le ven. 21 févr. 2020 à 16:53, Thierry HUCAHRD <<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a><br>
>> <mailto:<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a>>> a écrit :<br>
>><br>
>>     Le 2020-02-21 22:32, Jean-Marc Spaggiari a écrit :<br>
>>     > Let me know if you want a SSH access to a machine with scanner<br>
>>     > access...<br>
>>     I fixed the geometry bp.<br>
>>     <a href="https://gitlab.com/sane-project/backends/-/tree/escl-load-conf-segfault" rel="noreferrer" target="_blank">https://gitlab.com/sane-project/backends/-/tree/escl-load-conf-segfault</a><br>
>>     ><br>
>>     > Le ven. 21 févr. 2020 à 16:23, Thierry HUCAHRD<br>
>>     > <<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a> <mailto:<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a>>> a écrit :<br>
>>     ><br>
>>     >> Le 2020-02-21 21:54, Jean-Marc Spaggiari a écrit :<br>
>>     >>> Interestingly, I don't see the input option anymore :-/ This will<br>
>>     >>> drive me crazy ;)<br>
>>     >><br>
>>     >> This is not normal, by default it shouldn't be 0.<br>
>>     >> I'll correct it, but I have to reproduce it.<br>
>>     >><br>
>>     >> scanimage: rounded value of br-x from 0 to 0<br>
>>     >> scanimage: rounded value of br-y from 0 to 0<br>
>>     >><br>
>>     >>><br>
>>     >>> ./frontend/scanimage -d 'escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>'<br>
>>     >> --all-options<br>
>>     >>> Output format is not set, using pnm as a default.<br>
>>     >>> Capability : [image/jpeg]<br>
>>     >>> Capability : [image/jpeg]<br>
>>     >>> Capability : [image/jpeg]<br>
>>     >>> Capability : [image/jpeg]<br>
>>     >>> scanimage: rounded value of br-x from 0 to 0<br>
>>     >>> scanimage: rounded value of br-y from 0 to 0<br>
>>     >>><br>
>>     >>> All options specific to device `escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>':<br>
>>     >>> Scan mode:<br>
>>     >>> --mode Gray|Color [Gray]<br>
>>     >>> Selects the scan mode (e.g., lineart, monochrome, or<br>
>>     >> color).<br>
>>     >>> --resolution 75|100|150|200|300|600dpi [75]<br>
>>     >>> Sets the resolution of the scanned image.<br>
>>     >>> --preview[=(yes|no)] [no]<br>
>>     >>> Request a preview-quality scan.<br>
>>     >>> --preview-in-gray[=(yes|no)] [no]<br>
>>     >>> Request that all previews are done in monochrome mode.  On<br>
>>     >> a<br>
>>     >>> three-pass scanner this cuts down the number of passes to<br>
>>     >> one<br>
>>     >>> and on a<br>
>>     >>> one-pass scanner, it reduces the memory requirements and<br>
>>     >>> scan-time of<br>
>>     >>> the preview.<br>
>>     >>> Geometry:<br>
>>     >>> -l 0.0846558..215.9mm [0]<br>
>>     >>> Top-left x position of scan area.<br>
>>     >>> -t 0.0846558..297.011mm [0]<br>
>>     >>> Top-left y position of scan area.<br>
>>     >>> -x 0.0846558..215.9mm [0]<br>
>>     >>> Width of scan-area.<br>
>>     >>> -y 0.0846558..297.011mm [0]<br>
>>     >>> Height of scan-area.<br>
>>     >>><br>
>>     >>> Le ven. 21 févr. 2020 à 15:43, Jean-Marc Spaggiari<br>
>>     >>> <<a href="mailto:jean-marc@spaggiari.org" target="_blank">jean-marc@spaggiari.org</a> <mailto:<a href="mailto:jean-marc@spaggiari.org" target="_blank">jean-marc@spaggiari.org</a>>> a écrit :<br>
>>     >>><br>
>>     >>>> So I can delete my sane-escl folder?<br>
>>     >>>><br>
>>     >>>> Here is the output for both default debian installed and locally<br>
>>     >>>> build:<br>
>>     >>>> (base) jmspaggi@precision5530:~/backends$ scanimage -d<br>
>>     >>>> 'escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>' -x 215 -y 296 -T<br>
>>     >>>> Output format is not set, using pnm as a default.<br>
>>     >>>> scanimage: scanning image of size 637x877 pixels at 24 bits/pixel<br>
>>     >>>> scanimage: acquiring RGB frame, 8 bits/sample<br>
>>     >>>> scanimage: reading one scanline, 1911 bytes... PASS<br>
>>     >>>> scanimage: reading one byte... PASS<br>
>>     >>>> scanimage: stepped read, 2 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 4 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 8 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 16 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 32 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 64 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 128 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 256 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 512 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 1024 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 2048 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 2047 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 1023 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 511 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 255 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 127 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 63 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 31 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 15 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 7 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 3 bytes... PASS<br>
>>     >>>><br>
>>     >>>> (base) jmspaggi@precision5530:~/backends$ ./frontend/scanimage -d<br>
>>     >>>> 'escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>' -x 215 -y 296 -T<br>
>>     >>>> Output format is not set, using pnm as a default.<br>
>>     >>>> Capability : [image/jpeg]<br>
>>     >>>> Capability : [image/jpeg]<br>
>>     >>>> Capability : [image/jpeg]<br>
>>     >>>> Capability : [image/jpeg]<br>
>>     >>>> scanimage: rounded value of br-x from 215 to 215<br>
>>     >>>> scanimage: rounded value of br-y from 296 to 296<br>
>>     >>>> scanimage: scanning image of size 634x874 pixels at 24 bits/pixel<br>
>>     >>>> scanimage: acquiring RGB frame, 8 bits/sample<br>
>>     >>>> scanimage: reading one scanline, 1902 bytes... PASS<br>
>>     >>>> scanimage: reading one byte... PASS<br>
>>     >>>> scanimage: stepped read, 2 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 4 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 8 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 16 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 32 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 64 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 128 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 256 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 512 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 1024 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 2048 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 2047 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 1023 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 511 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 255 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 127 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 63 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 31 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 15 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 7 bytes... PASS<br>
>>     >>>> scanimage: stepped read, 3 bytes... PASS<br>
>>     >>>><br>
>>     >>>> Le ven. 21 févr. 2020 à 15:40, Thierry HUCAHRD<br>
>>     >>>> <<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a> <mailto:<a href="mailto:thierry@ordissimo.com" target="_blank">thierry@ordissimo.com</a>>> a écrit :<br>
>>     >>>><br>
>>     >>>>> Le 2020-02-21 21:28, Jean-Marc Spaggiari a écrit :<br>
>>     >>>>>> @Till: indeed. I had to install the autoconf-archive. It solved<br>
>>     >>>>> the<br>
>>     >>>>>> issue. Thanks for the guidance.<br>
>>     >>>>>><br>
>>     >>>>>> @Thierry:<br>
>>     >>>>>><br>
>>     >>>>>> (base) jmspaggi@precision5530:~/backends$ sudo<br>
>>     >>>>> ./frontend/scanimage -L<br>
>>     >>>>>> device `pixma:04A91854_13B71E' is a CANON Canon PIXMA TR4500<br>
>>     >>>>> Series<br>
>>     >>>>>> multi-function peripheral<br>
>>     >>>>>> (base) jmspaggi@precision5530:~/backends$ sudo<br>
>>     >>>>> ./frontend/scanimage -d<br>
>>     >>>>>> 'escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>'  -T<br>
>>     >>>>>> Output format is not set, using pnm as a default.<br>
>>     >>>>>> scanimage: open of device escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a> failed:<br>
>>     >>>>> Device<br>
>>     >>>>>> busy<br>
>>     >>>>>><br>
>>     >>>>>> So I un-plugged the 2 printers, stopped the 2 and restarted<br>
>>     >> only<br>
>>     >>>>> the<br>
>>     >>>>>> Canon. I can heat the printer moving but I get the same error:<br>
>>     >>>>>> scanimage: sane_start: Invalid argument<br>
>>     >>>>>><br>
>>     >>>>>> please note that I do that on my "backends" folder, which I got<br>
>>     >>>>> from<br>
>>     >>>>>> that: git clone <a href="https://gitlab.com/sane-project/backends.gitI" rel="noreferrer" target="_blank">https://gitlab.com/sane-project/backends.gitI</a><br>
>>     >>>>> also<br>
>>     >>>>>> have a sane-escl folder which I got from the link you sent<br>
>>     >>>>> before but<br>
>>     >>>>>> there is no "scanimage" there.<br>
>>     >>>>>><br>
>>     >>>>> sane-escl is archived<br>
>>     >>>>> Please test this :<br>
>>     >>>>> $ scanimage -d 'escl:<a href="http://192.168.23.130:80" rel="noreferrer" target="_blank">http://192.168.23.130:80</a>' -x 215 -y 296 -T<br>
>>     >>>>>> JMS<br>
>>     >>>>>><br>
>>     >>>>>> Le ven. 21 févr. 2020 à 15:16, Till Kamppeter<br>
>>     >>>>>> <<a href="mailto:till.kamppeter@gmail.com" target="_blank">till.kamppeter@gmail.com</a> <mailto:<a href="mailto:till.kamppeter@gmail.com" target="_blank">till.kamppeter@gmail.com</a>>><br>
>>     a écrit :<br>
>>     >>>>>><br>
>>     >>>>>>> On 21/02/2020 20:26, Jean-Marc Spaggiari wrote:<br>
>>     >>>>>>>> So.<br>
>>     >>>>>>>><br>
>>     >>>>>>>> I have cloned the backend repo:<br>
>>     >>>>>>>> git clone <a href="https://gitlab.com/sane-project/backends.git" rel="noreferrer" target="_blank">https://gitlab.com/sane-project/backends.git</a><br>
>>     >>>>>>>><br>
>>     >>>>>>>> Applied the patch (Changed 1200 to 600 and added the last<br>
>>     >>>>> param).<br>
>>     >>>>>>>><br>
>>     >>>>>>>> And now I'm trying to follow the instructions there:<br>
>>     >>>>>>>> <a href="https://help.ubuntu.com/community/CompileSaneFromSource" rel="noreferrer" target="_blank">https://help.ubuntu.com/community/CompileSaneFromSource</a><br>
>>     >>>>>>>><br>
>>     >>>>>>>> running ./autogen.sh failes right from the beginning :( I<br>
>>     >>>>> prints<br>
>>     >>>>>>>> thousands of lines "patch: **** Can't create file<br>
>>     >>>>> ./ltmain.sh.orig<br>
>>     >>>>>>> : Too<br>
>>     >>>>>>>> many open files" I increased my limit to 10k files, but I'm<br>
>>     >>>>>>> getting the<br>
>>     >>>>>>>> exact same error. I tried to checkout the 1.0.29 but got the<br>
>>     >>>>> same<br>
>>     >>>>>>> error.<br>
>>     >>>>>>>><br>
>>     >>>>>>>> after investigations it seems coming from the lack of<br>
>>     >>>>> autopoint.<br>
>>     >>>>>>> apt-get<br>
>>     >>>>>>>> install solved it.<br>
>>     >>>>>>>><br>
>>     >>>>>>>> I tried to run configure with this command:<br>
>>     >>>>>>>> ./configure --prefix=/usr --libdir=/usr/lib/<br>
>>     >> --sysconfdir=/etc<br>
>>     >>>>>>>> --localstatedir=/var  --enable-avahi<br>
>>     >>>>>>>><br>
>>     >>>>>>>> But it failed:<br>
>>     >>>>>>>> ./configure: line 14868: syntax error near unexpected token<br>
>>     >>>>>>> `noext,'<br>
>>     >>>>>>>> ./configure: line 14868: `AX_CXX_COMPILE_STDCXX_11(noext,<br>
>>     >>>>>>> optional)'<br>
>>     >>>>>>>><br>
>>     >>>>>>><br>
>>     >>>>>>> If you are on Ubuntu, you need to install the<br>
>>     >>>>> "autoconf-archive"<br>
>>     >>>>>>> package.<br>
>>     >>>>>>><br>
>>     >>>>>>> Till<br>
>><br>
</blockquote></div>