On 30/06/2015 19:06, John Weber wrote:
I did 'make'. I wouldn't have backend/.libs/libsane-genesys.so otherwise, right?$ ls -l backend/.libs/libsane-genesys.solrwxrwxrwx 1 jweber jweber 25 Jun 30 08:25 backend/.libs/libsane-genesys.so -> libsane-genesys.so.1.0.25*$ ls -l backend/.libs/libsane-genesys.so.1.0.25-rwxrwxr-x 1 jweber jweber 1446816 Jun 30 08:25 backend/.libs/libsane-genesys.so.1.0.25*John On 06/30/2015 10:44 AM, m. allan noah wrote:You still have to 'make'. allan On Tue, Jun 30, 2015 at 11:03 AM, John Weber <[email protected]> wrote:On 06/29/2015 01:57 PM, Stef wrote:On 23/06/2015 16:08, John Weber wrote:On 06/22/2015 10:40 PM, Stef wrote: Hi Stef,Debug levels are defined like this for genesys_low: genesys_low.h:#define DBG_io 6 /* io functions */ genesys_low.h:#define DBG_io2 7 /* io functions that are called very often */ genesys_low.h:#define DBG_data 8 /* log image data */So if you get the problem at log level below seven, we must look at DBG_data usage in genesys_low.c . But here isn't on. So try 7 and 6 as debug levels. Once we know the exact kind of logging level that fix this timing issue, the next step is to remove this messages one by on until you find the one that makes difference. I haven't seen nothing obvious,so experimenting/testing is needed.sanei_genesys_wait_for_home(), sanei_genesys_set_buffer_address()and sanei_genesys_write_ahb functions() are printing messages in the middle of the code and are first candidates to try, in this order.It works at debug level 7, but not 6. I'm not sure from the rest of your answer if there's testing you want me to do, or if it's just informational. I'm a retired sys admin/engineer but not much of a programmer. I'm willing to test more, but I'll need more detailed instructions. Thanks, JohnHello, I was expecting something like that.All DBG_io2 a mere traces, and I don't see how much they slow downthings. Since I don't have this kind of problem on my hardware, I need your help. I don't see no other approach than trial and error. 1 - compile sources 2 - set logs to 73 - check that scanner is working with compiled sources and the loglevel 4 - change a line where there is DBG_io2 level in DBG_data so it isn't traced any more, write down the line number 5 - compile and run, if it is still working, go to step 4 and change one more debug trace 6 - since it isn't working anymore, you have find where a pause must be set, please send it to meThere are tutorials to build SANE from sources, one thing I like todo is to run the freshly compiled version without doing make install, when running scanimage from top source directory: export LD_PRELOAD=backends/.libs/libsane-genesys.soHi Stef, I followed the first part of instructions at https://help.ubuntu.com/community/CompileSaneFromSource just to get thesource and dependencies. Since I didn't plan on doing make install, per yoursuggestion, I only used ./configure --enable-avahi and it ran with exit code 0. After setting export LD_PRELOAD=backend/.libs/libsane-genesys.so Now both ./frontend/scanimage -L /usr/bin/scanimage -L report no scanners found. In another shell without LD_PRELOAD set, /usr/bin/scanimage -L reports device `genesys:libusb:001:020' is a Canon LiDE 220 flatbed scanneras usual. ./frontend/scanimage -L still says no scanners found. I tried allscanimage -L tests also with sudo, but it made no difference.Should I use other configure options? Testing by trial and error won't betoo bad. It only took 80 secs to compile. -- John Weber [email protected] -- sane-devel mailing list: [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [email protected]
Hello,
to be precise, i ran tests from another directory with this kind of
script attached. You need dll.conf and genesys.conf to be present in
this test directory. You'll have to tweak the source path in it.
Regards,
Stef
#!/bin/bash #====================================================== export SANE_DIR=/home/stefdev/git/sane-backends export BIN_DIR=$SANE_DIR/frontend export SO_DIR=$SANE_DIR/backend/.libs #export SANE_DEBUG_GENESYS=255 export SANE_DEBUG_GENESYS_LOW=7 #export SANE_DEBUG_GENESYS_GL646=255 #export SANE_DEBUG_GENESYS_GL841=255 #export SANE_DEBUG_GENESYS_GL843=255 #export SANE_DEBUG_GENESYS_GL847=255 #export SANE_DEBUG_GENESYS_GL124=255 #export SANE_DEBUG_SANEI_USB=255 #export SANE_DEBUG_SANEI_MAGIC=255 export LD_PRELOAD=$SO_DIR/libsane-genesys.so $BIN_DIR/scanimage -d genesys --resolution 75 --preview --mode Color 2>rl.log >rl.pnm
-- sane-devel mailing list: [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to [email protected]
