Re: [sane-devel] Canon LiDE 210
Hi Jörg, Jörg Frings-Fürst writes: > Hello, > > I forward this bug from Debian[1]. Please can someone check the > included patch? > diff --git a/backend/genesys.c b/backend/genesys.c > index 984cead..eb8695a 100644 > --- a/backend/genesys.c > +++ b/backend/genesys.c > @@ -210,6 +210,8 @@ sanei_genesys_init_structs (Genesys_Device * dev) > dev->model->motor_type); > } > > +dev->usb_mode = 0; > + > /* set up initial line distance shift */ > dev->ld_shift_r = dev->model->ld_shift_r; > dev->ld_shift_g = dev->model->ld_shift_g; Patch looks simple enough, but I think a better place to set the initial value of usb_mode is where dev is created, in attach() itself. I'll attach my suggested patch to the Debian bug report[1] and follow up there. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869673 Hope this helps, -- Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Softwarehttps://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
Re: [sane-devel] Canon LiDE 210, suspend ./. standby
Hello, Am Montag, den 26. Oktober schrieb M G Berberich: > Canon datasheets say, the Canon LiDE 210 has 2.5 W max power in work, > 1.4 W in standby and 11 mW in suspend. > > Is there any way to determine (via sane) if it is in standby or > suspend? Can it be switched between standy and suspend? The Canon LiDE 210 uses about 400mA during work, 240mA in standby and 40mA in “sleep-mode”. After beeing pluged in it is in 40mA-mode, after beeing used it seems to never return to this mode but stays in 240mA-mode. USB autosuspend reduces its power-consumption to 0 and seems not to influence usability. It wakes up on usage and returns to 0 after use. (As far as I can tell from a short test.) But it never reaches this state on a standard sane-install because in sane-backends/tools/udev/libsane.rules both the ATTR{power/control}="auto" is missing and a special rule disables USB autosuspend for all USB-scanners. # The following rule will disable USB autosuspend for the device #ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'" Maybe this behavior should be changed. MfG bmg -- „Des is völlig wurscht, was heut beschlos- | M G Berberich sen wird: I bin sowieso dagegn!“ | m...@m-berberich.de (SPD-Stadtrat Kurt Schindler; Regensburg) | -- 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
Re: [sane-devel] Canon LiDE 210, suspend ./. standby
On 26/10/2015 13:59, M G Berberich wrote: Hello, Canon datasheets say, the Canon LiDE 210 has 2.5 W max power in work, 1.4 W in standby and 11 mW in suspend. Is there any way to determine (via sane) if it is in standby or suspend? Can it be switched between standy and suspend? MfG bmg Hello, SANE doesn't provide an interface for such information. You should look into libusb for this. Regards, Stef -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
Michael raselmsh at hotmail.com writes: John Weber jweber53 at gmail.com writes: I have similar problems with my Canon LIDE 220. [...] Bottom line is I get it to work very well using USB3 by setting the environment variable SANE_DEBUG_GENESYS_LOW=7 [...] On 07/10/2015 03:56 AM, Michael wrote: Michael writes: I was wondering if anyone can help me regarding problems using my scanner, a CanonLiDE 210 [..] it usually aborts with a grinding noise and I have to disconnect the scanner. [...] This works when I set SANE_DEBUG_GENESYS_LOW=7 but not when I set SANE_DEBUG_GENESYS_LOW=6. Diff-ing the output, I see in particular: [genesys_low] sanei_genesys_read_feed_steps +[genesys_low] sanei_genesys_read_hregister(0x108)=0x00 +[genesys_low] sanei_genesys_read_hregister(0x109)=0x00 +[genesys_low] sanei_genesys_read_hregister(0x10a)=0x4c [genesys_low] sanei_genesys_read_feed_steps: 76 steps -[genesys_low] sanei_genesys_read_hregister (0x101): failed while reading register: Invalid argument -[genesys_low] sanei_genesys_test_buffer_empty: failed to read buffer status: Invalid argument When I run simple-scan in the debugger (without SANE_DEBUG_GENESYS_LOW set), put a breakpoint on sanei_genesys_test_buffer_empty() and simply continue it immediately I am able to scan. So proably indeed a timing problem. Regards, Michael -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
Michael writes: I was wondering if anyone can help me regarding problems using my scanner, a CanonLiDE 210, on Ubuntu 14.10, libsane 1.0.24-1.1ubuntu1. It worked previously with Ubuntu 14.04, libsane 1.0.23. Now when I try to scan (with xsane or simple-scan), it usually aborts with a grinding noise and I have to disconnect the scanner. It works with a different system running OS X. On-line searches suggest that this is a known class of problem. Downgrading to the Ubuntu 14.04 package helped last time I tried it, though I seem to recall that the previous time it did not. sane-backends from git did not, though I did build it as an Ubuntu package, including Ubuntu patches (except the couple which would not apply). Coming back to this over half a year later. I found a number of reports today regarding scanner problems with Sane and USB3, followed the suggestions of disabling USB3 in my BIOS and lo and behold, I was immediately able to scan two pages (not yet tried more) without any trouble. Running scanimage --test now also works. $ apt-cache policy libsane libsane: Installed: 1.0.25-git20150121-utopic0 [...] Ditto for sane-utils. Anything I can do to help move this along? I do have some programming skills, including basic understanding of the USB protocol and Linux's usb_device sub-system, though I am chronically short of time (aren't we all?) -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
Hi, I have similar problems with my Canon LIDE 220. Please see the thread I recently started entitled Canon LIDE 220. Bottom line is I get it to work very well using USB3 by setting the environment variable SANE_DEBUG_GENESYS_LOW=7 Disabling USB3 may be another way of masking a race (timing) problem. Maybe the same problem for both models? I'm a retired sys admin and not so strong on programming so maybe you can do better than me messing with the code. John On 07/10/2015 03:56 AM, Michael wrote: Michael writes: I was wondering if anyone can help me regarding problems using my scanner, a CanonLiDE 210, on Ubuntu 14.10, libsane 1.0.24-1.1ubuntu1. It worked previously with Ubuntu 14.04, libsane 1.0.23. Now when I try to scan (with xsane or simple-scan), it usually aborts with a grinding noise and I have to disconnect the scanner. It works with a different system running OS X. On-line searches suggest that this is a known class of problem. Downgrading to the Ubuntu 14.04 package helped last time I tried it, though I seem to recall that the previous time it did not. sane-backends from git did not, though I did build it as an Ubuntu package, including Ubuntu patches (except the couple which would not apply). Coming back to this over half a year later. I found a number of reports today regarding scanner problems with Sane and USB3, followed the suggestions of disabling USB3 in my BIOS and lo and behold, I was immediately able to scan two pages (not yet tried more) without any trouble. Running scanimage --test now also works. $ apt-cache policy libsane libsane: Installed: 1.0.25-git20150121-utopic0 [...] Ditto for sane-utils. Anything I can do to help move this along? I do have some programming skills, including basic understanding of the USB protocol and Linux's usb_device sub-system, though I am chronically short of time (aren't we all?) -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
John Weber jweber53 at gmail.com writes: I have similar problems with my Canon LIDE 220. [...] Bottom line is I get it to work very well using USB3 by setting the environment variable SANE_DEBUG_GENESYS_LOW=7 [...] On 07/10/2015 03:56 AM, Michael wrote: Michael writes: I was wondering if anyone can help me regarding problems using my scanner, a CanonLiDE 210 [..] it usually aborts with a grinding noise and I have to disconnect the scanner. [...] I can confirm that that works here too with USB 3 enabled. Thanks for the pointer. Regards, Michael -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
Michael, - just an idea until someone with a deeper knowledge comes along - what about compiling from git sources, and then see if you can find the breaking commit ? Be careful about ensuring that it IS the compiled frontend and backend that is running. (see the compile/install read-me file) /Troels 2014-11-22 12:29 GMT+01:00 Florian Leeber fl...@bin.org.in: Hello All, I took now 1.0.24 - it seems solved (at least for my model ;)) BR Florian Am 21.11.2014 16:00, schrieb fl...@bin.org.in: Hello, have got maybe the same problem. Its an old Canon N656U with the plustek backend. Version is 1.0.20. I verified the scanner with an old Windows XP, and there it works perfectly. Sometimes ot would work for the first page, and only get stuck on consecutive pages. So I assumed a problem with re-calibration on the second page. But since 2 weeks it even aborts the first page always. Now it seems to be random when it happens: During calibration, or even during scan. No pattern found :( BR FLorian -- 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 -- 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
Re: [sane-devel] Canon LiDE 210 and grinding noises
I can confirm this can be a problem, carefully set the paths for the configure cmdline... While I got it basically right for lib, man etc in the first run, I forgot the bin path... and voila, it called still the old scanimage cmd ;) BR Am 22.11.2014 14:35, schrieb Troels Thomsen: Be careful about ensuring that it IS the compiled frontend and backend that is running. (see the compile/install read-me file) -- 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