Bug 1392712 - Bug in sane-backend preventing scanning from hp scanjet 8200
Summary: Bug in sane-backend preventing scanning from hp scanjet 8200
Keywords:
Status: CLOSED DUPLICATE of bug 1288712
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-backends
Version: 24
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 04:54 UTC by isrvr-lptp1
Modified: 2017-02-06 15:34 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-11-09 16:47:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description isrvr-lptp1 2016-11-08 04:54:51 UTC
Description of problem:
HP scanjet 8200 not working in Fedora 24 (Linux) I believed every other linux using the latest sane-backend are affected, but it can easily be fixed

Version-Release number of selected component (if applicable):
sane backend 1.0.25

How reproducible:
Easy to reproduce

Steps to Reproduce:
1. Install OS
2. Plug scanner
3. Scan

Actual results:
No scanned image, error while scanning

Expected results:
Scan will be ok and scanned image will appear in Simple Scan App

Additional info:
Here is the link for the fix:
http://sane.10972.n7.nabble.com/HP-scanjet-8200-open-of-device-avision-libusb-001-004-failed-Operation-not-supported-td18946.html

All you got to do is:
0. Install needed dependencies and libusb-devel
1. Get the source sane-backend 1.0.25 from https://alioth.debian.org/frs/?group_id=30186
2. Apply the patch from the link above or if you are getting lazy, edit the: source folder/backend/avision.c

a.) find lines

*
get_accessories_info (Avision_Scanner* s)
{
  Avision_Device* dev = s->hw;
*

below this

replace: "int try = 3" with "int try = 1"

b.) find the line

*
DBG (1, "get_accessories_info: Maximum retries attempted, ADF unresponsive.\n");
*

below this

replace: "return SANE_STATUS_UNSUPPORTED" with "return SANE_STATUS_GOOD"

3. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

4. make install and replace the existing sane files

Result:
The fix 2.a.) speeds up scanning, while 2.b.) makes scanner work

Scanner hp scanjet 8200 is now working, not yet tested on other scanners

Comment 1 Zdenek Dohnal 2016-11-09 16:47:02 UTC
Hi,

it seems similar like bug #1288712 to me. Closing this bug as duplicate.

*** This bug has been marked as a duplicate of bug 1288712 ***

Comment 2 Zdenek Dohnal 2016-11-09 16:53:03 UTC
There is a proposed patch in bug #1288712, which needs to be reviewed by upstream. About patch, which you are suggesting, I think it is not good way to solve it by assigning SANE_STATUS_GOOD to return value at block of code, where program will be if maximum tries are reached.

Comment 3 isrvr-lptp1 2017-02-06 15:34:05 UTC
Hi, I agree it is not really good to force it to SANE_STATUS_GOOD, glad to hear there is already a proposed patch.


Note You need to log in before you can comment on or make changes to this bug.