Since the update on Apr 13 only color mode scanning is available using tools based on sane-backends (e.g. xsane). Before the update and since Fedora 10 it was possible to scan in greyscale/lineart/color/etc.: --- [root@velian01 ~]# grep sane /var/log/yum.log Apr 04 10:27:24 Installed: xsane-0.998-1.fc14.i686 Apr 13 10:06:47 Updated: xsane-common-0.998-3.fc14.i686 Apr 13 10:07:34 Updated: sane-backends-libs-gphoto2-1.0.22-1.fc14.i686 Apr 13 10:07:37 Updated: sane-backends-libs-1.0.22-1.fc14.i686 Apr 13 10:07:39 Updated: sane-backends-1.0.22-1.fc14.i686 Apr 13 10:07:39 Updated: xsane-gimp-0.998-3.fc14.i686 Apr 13 10:07:41 Updated: xsane-0.998-3.fc14.i686 [root@velian01 ~]# scanimage -L device `avision:libusb:002:013' is a Avision AV220C2 sheetfed scanner --- I did: Apr 29 10:22:29 Erased: libsane-hpaio Apr 29 10:22:31 Erased: xsane-gimp Apr 29 10:22:32 Erased: xsane Apr 29 10:22:47 Erased: sane-backends-libs-gphoto2 Apr 29 10:22:56 Erased: xsane-common Apr 29 10:22:57 Erased: sane-backends Apr 29 10:22:58 Erased: sane-backends-libs and then a forced downgrade: rpm -ihv ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/sane-backends-1.0.21-3.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/sane-backends-libs-1.0.21-3.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/xsane-0.997-10.fc14.i686.rpm ftp://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/14/Everything/i386/os/Packages/xsane-common-0.997-10.fc14.i686 which gives the missing color mode options back.
I suspect that you see the issue with sane-backends-1.0.22 regardless of the version of xsane, is this correct? To get an idea of what goes wrong here, please update the packages so you see the issue, then run xsane this way to get debugging output: env SANE_DEBUG_AVISION=3 xsane >/tmp/xsane-avision.out 2>&1 You needn't scan something for now, getting to the point where you would choose lineart/gray/color should suffice, then quit xsane. Please attach the resulting file /tmp/xsane-avision.out. Thanks.
Would you please provide the information requested above? Otherwise I'll have to close this bug. Thanks!
Created attachment 534287 [details] Verbos output of avision backend using Avision AV 220 scanner Output as request in comment 1. Output was created on a ubuntu 11.04 but with sane backend version 1.0.22, the same version the one redhat uses, and this error was reported for. I can also confirm, that downgrading to 1.0.20 "fixes" this bug (ubuntu 10.10). So I am really convinced that this error is teh same for both distros (redhat and ubuntu).
After bisecting sane-backends I found out, that the regression is introduced with the second chunk in commit 634bb89a710f2f6d498966633473adc483c765ea in git://git.debian.org/sane/sane-backends.git. I will notify the maintainers.
It seem that the chunk you mention is a valid fix for missing parentheses: - if (!dev->hw->feature_type & AV_GRAY_MODES) + if (! (dev->hw->feature_type & AV_GRAY_MODES)) The buggy version of this line apparently masked that the AV_GRAY_MODES feature bit isn't set for your particular type of scanner. Assuming that this is the real error, I'll fix this upstream and build new patched packages.
sane-backends-1.0.22-6.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc14
sane-backends-1.0.22-6.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc15
sane-backends-1.0.22-6.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/sane-backends-1.0.22-6.fc16
Hi Nils. I have successfully tested your fix (Commit c648a44 in sane-backends). My scanner is working again as expected. I tested it on my Avision AV220, by building sane-backend on an ubuntu 11.04. So I did not tested using your RPMs, though.
Package sane-backends-1.0.22-6.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing sane-backends-1.0.22-6.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16073/sane-backends-1.0.22-6.fc14 then log in and leave karma (feedback).
sane-backends-1.0.22-6.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
sane-backends-1.0.22-6.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping