I wonder it it works the same on a true x86 architecture it could be something with the brother driver. After those messages are generated the saned program stays running and tries to process other requests. However I need to reboot for it to start working again. I should be able to reset the usb port to get it working again somehow.
On Thu, Jan 11, 2018 at 12:03 PM, Jeff Sadowski <jeff.sadow...@gmail.com> wrote: > uning sane -l -d128 -e I am able to see the following error. > > root@raspberrypi:~:arm$ saned -l -d128 -e > > [saned] do_scan: wrote 8192 bytes to client > [saned] do_scan: trying to read 8188 bytes from scanner > [saned] do_scan: read 8188 bytes from scanner > [saned] do_scan: trying to write 8192 bytes to client > [saned] do_scan: wrote 8192 bytes to client > [saned] do_scan: trying to read 8188 bytes from scanner > [saned] do_scan: read 7488 bytes from scanner > [saned] do_scan: trying to write 7492 bytes to client > [saned] do_scan: wrote 7492 bytes to client > [saned] do_scan: trying to read 696 bytes from scanner > [saned] do_scan: read 0 bytes from scanner > [saned] do_scan: status = `End of file reached' > [saned] do_scan: statuscode `End of file reached' was added to buffer > [saned] do_scan: trying to write 9 bytes to client > [saned] do_scan: wrote 9 bytes to client > [saned] do_scan: done, status=End of file reached > [saned] process_request: waiting for request > [saned] process_request: bad status 22 > [saned] quit: exiting > > on the other end I get the following error > > scanimage '-v' '-p' '--batch=preview.jpg' '--batch-count' '1' > '--format' 'jpeg' '-l' '0' '-t' '0' '-x' '215.9' '-y' '355.6' '-d' > 'net:192.168.1.27:brother2:bus1;dev1' > scanimage: rounded value of br-x from 215.9 to 215.88 > scanimage: rounded value of br-y from 355.6 to 355.567 > Scanning 1 page, incrementing by 1, numbering from 1 > Scanning page 1 > scanimage: scanning image of size 1648x2314 pixels at 24 bits/pixel > scanimage: acquiring RGB frame > Progress:98.8% > scanimage: min/max graylevel value = 11/255 > Application transferred too few scanlines > > On Thu, Jan 11, 2018 at 11:33 AM, Jeff Sadowski <jeff.sadow...@gmail.com> > wrote: >> ah looks like I need the -l flag >> >> On Thu, Jan 11, 2018 at 11:21 AM, Jeff Sadowski <jeff.sadow...@gmail.com> >> wrote: >>> Progress. I am now able to scan jpeg files :-) >>> And test out more of my phpsaneng program. >>> My preview worked awesome. I was able to watch the image as it was >>> being scanned. >>> >>> I redid git as recommended in INSTALL.linux >>> >>> apt remove sane sane-utils >>> git clone git://git.debian.org/sane/sane-backends.git >>> ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc >>> --localstatedir=/var --enable-avahi >>> make >>> make install >>> >>> it is odd that -V reports as so >>> >>> root@raspberrypi:~/sane/sane-backends:x86$ scanimage -V >>> scanimage (sane-backends) 1.0.27git; backend version 1.0.24 >>> >>> Is this something I should be worried about? >>> Where would it be getting 1.0.24 >>> I tried removing all sane files I could find and then >>> make install from my git repo and I still get the same output. >>> >>> >>> Now to try and get saned working >>> saned use to at least connect to the port but now I get nothing >>> >>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 >>> root@raspberrypi:~/sane/sane-backends:x86$ >>> >>> root@raspberrypi:~/sane/sane-backends:x86$ saned -d128 -b 192.168.1.27 >>> root@raspberrypi:~/sane/sane-backends:x86$ >>> >>> any suggestions on how to get it to report more? >>> maybe a compile flag to get something from it? >>> >>> On Thu, Jan 11, 2018 at 8:19 AM, Jeff Sadowski <jeff.sadow...@gmail.com> >>> wrote: >>>> root@raspberrypi:~:arm$ dpkg -c brscan2-0.2.5-1.i386.deb |grep lib|grep so >>>> -rwxr-xr-x root/root 11444 2009-12-01 18:38 >>>> ./usr/lib/libbrcolm2.so.1.0.0 >>>> -rwxr-xr-x root/root 27912 2009-12-01 18:38 >>>> ./usr/lib/libbrscandec2.so.1.0.0 >>>> -rwxr-xr-x root/root 94516 2009-12-01 18:38 >>>> ./usr/lib/sane/libsane-brother2.so.1.0.7 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/libbrcolm2.so -> /usr/lib/libbrcolm2.so.1 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/libbrscandec2.so.1 -> /usr/lib/libbrscandec2.so.1.0.0 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/libbrscandec2.so -> /usr/lib/libbrscandec2.so.1 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/libbrcolm2.so.1 -> /usr/lib/libbrcolm2.so.1.0.0 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/sane/libsane-brother2.so.1 -> >>>> /usr/lib/sane/libsane-brother2.so.1.0.7 >>>> lrwxrwxrwx root/root 0 2009-12-01 18:38 >>>> ./usr/lib/sane/libsane-brother2.so -> >>>> /usr/lib/sane/libsane-brother2.so.1 >>>> >>>> so I will recompile to with libdir=/usr/lib and see if that works. >>>> >>>> On Thu, Jan 11, 2018 at 5:28 AM, Olaf Meeuwissen >>>> <paddy-h...@member.fsf.org> wrote: >>>>> Hi, >>>>> >>>>> Jeff Sadowski writes: >>>>> >>>>>> It seems to be wanting .la files when I have .so files so is there a >>>>>> flag to support shared object files over .la? >>>>> >>>>> The dynamic loading should look for .la files first and failing to find >>>>> those, look for .so files. You don't need any flag for that (and AFAIK >>>>> there isn't one). >>>>> >>>>>> On Wed, Jan 10, 2018 at 1:36 PM, Jeff Sadowski <jeff.sadow...@gmail.com> >>>>>> wrote: >>>>>>> I pulled the current git of sane-backend from >>>>>>> https://anonscm.debian.org/git/sane/sane-backends.git >>>>>>> >>>>>>> I did >>>>>>> ./configure --prefix=/usr --libdir=/usr/lib/i386-linux-gnu >>>>>>> --sysconfdir=/etc --localstatedir=/var -- >>>>>>> make >>>>>>> make install >>>>>>> >>>>>>> now when I run "scanimage -L" it can't see my scanner. Is there a flag >>>>>>> I need to use other drivers than the ones it compiles as the brother >>>>>>> printer driver is a binary package? >>>>> >>>>> The backends you built are installed below /usr/lib/i386-linux-gnu/sane/ >>>>> as libsane-$backendname.$extension, right? Where is the backend of that >>>>> brother binary package installed? >>>>> >>>>> If it's not in the same directory, you need to tell the loader to look >>>>> in the directory where the brother binary package installed its >>>>> backend. Let's say that is /opt/brother/sane, then you'd have to run >>>>> >>>>> LD_LIBRARY_PATH=/opt/brother/sane scanimage -L >>>>> >>>>> Alternatively, you can make a symbolic link to the brother backend from >>>>> /usr/lib/i386-linux-gnu/sane/. Using the same example location >>>>> >>>>> cd /usr/lib/i386-linux-gnu/sane >>>>> ln -s /opt/brother/sane/libsane-$backendname.$extension >>>>> >>>>> Hope this helps, >>>>> -- >>>>> Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27 >>>>> GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 >>>>> Support Free Software https://my.fsf.org/donate >>>>> Join the Free Software Foundation https://my.fsf.org/join -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org